Generate tests

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 desciption of the bahavior 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

Voila_Capture 2015-08-07_11-11-05_AM

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 step_action generates an action where parameters (if any) are interpreted with their values
  • a step result step_check generates a result where parameters (if any) are interpreted with their values
  • an action word step_AW is replaced by the steps it contains.

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

If a scenario has no parameters & data table, 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

test_scenario

with the following Datatable

test_datatable

and using action word Login

test_AW

It generates 2 tests:

test_jon

test_vincent