Page History
...
If importing to a new test and the summary is not explicitly defined, it will default to the name
attribute of the testcase
.
Info |
---|
The text will be trimmed to match the 255-character limit on the summary field. |
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" ?> <testsuites> <testsuite errors="0" failures="0" id="0" name="my test suite" tests="1"> <!-- if a new test, summary will default to "Test1" --> <!-- if an existing test, summary will stay as is --> <testcase classname="some.class.name" name="Test1" time="123.345000"/> <testcase classname="some.class.name" name="Test2" time="123.345000"> <properties> <!-- if a new test, summary will be "A custom summary" --> <!-- if an existing test, summary will be updated to "A custom summary" --> <property name="test_summary" value="A custom summary" /> </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="test_description"> <![CDATA[Some custom description for the test issue.]]> </property> </properties> </testcase> </testsuite> </testsuites> |
Test labels
Use a tags
property element inside the testcase
element to add labels to the issue. Multiple labels must be separated by "," (comma).
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="tags" value="label1,label2" /> </properties> </testcase> </testsuite> </testsuites> |
Test run comment
Use a testrun_comment
property element inside the testcase
element to set the overall comment of the test run.
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"> <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> </testcase> </testsuite> </testsuites> |
Test run evidence
Use a testrun_evidence
property element inside the testcase
element to add files as global evidence on the test run. Each evidence must be an item
element inside the property, with the filename in the name
attribute and with Base64 encoded content.
...