Action modes

The Action Mode in a test step determines what Tosca Cloud does with the value of that step. For example, if your control is a text box and your value is a calculation, should Tosca Cloud enter the result into the text box or compare it to what's in the text box?

To specify this, you need to choose an appropriate action type from the Action Mode dropdown. This topic takes you through your options:

Input

The Input action mode writes the value you've specified in your test step into the control. This lets you test any part of your application that requires input, such as forms or queries.

For the value, you can use static values or value expressions. Keep in mind that if your value contains special characters, you need to escape them.

Inputs in a test step

Insert

The Insert action mode inserts a value into an API module control.

Inserts values into test steps

Verify

The Verify action mode compares a specified value to a control in your application. This lets you ensure that all elements of your application show the expected data or behavior.

You can verify the following information:

  • The content of a control. For example, to ensure that a confirmation message shows the right content.

  • The status of a control at runtime. For example, to check whether a particular button becomes active after you've filled out a form.

Verifies that the amount is 1

Buffer

The Buffer action mode writes a buffered value into a control. This lets you use a value more than once.

Setting the buffer value

WaitOn

The WaitOn action mode adds a dynamic wait time to your test case. That way, Tosca Cloud waits for a control to reach a certain state before it continues.

Wait until Enter button has reached 100%

Select

The Select action mode selects specified controls. The required control must have a unique name.

Selects Gold in the price table

Constraint

The action mode Constraint limits the search for a parent control in a table.

Searches for unique customer with First NameJohn and Last NameDoe

Output

The action mode Output stores control data in a variable so that you can reuse it later on. For example, to insert it into another part of your application or to compare it with the contents of a different control. This lets you ensure that the overall user journey works as expected.

Outputs in a test step

Exclude

The action mode Exclude excludes specific rows or columns from tables. You can exclude rows and columns within the same test step.

Excludes first row and Silver