Customizing Input Parameters

You should customize the input parameters before you execute a method. If you want to customize a method call after it is executed, for example if the method call was generated using the Load File Wizard, you need to execute an Animated Run after you have customized the method call to make the changes effective.

When a method has input headers or parameters, its values are displayed in the Default Input Parameter Values pane with their default values. Select the method you want to invoke in the Loaded Components pane. Parameters are displayed with their default values in the Default Input Parameter Values pane. To configure default values in the System Settings, click Tools > System Settings > Default Values.

To change a value, select a parameter in the Default Input Parameter Values pane. If a parameter is a simple data type, like string, float, or integer, you can enter the value directly into the text boxes in the pane. If the parameter is a complex type, like an object or array, or you want to use a random value or a value from a stored variable, click (...) to open the Input Value Wizard.

To use the Input Value Wizard to customize an input parameter:

  1. Select the InputValue row in the Input Data Properties pane.
  2. Click (...). The Input Value Wizard opens.
  3. Define the input value for the parameter of the method. You can pass a null value, a value from a variable, or a constant value.
    • ClickIs Null to pass a null value. This value is only valid for strings, objects, and arrays.
    • If you have already stored a variable that holds values of the parameter’s type, click Use Variable and select the variable from the list box.

      If the parameter is an array, type the index into the Index Array text box.

    • If the parameter is not an object or array, you can specify a constant value such as a string, integer, or double value. Select the Constant value option button.
    • If you do not want to use a constant value and would rather use a random value for types such as string, integer, or float, you can create a new random value by clicking New random variable. If a random value of the parameter type has already been created, click Random variable and select the variable from the list box.
  4. Click OK.
Once input parameters have been defined, you can invoke a method to have that method automatically added it to the selected test case in the Test Scenario pane. From there, corresponding output values can either be stored as variables or verifications can be set up for them.