Test Management for Jira Cloud

Annotating Cucumber Tests

We’re excited to announce that TM4J, Test Management for Jira, is now part of the SmartBear family. Learn more.
  1. Configure Cucumber’s output format to JSON on the TestRunner class.

    100%

  2. Open the feature file that includes your project’s Cucumber tests.

  3. Add an annotation for the test case key or name.

    100%

    Example: The @TestCase(key = "JQA-T1") annotation maps the test method to an existing test case in TM4J by matching its key.

    Example: The @TestCase(name = "Sum Two Numbers") annotation adds a name to the test case. This maps this test method to an existing test case in TM4J by matching its name. If the test case doesn’t exist in TM4J, a new one can be created automatically using the name when the results are uploaded.

Finally, if you want to see an example of the TM4J integration with Cucumber in action, we’ve got you covered.