Page History
...
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" ?> <testsuites> <testsuite errors="0" failures="0" id="0" name="my test suite" tests="1"> <testcase classname="some.class.name" name="Test1" time="123.345000"> <properties> <property name="testrun_comment"> <![CDATA[Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.]]> </property> </properties> </testcase> </testsuite> </testsuites> |
...
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" ?> <testsuites> <testsuite errors="0" failures="0" id="0" name="my test suite" tests="1"> <testcase classname="some.class.name" name="Test1" time="123.345000"> <properties> <property name="testrun_evidence"> <item name="image1.png">iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAQ0lEQVR42u3PQREAAAgDINc/9Mzg14MGZNrOAxERERERERERERERERERERERERERERERERERERERERERERERERERuVh9TJWdbWjzsQAAAABJRU5ErkJggg==</item> <item name="image2.png">iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAQ0lEQVR42u3PQREAAAgDINc/9Mzg14MGZNrOAxERERERERERERERERERERERERERERERERERERERERERERERERERuVh9TJWdbWjzsQAAAABJRU5ErkJggg==</item> </property> </properties> </testcase> </testsuite> </testsuites> |
...
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" ?> <testsuites> <testsuite errors="0" failures="0" id="0" name="my test suite" tests="1"> <testcase classname="some.class.name" name="Test1" time="123.345000"> <properties> <property name="testrun_customfield:cf1" value="lorem ipsum" /> <property name="testrun_customfield:cf2" value="option 1;option 2" /> <!-- multi select must have values separated by ";" --> </properties> </testcase> <testcase classname="some.class.name" name="Test2" time="123.345000"> <properties> <property name="testrun_customfields"> <item name="cf1"> <![CDATA[lorem ipsum]]> </item> <item name="cf2"> <![CDATA[option 1;option 2]]> <!-- multi select must have values separated by ";" --> </item> </property> </properties> </testcase> </testsuite> </testsuites> |
Test run start date
Use a started-at
attribute on the testcase
element to set the start date of the test run.
The value should be a string representing a date in the ISO8601 date-time format. If the timezone offset is not included in the ISO string, it will default to UTC.
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" ?>
<testsuites>
<testsuite errors="0" failures="0" id="0" name="my test suite" tests="3">
<testcase classname="some.class.name" name="Test1" time="123.345000" started-at="2022-02-11T18:30:00.000Z"> <!-- date-time in UTC -->
</testcase>
<testcase classname="some.class.name" name="Test2" time="123.345000" started-at="2022-02-11T20:30:00.000+02:00"> <!-- date-time in a timezone offset of 2 hours ahead of UTC -->
</testcase>
<testcase classname="some.class.name" name="Test3" time="123.345000" started-at="2022-02-11T18:30:00.000"> <!-- date-time with no timezone offset, will default to UTC -->
</testcase>
</testsuite>
</testsuites> |
Test run finish date
Use a finished-at
attribute on the testcase
element to set the finish date of the test run.
The value should be a string representing a date in the ISO8601 date-time format. If the timezone offset is not included in the ISO string, it will default to UTC.
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" ?>
<testsuites>
<testsuite errors="0" failures="0" id="0" name="my test suite" tests="3">
<testcase classname="some.class.name" name="Test1" time="123.345000" started-at="2022-02-11T18:30:00.000Z"> <!-- date-time in UTC -->
</testcase>
<testcase classname="some.class.name" name="Test2" time="123.345000" started-at="2022-02-11T20:30:00.000+02:00"> <!-- date-time in a timezone offset of 2 hours ahead of UTC -->
</testcase>
<testcase classname="some.class.name" name="Test3" time="123.345000" started-at="2022-02-11T18:30:00.000"> <!-- date-time with no timezone offset, will default to UTC -->
</testcase>
</testsuite>
</testsuites> |
...