Importing Cucumber Test Results
Prerequisites
Create a project and add the Test issue type to it.
Make sure BDD is enabled for the project. To do that, navigate to Project Settings > Zephyr - BDD/Cucumber and make certain the toggle is switched on:
Import Cucumber test results in the Upload mode
Go to the Zephyr > Test Automation page.
Click Create Automation Task.
Select Upload from the Import Method dropdown:
Fill in all the required fields (the ones marked with a red asterisk) and select Cucumber as the automation framework.
Upload a Cucumber JSON file containing test results:
Click Create at the bottom of the dialog.
Execute the job by selecting Execute from the dropdown that appears upon clicking the ellipsis button in the Actions column. The task status will change to In Progress:
Wait until the status changes to Success:
Go to the Search Tests page and verify that the story and tests have been created for the job (the reporter name should be the name of the user who has executed the job):
Go to the Cycle Summary page and verify that the corresponding cycle and/or folder matches the executions. The Assignee field value should be updated based on the assignee value provided while creating the job.
Import Cucumber test results via ZBot
Run Zbot for the user.
Go to the Zephyr > Test Automation page:
Click Create Automation Task.
Select ZBot from the Import Method dropdown:
Fill in all the required fields and select Cucumber as the automation framework.
Specify the path to the Cucumber JSON file containing test results:
Click Create at the bottom of the dialog. The task will appear in the list on the Test Automation page:
Click the ellipsis button in the Actions column and select Execute to execute the task. The task status will change to In Progress.
Wait until the status changes to Success.
Go to the Zephyr > Search Tests page and verify that the story and tests have been created for the task (the reporter name should be the name of the user who has executed the job).
Go to the Zephyr > Cycle Summary page and verify that the corresponding cycle and/or folder matches the executions. The Assignee field value should be updated based on the assignee value provided while creating the job.
Limitations
Cucumber test results cannot be imported in an XML file.
The Assignee field value will not be shown if you update the assignee value and then execute the task again.