# Create Spec File

***Create Spec File*** directs the user to the page where a new spec file is created.

***Spec files*** are the main files containing the test cases. It can include more than one scenario.

The following steps are followed to create a spec file;

1. Select project from BDD File List page.
2. Click the ***Create Spec File*** button.

<figure><img src="https://1258413245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz8xU8NRvPGqgBhcaWC4z%2Fuploads%2FMMa7WwlDr9d44PAumvo7%2FScreenshot%202025-03-07%20at%2021.14.08.png?alt=media&#x26;token=71d9015c-f0f4-456e-bfe6-466bb09b0b93" alt=""><figcaption></figcaption></figure>

3. Enter the file name.

<figure><img src="https://1258413245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz8xU8NRvPGqgBhcaWC4z%2Fuploads%2Fk54SoxkaIkV6TaZTduVG%2FScreenshot%202025-03-07%20at%2021.11.55.png?alt=media&#x26;token=e25e6d03-a911-4a59-82e0-e224316878e5" alt=""><figcaption></figcaption></figure>

4. Scenario can be added to the spec file to be created.                                                          Click Click the ***New Scenario*** button on the BDD Editor screen for this.

{% hint style="info" %}
The spec file can be saved without adding a scenario.
{% endhint %}

5. Enter the ***Scenario*** name.
6. Add ***Tag***.

{% hint style="info" %}

* Tag field is required.
* Tag must start with '@'
  {% endhint %}

<figure><img src="https://1258413245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz8xU8NRvPGqgBhcaWC4z%2Fuploads%2FBcek24GdRllYeiZHxCBs%2FScreenshot%202025-03-10%20at%2017.01.39.png?alt=media&#x26;token=73b7c214-731d-4f12-acfd-6ea0a32cb72d" alt=""><figcaption></figcaption></figure>

7. a. Click on the ***New Tag*** button to add a new tag.                                                                         b. Click on the ***New Test Step*** button to add a test step

<figure><img src="https://1258413245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz8xU8NRvPGqgBhcaWC4z%2Fuploads%2F6PiilxDZ8v9UIMpODPMN%2FScreenshot%202025-03-10%20at%2016.41.03.png?alt=media&#x26;token=04824cbe-a12a-4265-9c41-2d606d92ebfe" alt=""><figcaption></figcaption></figure>

8. a. Click the ***Save*** button to save spec file.                                                                                        b. Click the ***Cancel*** button to cancel the adding process.
