[Dart] offered: Perl script, wanted: Dart XML help
Ken Cox
kenstir78 at comcast.net
Tue May 22 12:14:14 EDT 2007
Thanks to those who documented Dart XML! However, I still have a couple
of problems:
1) Empty Time. When I submit the test-results.xml below, the Time column
is blank on the Dashboard under Test (the Time column is correct on the
TestCatalog page). With the build-results.xml, the Time column says 0.0.
2) Empty Output. When I push down to the specific test page, the Test
Output section is blank.
2) Not on same line. I want to submit Build results separately, but have
them displayed on the same line as the Test results. I tried setting
<DateTimeStamp> to the exact same value but still got two separate lines
on the Dashboard.
If you can offer any help I would greatly appreciate it. If you can point
me at the area of the code which parses or describes the "built in"
Measurement names, it would probably be good enough.
Here's my offer: I have perl scripts that I use to run tests written in
the perl test harness and submit them to Dart. If you would be interested
in these scripts, let me know, and I'll polish them just a little and
share them. Here are the scripts:
dart-run-tests - run perl tests and submit the results to dart using
dart-submit
dart-submit - given an XML template file and name/value pairs, substitute
name/value pairs into the template file and submit the result to Dart.
Here are the results I submitted that don't work as I wanted:
------ build-results.xml -------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<DartSubmission version="2.0" createdby="ArchiveTask">
<Site>sample-site</Site>
<BuildName>sample-build</BuildName>
<Track>Nightly</Track>
<DateTimeStamp>2007-05-22T11:10:00-0400</DateTimeStamp>
<Test>
<Name>.Build.makeall</Name>
<Status>passed</Status>
<Measurement name="StageName" type="text/string">make-all</Measurement>
<Measurement name="BuildCommand" type="text/string">make
all</Measurement>
<Measurement name="ElapsedMinutes"
type="numeric/float">1.5</Measurement>
<Measurement name="TimeInSeconds"
type="numeric/float">90.1</Measurement>
<Measurement name="Execution Time"
type="numeric/float">90.2</Measurement>
<Measurement name="Message" type="text/string">message
here</Measurement>
<Measurement name="Output" type="text/string">output here</Measurement>
<Log>log here</Log>
</Test>
</DartSubmission>
------ test-results.xml --------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<DartSubmission version="2.0" createdby="ArchiveTask">
<Site>sample-site</Site>
<BuildName>sample-build</BuildName>
<Track>Nightly</Track>
<DateTimeStamp>2007-05-22T11:10:00-0400</DateTimeStamp>
<Test>
<Name>.Test.test-name</Name>
<Status>passed</Status>
<Measurement name="TotalTests" type="numeric/integer">4</Measurement>
<Measurement name="PassedTests" type="numeric/integer">3</Measurement>
<Measurement name="FailedTests" type="numeric/integer">1</Measurement>
<Measurement name="Execution Time"
type="numeric/float">12.34</Measurement>
<Measurement name="Output" type="text/string">output here</Measurement>
<Log>log here</Log>
</Test>
</DartSubmission>
--------------------------------------------------
Thanks and Regards,
Ken Cox
Vivox, Inc.
More information about the Dart
mailing list