Skip to content
You're viewing the v2 docs. Looking for v1?Go to v1 docs
Docs
Testsigma
Popular questions
↑↓ to navigate↵ to selectesc to close
Book a demo

Step types

A test step is a natural language action by default. Change its type to call an API, reuse a saved sequence, repeat steps over test data, branch on a condition, or group steps under a label.

Click the option on the left side of a step to open the step type panel, and select the type.

Step typeWhat it does
Natural languageRuns one action or assertion, written in plain English
Rest APICalls an API from inside the test case
Step groupCalls a reusable sequence of steps
For loopRepeats its child steps once per data set of a test data profile
While loopRepeats its child steps while a condition holds
If conditionRuns its child steps only when a condition is true
BlockLabels consecutive steps as a named group, without making them reusable

Loops, conditions, and blocks hold child steps, added with their own Step Inside control. Child steps are numbered under their parent, such as 2.1 and 2.2.

The default type. Enter the action in plain English, and suggestions appear as soon as you type an action word.

These action words have suggestions: Click, Tap, Verify, Scroll, Check, Clear, Close, Uncheck, Store, Double Click, Drag, Enter, Swipe, Switch, Execute, Select, Wait, and Mouseover.

Select Rest API from the step type panel to open the REST API screen. It carries the request itself, with a title, an endpoint, an HTTP method, and the parameters, body, headers, authorization, and settings the call needs. Four more panels sit alongside it: Verification for the response body, headers, and status; Stored Variables for the parts of the response you want to reuse; Attachments for files the request sends; and Global Objects for reusable project objects. See REST API steps.

Select Step Group in the panel, select the group, and click Create Step. A step group can hold another step group, up to 3 levels. See Step groups for building, nesting, and reusing them.

A for loop repeats its child steps once per data set of a test data profile. It ends at the last data set, or at a break. Use it to run one test case against a subset of a profile, such as rows 1 to 3.

  1. Click the option on the left side of the step and select For Loop. A dropdown of the NLPs you can use inside the step opens.

  2. Select the NLP for the data sets you want to iterate over, and create the step.

The NLP decides which data sets run:

To iterate overSelect the NLP that filters by
Every data setNothing. It runs the profile from start to end
A range of data setsA start index and an end index
Data sets whose name matchesSet name, with contains, starts with, ends with, or IN
Data sets whose parameter matches a valueParameter value
Data sets whose parameter is filled in or blankParameter value, empty or not empty

A while loop repeats its child steps while a condition holds, then moves to the next step.

  1. Click the option on the left side of the step and select While Loop. The while condition is added to the step.

  2. Hover over the step and click Step Inside Loop to add child steps.

While loops can also be added during recording, on web, mobile web, Android, and iOS. In the recorder, select While Loop from the same panel, add child steps with Step Inside Loop, and click Stop Recording when the steps are complete.

The iteration count is the count currently being iterated. Inside a for loop, a while loop, or a step group, the Store NLP saves it into a variable for later use. Data set values from the iterated profile can be compared inside an if condition, using the String Compare add-on.

An if condition runs its child steps only when the condition is true.

  1. Click the option on the left side of the step, hover over Conditional Step Types, and click If Natural Language. The IF condition is added to the step.

  2. Select the NLP that forms the condition.

  3. Hover over the step and click Step Inside IF to add child steps. They run only when the condition is true.

  4. To branch, hover over the IF step and click Else If or Else.

An IF step with its child steps numbered 2.1 and 2.2 beneath it

In the recorder, the same type is labeled Conditional If.

A block is a named label around consecutive steps: structure without reuse. Build one from the step type panel, or from steps you already have.

To create a block from the step type panel:

  1. Click + Add new step where the block should go.

  2. Click the Test Step Type button before the step and select Create a Block.

  3. Enter a title and click Create Step.

  4. Add steps with Step Inside Block, or a step after the block with Step After Block.

To create one from steps you already have:

  1. Select the consecutive steps to include.

  2. Click Create Block in the menu bar.

  3. Enter the title in the Create Block pop-up and click Create.

  4. Click > to expand the block and see the steps inside it.

To rename a block, select it, edit the name, and click Update Step. To delete one, click Delete on the block step. Deleting a block removes the label and leaves its steps in place.

You can reorder the steps inside a block, and move the block and its steps to another position in the test case.

Blocks cannot nest inside other blocks, and a block cannot be converted back into a regular step.

Database steps are natural language steps, not a type of their own. The mysql_queries add-on adds NLPs that run MySQL over a JDBC URL. Install it from the add-ons page.

The connection string takes this form:

jdbc:mysql://<hostname>:<port>/<database>?user=<user>&password=<password>

Its NLPs cover:

  • Executing a query, a create-procedure statement, a stored procedure call, an update, or a .sql script file
  • Storing a select result into a variable
  • Verifying a select result, or the affected-row count of a query
  • Comparing two queries on one connection, or the same query across two connections

Was this page helpful?