Skip to content

Manual Testing - BDD

Welcome!

This tutorial walks you through manual testing in a BDD project. BDD means you write tests as plain-language scenarios with Given, When, and Then.

What you will do:

  1. Create a BDD project.
  2. Add a suite, which becomes your feature file.
  3. Write a Gherkin scenario.
  4. Reuse a shared step.
  5. Run the scenario manually.
  1. On app.testomat.io, click Create in the top-right corner.
  2. Enter a name in the Project Title field.
  3. Choose a BDD Project.
  4. Leave Fill demo data unchecked, so you start clean.
  5. Click Create.

Create Project dialog with BDD Project selected

In a BDD project, a suite is your feature file, the place where your scenarios live.

  1. On the Tests page, click New suite.
  2. Type a name in the suite input field, for example, “Login tests”
  3. Press Enter.

A new BDD suite (feature file) in the tree

Your feature file appears in the tree, ready for scenarios.

Now write a scenario using Given, When, Then. Given sets the starting point, When is the action, and Then is the expected result.

  1. Select your suite and add a test, for example, “Log in with valid details.” This test is your scenario.
  2. Click the test to open the BDD editor.
  3. In the editing area, write the steps.
  4. Click Save.

BDD editor

Write scenarios with one clear action per line. For everything the editor offers, see the BDD Test Case Editor.

Some steps appear in many scenarios, such as “Given I am on the login page.” Instead of retyping them, you reuse a shared step. As you type, Testomat.io suggests steps you have already written.

  1. In a new or existing scenario, start typing a step you used before.
  2. Pick the matching step from the autocomplete list.

Autocomplete list

Reusing steps keeps your scenarios consistent and saves time. When a shared step changes, you update it in one place.

See Shared Steps for the full picture.

  1. Open the Runs tab in the sidebar.
  2. Click Manual Run.
  3. Give the run a title, and set the environment if you want.
  4. Tick the checkbox next to your tests.
  5. Click Launch.

Manual Run setup

You now step through the scenario. Follow each Given, When, and Then, and mark the result:

Mark the resultShortcut
Passed, if the behavior matched.Cmd+Enter on Mac, Ctrl+Enter on Windows
Failed, if it did not. Add a note, attach a screenshot, or link a defect.Cmd+U on Mac, Ctrl+U on Windows
Skipped, if you did not run it.Cmd+I on Mac, Ctrl+I on Windows

Scenario during a manual run

If the run has many scenarios, use the search box in the run to jump straight to a test or suite by name instead of scrolling through the whole list.

When every scenario has a result, click Finish Run to close the run. That is what turns it into a report.