# Steps Database

Testomat.io provides functionality for test steps re-using and autocompletion.

# How To Add A New Step In Steps Database

There are few ways to create steps on the page:

  1. enter the step into the field and click Create
  2. click on Plus button to add context to the step

CleanShot 2022-05-26 at 23 26 17@2x

At the New Step screen, you need to add the step itself (1), description (2) and click on the Save button (3)

CleanShot 2022-05-26 at 15 45 02@2x

See a new step created

CleanShot 2022-05-26 at 18 41 23@2x

# How To Add A New Step In Editor for Classical Tests

Create your steps during writing your classical tests! Testomat.io Editor gives the ability to save your test description as steps directly to Steps Database.

CleanShot 2022-05-26 at 20 17 17@2x

❗When you start the lone with the asterisk sign * Testomat.io creates a new step❗

CleanShot 2022-05-26 at 21 25 59@2x

Save the test and the new step will be placed in the Database.

CleanShot 2022-05-26 at 20 47 46@2x

Next time you need this step start typing it with the asterisk sign * and Editor will show it to autocomplete.

CleanShot 2022-05-26 at 21 23 43@2x

# How To Add A New Step In Editor for BDD Tests

Testomat.io BDD Editor creates steps once a Scenario/ Feature File is saved. So you don't need to add steps separately.

CleanShot 2022-05-26 at 21 56 58@2x

CleanShot 2022-05-26 at 22 34 41@2x

# How To Rename A Step

There may be situations when you need to update existing tests in order to suit project requirements. You can rename required steps on Steps page. This action will update tests containing changed step, so there is no need to change each tests individually.


CleanShot 2022-05-27 at 15 40 46@2x

CleanShot 2022-05-27 at 15 43 39@2x

CleanShot 2022-05-27 at 15 45 02@2x

CleanShot 2022-05-27 at 20 07 43@2x (opens new window)

# Snippets

A snippet - is a piece of text or collection of steps that can be used as autocompletion during creating tests. This can be used for any part of a test case.

CleanShot 2022-05-27 at 00 05 21@2x

CleanShot 2022-05-27 at 00 12 05@2x

CleanShot 2022-05-27 at 00 29 35@2x

CleanShot 2022-05-27 at 00 30 48@2x

CleanShot 2022-05-27 at 00 33 45@2x

CleanShot 2022-05-27 at 00 36 20@2x

CleanShot 2022-05-27 at 20 15 05@2x (opens new window)