Storing Output Values in Variables

Using the Output Data and Output Data Properties panes, you can store output values as variables for later use or you can define verifications for the values.

  1. Click Invoke on the Workflow bar or by right-click a method in the Input Data pane and choose Invoke/Add to Test Case to invoke the method. The Output Value Wizard opens.
    Note: You can also open the Output Value Wizard by clicking Customize in the Workflow bar, or by right-clicking an output parameter in the Output Data pane.
  2. In the Output Value Wizard, type a name for the output value variable in the Variable name text box.
  3. Click the option button that corresponds to the scope of the variable. The default is Local, which means that the variable can only be used within the test case within which it has been created. Global scope means that the variable can be used within any test case. Global scope enables you to pass information between test cases.
  4. Click OK.