Page History
...
Condition | Overall status of the Test Run |
---|---|
If all the mapped results of the Test Case were PASS | PASS |
If any of the mapped results of the Test Case was FAIL | FAIL |
Other cases | TODO |
Linking Tests with Requirements
Anchor | ||||
---|---|---|---|---|
|
Although this is not yet included by JUnit, Xray supports a customized version of the JUnit report format for linking Requirement issues with Test cases.
Two scenarios are supported:
- The requirement key is passed as an attribute on the "testcase" XML element named "requirement"
- The requirement key is passed as a new property element beneath the "testcase" element, on a dedicated properties element.
No Format |
---|
<?xml version="1.0" ?>
<testsuites>
<testsuite errors="0" failures="0" id="0" name="my test suite" tests="1">
<!-- using a custom attribute -->
<testcase classname="some.class.name" name="Test1" requirement="CALC-123" time="123.345000"/>
<!-- using a custom property -->
<testcase classname="some.class.name" name="Test2" time="123.345000">
<properties>
<property name="requirement" value="CALC-123" />
</properties>
</testcase>
</testsuite>
</testsuites> |