RTM supports the direct import of Cucumber JSON reports, allowing you to synchronize your BDD test results with your requirements and test cases.
For the Cucumber framework, Test Cases linked to imported test results will have a summary consisting of the feature name and scenario name separated by a dot.
Feature: Calculator
Scenario: Sum Function
Given I have a calculator
When I add 5 and 7
Then the result should be 12
In this example, the generated Test Case summary will be Calculator.Sum Function.
Each imported scenario creates a Test Case Execution. Every scenario step is mapped to a separate Test Case Execution step, with Cucumber keywords displayed in bold.
The final status for both the Test Case Execution (TCE) and the overall Test Execution (TE) is determined by the “weakest link” principle, ensuring that a single failure is never overlooked in the final report.
Determining TCE status (from steps):
failed status.failed, but at least one step is pending.passed.skipped or undefined).Determining TE status (from TCEs):
failed status.failed, but at least one TCE is pending.Each imported step has its status mapped based on Execution Result Mapping:
| Cucumber step status | RTM result |
|---|---|
passed |
Pass |
failed |
Failed |
pending |
Opening |
skipped |
Default |
undefined |
Default |
ambiguous |
Default |
| Unrecognized | Default |
Error messages present on steps are attached as evidence to Test Case Execution steps in a file errors.txt.
If you can’t find the answer you need in our documentation, raise a support request. Include as much information as possible to help our support team resolve your issue faster.