Passing data from one automated test step to another

Some automated test steps create data that you can use as an input to a subsequent step.

You can pass data from one test step to another using input variables and output variables.

The term input variables is another name for the field values associated with a step. These values are known as input variables because they provide the input the step needs to accomplish its task. For example, the Open Form step has three input variables: Table, Record, and View.
Figure 1. Example test step showing input variables
Screenshot of Open an Existing Record test step form

Some types of step also have output variables. These are values that later steps in the same test can use as input. For example, the Record Insert step has an output variable called Record which contains the sys_id of the newly-created record.

The test step form does not indicate if a test step has output variables or not. However, you can easily tell if any output variables are available to provide a value to any given input variable. If you can map the value of one step's output variable to the current step's input variable, the system displays the mapping icon () to the right of that input field. When you click the variable mapping icon, the system displays a tree giving you access to any available output variables from previous steps.

Output variables available to the Record input variable on the Open an Existing Record Test Step form


Screenshot of backreference icon when pulldown is active

For step-by-step instructions on how to assign the value of an output variable to another step's input variable, see Pass values from one automated test step to another.

For a list of test step configs that return one or more output variables and the definitions of those output variables, see List of test steps with output variables.

For an example of a test that passes variables using input and output variables, see Automated Test Framework use case: reference a value from a previous step.