Input Parameters & Data Sets
  • 2 Minutes to read
  • Dark
    Light
  • PDF

Input Parameters & Data Sets

  • Dark
    Light
  • PDF

Article Summary

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 of the pre-defined input parameters.

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 will create an input parameter and replace the static value in the instruction with a dynamic input parameter that can later be used in data sets.

  1. Click on 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 -

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

  2. In the Input Parameters section, click on the Add button and give the parameter a name. You can also set an initial value or leave the value blank.

  3. Add all relevant parameters to include in your data sets, and then click Save.

  4. Save your script in ScriptBuilder and continue by creating data sets.

Create Data Sets

  1. In Panaya, select the Data Sets tab of your Automated Test, then click on the Manage data sets button.

  2. Type the name of the first data set in the Data Set Name column and set the value for each input parameter column by double clicking on Enter Value.

  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 are done adding 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.