Gherkin Behavior-Driven Development (BDD)
Writing Behavior-Driven Development (BDD) test cases is easy. Zephyr Scale allows you to create a BDD test case in Jira and export it to a feature file. The feature file can be used as a reference for writing unit tests that are necessary for it to run.
BDD test cases are written in Gherkin syntax. Here is a list of supported and not supported keywords:
![64107e3fc4c7a.png](../image/uuid-b60ff31d-08e1-ca92-4b3d-f36aeb5cd29e.png)
Supported keywords such as Given, When, and Then are highlighted as you type your test case.
Creating a BDD Gherkin Script
Open a test case, and click the Test Script tab.
Select BDD - Gherkin from the Type dropdown. The Gherkin editor appears.
Write your test case. Remember not to include Feature or Scenario.
![64107e414b9c9.png](../image/uuid-1e9cfacb-e1d2-7cff-6d66-2bed91101971.png)
Click Save when you are finished, and close the test case.
Select Export Feature Files (BDD - Gherkin) from More to download the feature file for your new test case (or the selected test cases).
![64107e42edf88.png](../image/uuid-ab084dfe-a6d4-62e5-ab12-aefe267760c3.png)
The zip file downloads to your computer. Developers using your company’s supported BDD tool can reference this information when writing automated tests related to the test case.