Use advanced values

You can use the advanced values editor to add control properties and dynamic expressions to your test steps. This editor guides you through creating test steps that have more precise control and dynamic functionality.

Use control properties

Control properties are expressions you can use in the Values column of the test case editor to have more control than simple input. You can use properties like .Enabled or .Exists and combine these with operators, values, action types, and data types to create dynamic and intelligent test cases.

You can use control properties to do the following:

  • Steer controls

  • Verify the status of a control

  • Wait for control conditions

To add control properties, go to the test step and select . You can use the following fields to create your advanced value:

  • Use the Property drop down to select or enter the property you want to use to steer your test step. You can enter any control property.

  • Select an Operator from the drop down. You can only use operators that are valid for your action mode and data type.

  • Enter the Value you want and select Apply.

Alternately, you can directly enter your advanced value. For example, .Visible==False.

Let's say you have a Submit button that should only appear if the form is filled out. You can use a control property for the Submit button test step to verify that the button appears:

  1. For Property, select Visible.

  2. For Operator, select ==.

  3. For Value, enter True.

If your Action mode is Verify, this test step will only pass when the Submit button is visible.

Use dynamic expressions

Dynamic expressions are values that Tosca Cloud automatically generates at runtime. Let's say you have a webshop. You can tell Tosca Cloud to add up the values of your base price, tax, and shipping costs instead of manually entering a total for each test run.

To add a dynamic expression, go to the test step and select . In the Dynamic expression syntax section, find and select the dynamic expression you want to use. Fill in the dynamic expression according to your use case and select Apply.

You can use dynamic expressions with control properties and buffers. For example, you can include your dynamic expression in a control property. Or, you can use a buffer in your dynamic expression.