Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Current »

Prerequisites

  1. Create a project and add the Test issue type to it.

  2. 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

1. Go to the Zephyr > Test Automation page.

2. Click Create Automation Task.

3. Select Upload from the Import Method dropdown:

4. Fill in all the required fields (the ones marked with a red asterisk) and select Cucumber as the automation framework.

5. Upload a Cucumber JSON file containing test results:

6. Click Create at the bottom of the dialog.

7. 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:

8. Wait until the status changes to Success:

9. 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):

10. 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

1. Run Zbot for the user.

2. Go to the Zephyr > Test Automation page:

3. Click Create Automation Task.

4. Select ZBot from the Import Method dropdown:

5. Fill in all the required fields and select Cucumber as the automation framework.

6. Specify the path to the Cucumber JSON file containing test results:

7. Click Create at the bottom of the dialog. The task will appear in the list on the Test Automation page:

8. Click the ellipsis button in the Actions column and select Execute to execute the task. The task status will change to In Progress.

9. Wait until the status changes to Success.

10. 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).

11. 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.

See Also

Test Automation
Test Automation API Documentation
Providing Feedback on Test Automation
Continuous Integration

  • No labels