Skip to main content

Data Enabling HAR Script

Data enabling HAR scripts for Web applications:

Appvance IQ implements a Data Production Library (DPL) as an extensible framework to provide operational test data to test script runners at test runtime. The DPL framework is general in that data may be input from a variety of sources, including a relational database, comma-separated-value file, and data generating objects. A DPL also provides a safe way to store data between test steps. Appvance IQ comes with pre-built DPLs and makes it easy for software developers to add their own custom DPLs.

In our case, we will be using the "CSV" datasheet to data enable the HAR script.

The steps that need to be followed while data enabling HAR scripts are as below:

  1. Record the script with username and password on the Chrome Browser and save the script

  2. Open the saved script and search for the username/password you have entered in the URL and create a .CSV sheet with the entered username and password as a header in the CSV sheet and give the desired number of usernames and passwords below the headers.

    For example:

    If the user has used appleuser1 as the Username and appleuser@123 as the password. Then the user needs to replace 'appleuser1' and 'appleuser%40123' (please see the below instruction for any special character used in the password) in the HAR script which will be used as a Header in the CSV sheet.

    Also, make sure if there are any special characters in the password we need to replace it with the corresponding value with respect to the HAR script

    For example:

    1. ! = %21

    1. @= %40

    NOTE: If the Password is appleuser@123 the entry in the csv sheet should be appleuser%40123

    For more information on the special characters and the corresponding value to be used in the script refer to Special Character value to be replaced in HAR script.

  3. User can now upload the .HAR script and .csv sheet in Appvance Scenario Builder.

    Choose the Script type as HAR and name the test

    Choose the HAR script and select

    Upload the CSV sheet in Resources Tab and choose the Action as "Next row of Data" by clicking Add DPL in Test Cases tab

    Save and play the scenario

  4. Check the script execution in the AIQ controller

    you can also monitor if the script is replacing the appropriate values through the Appvance IQ controller by Clicking on Test case(s) Executions and selecting the result and clicking on Output.


Last updated: June 26, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai