Input Parameters & Data Sets

Prev Next

Input parameters allow you to set parameters that can be populated through pre-defined data sets for each script execution. Each Planned Run can then be associated with a data set. When executed, the script will use the associated data set values for each pre-defined input parameter.

Define Input Parameters

Before you can associate data sets for each planned run, you need to pre-define the input parameters for your script in ScriptBuilder.

Converting Recorded Values to Input Parameters

The easiest way to create input parameters is by converting pre-recorded values to input parameters. This method creates an input parameter and replaces the static value in the instruction with a dynamic input parameter that can later be used in data sets.

  1. Click the Actions button for an existing instruction and select Convert to input parameter.

  2. Set the name for the input parameter and keep or change its initial value. Then click Add.

Creating Input Parameters from Scratch

You can also pre-define input parameters from scratch. Once configured, you will see the new parameter in the Data Set tab for the automated test.

  1. Click on the Menu button and then select Parameters.

  2. In the Input Parameters section, click the Add button and give the parameter a name.
    You can assign a temporary value to your ad-hoc debug run for debugging purposes. Saving the script will not save the temporary value.

  3. Save your script. The newly created parameter will appear in the data set tab for your automated test.

Create Data Sets

  1. In Panaya, select the Data Sets tab of your Automated Test.

  2. Click Add to add a new data set.
    In the Data Set Name column, type the name of the first data set and double-click on Enter Value to set the value for each input parameter column.

  3. To add more data sets, click on the Add button. Give the Data Set a name and type in the value for each input parameter column by double-clicking on Enter Value.

  4. When you add all data sets, click Save and then Return to the automated test. Continue by adding Planned Runs.

Adding Planned Runs

Once input parameters and data sets have been defined, you can add Planned Runs and associate them with data sets.

  1. Select the Planned Runs tab of your Automated Test. For each planned run, double-click in the data set column and select a data set from the drop-down list.
    When selecting the All option, Panaya will create multiple separated runs for each of the existing data sets. Each run will execute the script with a different data set. You will be able to review which data set was executed for each run, in the automation executions view.

  2. To add Planned Runs, click the Add button in the actions panel. Use the actions panel to delete, copy, paste, reorder, or import planned runs using an Excel spreadsheet template.

  3. You can run each planned run by clicking on the Run Automation button. Alternatively, you can add your test to a test set and set the execution schedule.

Good to know!

To delete the Data Set parameters from the automated test, you will need to delete the input parameters that you created using the ScriptBuilder and save your changes.