Variables Editor - Common Tasks

Applies to LoadComplete 4.97, last modified on May 20, 2019

In the Variables editor, you view and manage variables specified in your LoadComplete project. This topic describes the tasks you can perform in the editor.

In the editor, you can view all the variables available in your project. However, you can create and delete only project variables. You create scenario variables directly in the Scenario editor when extracting data from responses.
To add a new variable
  1. Click New Variable on the toolbar of the Variables editor.

    – or –

    Right-click the Project variables node and then click New Variable.

  2. LoadComplete will call the Variable wizard.

  3. Follow the wizard instructions to create a new variable and set its value.

    For list variables, you can use the Data Generator to generate needed values.

Note: If a scenario defines a variable with the same name as the created project variable, LoadComplete will use the scenario variable during the scenario simulation.
To add a new list variable
  1. Click New Data Generator on the Variables editor’s toolbar.

    – or –

    Right-click the Project variables node and then click New Data Generator.

  2. LoadComplete will call the Variable wizard.

  3. Follow the wizard instructions to create a new list variable.

  4. To use the Data Generator to generate the needed values, click Generate on the List Variable Contents page of the wizard.

    LoadComplete will call the Generate Values wizard. Follow the wizard instructions to generate the needed values.

– or –

  1. Click New Variable on the Variables editor’s toolbar. LoadComplete will call the Variable wizard.

  2. On the Select Variable Type page of the wizard, select LoadComplete variable.

  3. On the Select LoadComplete Variable Type page of the wizard, select List variable.

  4. On the List Variable Contents page of the wizard, set the variable’s values.

    To generate the values by using the Data Generator, click Generate. LoadComplete will call the Generate Values dialog. In the dialog, generate needed values.

To add a new project variable by copying an existing variable
  1. Right-click the needed variable in the table and choose Copy from the context menu.

  2. Right-click somewhere within the editor and select Paste from the context menu.

LoadComplete adds a copy of the selected variable to the table.

To parameterize a request with a variable
  1. Click Set Parameter Values on the editor’s toolbar.

  2. On the first page of the Parameterization wizard, choose a parameter that you want to bind to a variable. Then follow the wizard instructions to specify the desired load test variable and select the needed type for it. For more information on parameterizing tests using this wizard, see Parameterizing Requests in the Parameterization Wizard.

To edit variable properties

Do any of the following:

  • Double-click the variable in the table.

– or –

  • Select the variable and click Edit on the toolbar of the Variables editor.

– or –

  • Right-click the variable and select Edit from the context menu.

LoadComplete will open the variable edit dialog, where you can change the variable parameters. For more information about variable parameters, see the description of the relevant variable type.

You can use the Set Variable Value operation to assign a new value to the variable during the scenario run.

Note: You cannot change the type of an existing variable. You have to delete the variable and create a new one with the same name and the needed type.
To rename a variable
  • Click the variable name in the table, enter the new name and press Enter to confirm the change or Esc to cancel it.

– or –

  • You can open the variable edit dialog and enter the needed name into the Name box.

Note: Project variables are available in all project dialogs, panels and scenarios. If a scenario defines a variable whose name coincides with a project variable’s name, the scenario variable will override the project variable.
To delete a variable
  • Right-click the target variable and select Delete from the context menu.

To filter variables

To show or hide variables that are not used in any request, select or clear on the editor’s toolbar.

To show or hide variables used to pass data to requests, select or clear on the editor’s toolbar.

To show or hide user-defined variables (both project and scenario variables), select or clear on the editor’s toolbar.

To show or hide auto-correlation variables (variables created by the Correlate Request and Response Parameters wizard), select or clear on the editor’s toolbar.

To find a variable quickly by its name, type the variable name in the Quick Search box. The editor will filter out the variable list according to the text you are typing.

Expanding or collapsing the variable list

To expand all the nodes in the variable list, right-click anywhere in the editor and then click Expand All.

To collapse all the nodes in the variable list, right-click anywhere in the editor and then click .

To save or discard changes

To save changes you made in the editor, select File | Save from LoadComplete’s main menu.

To discard the changes you have made, close the editor and click “No” in the confirmation box asking whether to save the changes.

See Also

About Variables Editor
Variables Editor
About Variables

Highlight search results