Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Test Case ID

Mihails Volkovs edited this page Aug 3, 2015 · 4 revisions

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

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.