Customizing Input Parameters

When a method has input headers or parameters, its values are displayed in the Input Data 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 Input Data pane, and you can configure the option settings through Tools > Options .

To change a value, select a parameter. If a parameter is a simple data type, which means a string, float, or integer, you can enter the value directly into the InputValue text box in the Input Data Properties pane. If the parameter is a complex type, which means 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.

  1. Select an InputValue row in the Input Data Properties pane to display the Input Value Wizard (...) button.
  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.
    • Click Is 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. Click 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.