Test Case ID - allure-framework/allure1 GitHub Wiki
This feature is supported since Allure 1.4.6.
Test Case ID is reference to test case in so-called Test Management System (TMS). It is not allowed to have more than one reference per test case by definition.
What it looks like
http://i.imgur.com/n4YPcCO.png
Annotations
To link a test case to Test Management System, you can use @TestCaseId annotation. Simply specify the test case ID as shown below:
@TestCaseId("TMS-1")
public void testSomething() {
...
}
Test Management System URL
To specify TMS URL, use the allure.tests.management.pattern property during HTML report generation (either in the allure.properties file or as your build tool property):
- JVM property:
-Dallure.tests.management.pattern=http://tms.company.com/tests/%s - CI server Allure plugin configuration (supported at least in Jenkins)
- allure.properties:
allure.tests.management.pattern=http://tms.yourcompany.com/tests/%s
In this pattern, the %s placeholder will be replaced with the test case ID from the annotation.