> For the complete documentation index, see [llms.txt](https://docs.dogq.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dogq.io/documentation/editing-tests.md).

# Editing tests

Learn about the ways you can edit your Scenarios, e.g. adding steps between other steps, reordering steps as well as the additional instruments you can use inside the Test Editor.

### Adding steps

To add a new Step at the end of your test, click on a <img src="https://2078677057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8eZlMfLPLs2PbN89R9x%2Fuploads%2FKRdZC0cFOSo3odgIX9b5%2FAdd%20Step%20bth%20hd.png?alt=media&amp;token=4ad5125e-0fc6-4ed2-898c-b9b05e5e5983" alt="" data-size="line"> button either on the top or the bottom panel.

### Adding steps between other steps

Once you have at least two steps in your Scenario you can use <img src="https://2078677057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8eZlMfLPLs2PbN89R9x%2Fuploads%2FRh1spPZIt4wwIMl1GCq4%2FPlus%20(add%20in-between)%20btn%20hd.png?alt=media&amp;token=2b3c8f32-354f-49cc-ae44-da825421fa91" alt="" data-size="line"> buttons to add steps between existing ones in any position you need.

### Copying steps

Next to the "Add step in-between" button there's a "Copy" icon <img src="https://2078677057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8eZlMfLPLs2PbN89R9x%2Fuploads%2FZMFeLO8tUO2HfOZOJmsw%2Fediting%20tests_copy%20step%20btn.png?alt=media&amp;token=6edad91f-dd71-4cae-a393-183f663d117f" alt="" data-size="line"> that allows you to duplicate the step above.

### Reordering steps

To change the position of a Step in a test, you can use the <img src="https://2078677057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8eZlMfLPLs2PbN89R9x%2Fuploads%2FwrcmQWGyS6TU175yuK1u%2FOrder%20icon.png?alt=media&amp;token=5b4319cd-560b-4896-ab2c-e13eee98de69" alt="" data-size="line"> icon on the left side of a Step to drag'n'drop it over to the position you need.

### Deleting steps

To delete a Step, click on its <img src="https://2078677057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8eZlMfLPLs2PbN89R9x%2Fuploads%2FsLAqejfcUfctLz5Vn4ib%2FTrash%20icon%20hd.png?alt=media&amp;token=f13c0161-b27f-4fd4-a261-1bcd91e95830" alt="" data-size="line"> button located on the far right side after a Step value.&#x20;

### Screenshots

Every Step has a Screenshot Toggle <img src="https://2078677057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8eZlMfLPLs2PbN89R9x%2Fuploads%2FY31S2Y6hCNLv86kGa2us%2FScreenshot%20toggle%20hd.png?alt=media&amp;token=b1418e98-32a4-4f9b-9293-bcc0e010c24b" alt="" data-size="line"> next to it. You can choose at which steps you want DogQ to capture screenshots and store page source code when you run the test.&#x20;

{% hint style="info" %}
Screenshots and source code are stored for a **year**, unless you delete the test, and can be viewed in a Test Run Report.&#x20;
{% endhint %}

### Step description

To add a comment to a Step, click on the Description Toggle <img src="https://2078677057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8eZlMfLPLs2PbN89R9x%2Fuploads%2FndcQEPM8w12btLPoLpqC%2Fediting%20tests_step%20description.png?alt=media&amp;token=d4ab6060-800a-467e-b760-507845008529" alt="" data-size="line"> next to it. Doing so will expand an area below the Step where you can add a meaningful description and format it to your liking.&#x20;

<figure><img src="https://2078677057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8eZlMfLPLs2PbN89R9x%2Fuploads%2FFpxVgNCIAkqXykDUuA43%2Fediting%20tests_step%20description%202.png?alt=media&amp;token=b125c2a4-ef06-4638-82a5-3cb252d8b881" alt=""><figcaption></figcaption></figure>

### Scenario description

Each Scenario you create can be given a description or a comment. To do so, open the Scenario in the Test Editor and click on the Edit icon <img src="https://2078677057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8eZlMfLPLs2PbN89R9x%2Fuploads%2FS5N87butQGOdKzVMb7NH%2Fediting%20tests_test%20description%20icon.png?alt=media&amp;token=d5ec33a7-8cc8-4c54-93a6-1bf316db9a5d" alt="" data-size="line">in the dedicated area of the header.

<figure><img src="https://2078677057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8eZlMfLPLs2PbN89R9x%2Fuploads%2FtgEnNMCssGMQEG8uYELT%2Fediting%20tests_test%20description.png?alt=media&amp;token=0275896e-8842-44a0-9b2e-4ed983ae51d8" alt="" width="375"><figcaption></figcaption></figure>

### AI Step generator

This <img src="https://2078677057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8eZlMfLPLs2PbN89R9x%2Fuploads%2F54i2vZLSjPksp1UH3v1F%2Fediting%20tests_step%20generator%20btn.png?alt=media&amp;token=ba3f0d85-8c9a-4ea8-978a-d81b1dfaf3ff" alt="" data-size="line"> button can only be seen on the last step of the test. Clicking it will open a modal window where you can tell AI assistant what to do in a natural manner. DogQ will run the test as is, get to the page it needs to interact with and generate new steps according to your prompt. For more details, visit [AI Step generator](#ai-step-generator).

<figure><img src="https://2078677057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8eZlMfLPLs2PbN89R9x%2Fuploads%2Fd9OVWaiZ8mHcNWk6FSEK%2Fediting%20tests_step%20generator%20modal.png?alt=media&amp;token=f6e9547c-16a9-4d5b-a651-2c10959553d9" alt="" width="375"><figcaption></figcaption></figure>
