Skip to content

Steps Database

Testomat.io offers functionality for test steps re-using and autocompletion. This feature helps you save time during test cases creation and make the process faster.

How to Add a New Step to the Steps Database

Section titled “How to Add a New Step to the Steps Database”

There are few ways to create steps in the Steps Database from the ‘Steps’ page:

Option 1

  1. Open ‘Steps’ page.
  2. Enter the step into the empty field.
  3. Click ‘Create’ button.

Testomat.io - Add Steps

Option 2

  1. Open ‘Steps’ page.
  2. Сlick ‘Plus’ button.
  3. Select ‘Step’ option from the dropdown list to add context to the step.

Testomat.io - Add Steps

After the ‘New Step’ screen is displayed:

  1. Add the step.
  2. Add a step description to describe in which context this step can be used (optional).
  3. Click ‘Save’ button.

Testomat.io - Add context to the step

The new step has been created!

Testomat.io - New step created

How to Add a New Step in Editor for Classical Tests

Section titled “How to Add a New Step in Editor for Classical Tests”

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

Open Test Case Editor and create new steps by starting the line with the asterisk sign * or a numbered list (e.g., 1.).

Testomat.io - Add Steps

Save the test, and the new steps will be added in the Database.

Testomat.io - Add Steps

Testomat.io recommends reusing steps instead of creating new ones.

Next time you need to use the same step, start typing the step inside the Editor. Use the asterisk sign * for an unordered list or number with dot (e.g., 1.) for an ordered list. The Editor will display the autocomplete list with matching steps. Select the step from the autocomplete list to add it to your test case.

Testomat.io - Re-use Steps

You can also use the ‘Add Steps (ordered)’ or ‘Add Steps (unordered)’ buttons in the Editor panel to trigger the autocomplete list with all available steps.

Testomat.io - Re-use Steps

How to Add a New Step in Editor for BDD Tests

Section titled “How to Add a New Step in Editor for BDD Tests”

The Testomat.io BDD Editor automatically creates steps and adds them to the Steps Database once a Scenario or Feature File is saved. You do not need to add BDD steps separately.

Testomat.io - Steps in BDD

Testomat.io - Steps in BDD

You may need to update existing steps to suit new project requirements. You can rename required steps on the ‘Steps’ page. This action automatically updates all tests containing changed step, so you do not need to change each test individually.

  1. Open ‘Steps’ page.
  2. Click on the Step you want to update.
  3. Click ‘Edit’ button in the displayed window.

Testomat.io - Steps Update

  1. Update the Step’s name.
  2. Click ‘Save’ button.

Testomat.io - Steps Update

  1. Confirm the action on the displayed pop-up.

Testomat.io - Steps Update

  1. Check description for related Test Cases after the Step is renamed.

Testomat.io - Steps Update

Testomat.io - Steps

There might be a situation when there are a few similar steps in the Steps Database. You can use ‘Merge’ feature to unite them into one step, to keep your tests clean. This feature is available for Classical and BDD projects.

  1. Open ‘Steps’ page.
  2. Enable ‘Multi-select’.
  3. Select the Steps you want to merge.
  4. Select ‘Merge’ option from the bottom menu panel.

Testomat.io - Merge Steps

  1. Enter the Step that you want to keep (the first step will be pre-selected by default, but you can change it manually based on your needs).
  2. Click ‘Merge’ button.

Testomat.io - Merge Steps

Testomat.io - Merge Steps

It might be the case when you deleted some test cases, and now some steps are unnecessary. To keep your Steps Database clean, you can delete unused steps.

  1. Open ‘Steps’ page.
  2. Click ‘Extra menu’ button.
  3. Select ‘Delete Unused Steps’ option.

Testomat.io - Delete Unused Steps

  1. Confirm action on the displayed menu.

Testomat.io - Delete Unused Steps

All unused Steps deleted from Steps Database.

Testomat.io - Delete Unused Steps