Generate tests

Applies to CucumberStudio Cloud, and to Enterprise ver. 3.3 - 3.5.6.0. Last updated on November 17, 2023

Definition

Test is an instance of a scenario, a sequence of steps where action words and parameters have been interpreted. So basically, the scenario is a higher level description of the behavior of the application. It generates one or more test instances that will be executed.

Test view

You can view the test directly from the scenario page:

Display CucumberStudio test view

Click the image to enlarge it.

Tests are generated so you cannot modify them directly.

Test generation

The way the interpretation works during the test generation process is straightforward:

  • A step action generates an action where parameters (if any) are interpreted with their values

  • A step result generates a result where parameters (if any) are interpreted with their values

  • An action word is replaced by the steps it contains or by an action containing its name if it is empty.

So basically a test doesn’t have any action words. It is a sequence of actions and results.

If a scenario has no datatable, it will generate one test. If a scenario has a datatable with N datasets, it will generate N tests, one per dataset.

Example

Given the Scenario Simple Sign in Workflow

CucumberStudio test scenario

Click the image to enlarge it.

with the following datatable

CucumberStudio datatable

Click the image to enlarge it.

and using action word Login

CucumberStudio action word parameters

Click the image to enlarge it.

Step in CucumberStudio action word

Click the image to enlarge it.

It generates 2 tests:

First test from CucumberStudio scenario and datatable

Click the image to enlarge it.

Second test from CucumberStudio scenario and datatable

Click the image to enlarge it.

Highlight search results