2.11 - Operational Test Data with DPLs

Operational Test Data with DPLs — Appvance IQ documentation.

Operational Test Data with DPLs

Contents

Appvance IQ's Data Production Library (DPL) is a powerful system to deliver data to tests at runtime. For instance, a test of an online registration service stores name and password values in a database and uses a DPL to access the database as the test operates. In a second instance, a test of a reporting service uses a DPL to access a comma-separated-value (CSV) file of acceptable responses to validate service responses.

Software developers, QA technicians, and IT managers with a variety of technical skills use Appvance IQ. It is important to provide DPLs that are ready to use and require no programming skills. But also offer a framework for building your own DPLs. Appvance Unified Test

Appvance IQ (AIQ) Data Product Libraries (DPLs) delivers operational data to tests at test run-time. For instance, a recorded Appvance Designer Script or Selenium test of a Web-based log-in page retrieves the user name and password values from a comma-separated value (CSV) data file as AIQ executes the test. Tests can use DPL provided data not only as input values but also to validate the application's function.

The AIQ DPL system provides a simple and easy way to data-enabled tests. A DPL does not require programming or scripting.


Last updated: April 11, 2024

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

AIQ DPL Types

The following topic summarizes Appvance's basic and special data production libraries (DPLs).

Basic Data Production Libraries

Special Data Production Libraries

Different Actions Available

AIQ 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 the sense that it can get data 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. AIQ comes with pre-built DPLs and makes it easy for software developers to add their own custom DPLs.

DPLs work in conjunction with script runners at test runtime. Test scenarios define the DPL and script runner interaction. The AIQ Tutorials give instructions on using the pre-built DPLs.

AIQ users configure Test Use Cases in the Appvance Scenario Builder to use operational test data from a DPL. To see this in action follow these steps:

  1. Start AIQ

  2. Click Build from the Start Screen. The Scenario Builder opens with a blank page.

  3. Click File, then New to create a new scenario. AIQ sets the default name of the new scenario to New-Scenario.

  4. In the Info tab, which is opened by default, select Functional Test for this example.

  5. Click the Resources tab.

  6. Click Add Data Source.

  7. Choose "HashDPL - Reads CSV" in the DPL Type drop-down menu.

  8. Click Browse to select a CSV data file.

  9. Provide a name for the DPL in the Name box.

  10. Click Test Cases on the left-hand side.

  11. Under Iteration Name: Iteration 1, click Add a Test Case Execution

  12. Provide a Test Case Name at the top of the pop-up window.

  13. Select Type Selenium, provide a Script Name and then click Browse to find your appropriate Selenese file.

  14. Click Add DPL and under Select DPL choose the DPL you created earlier.

  15. Choose Get Next Row of Data from the Actions menu.

  16. Provide a name for the DPL action and then click Save at the top.

  17. Click File at the top and then Save and choose a location to save the Test Scenario

This configuration tells the AIQ Selenium script runner to look into the Selenium test and replaces values in the test with values from the data.csv file.

The DPL provides data from the data.csv file as AIQ runs the Selenium script, at test run time.

The DPL uses the first row in the CSV file to identify field mapping names. Insert these mapping names into the Selenium file where you want AIQ to inject the test data from the CSV file.

After the mapping name row comes the rows of the data file containing the actual data. The DPL Action determines the row of data AIQ provides to the test.

In a load test, setting the DPL Action to Get Next Row of Data tells AIQ to advance to the next row of data.

When the DPL reaches the bottom of the table, the DPL starts at the top.

The Selenium, SoapUI, and Command-Line script runners provide support for data mapping from DPLs.

Script runners for Appvance Designer Script, Java, Jython, JRuby, VB, .NET, Groovy, and the other support scripting languages receive DPL data in a dictionary structure (map).

For TestNG engine to work with DPLs, it is necessary to define the @DataProvider annotation inside the TestNG, an AIQ will override that method providing the DPL values as arguments for the @Test method:

public class TestNG {

@DataProvider(name = "DPLDataProvider")

public Object[][] ValidDataProvider3() throws Exception {

return new Object[][] {

{'C', 65}, {'c', 97},

{'D', 66}, {'d', 98}

};

}

 

@Test(dataProvider = "DPLDataProvider")

public void basicTest(final char character, final int ascii) throws Exception {

System.out.println("character " + character + " ascii " + ascii);

}

In this case, you need to use CSV DPL in your Scenario. AIQ will do the casting of the arguments to the ones expected in the @Test method.

If you want to use HashMap instead (sending arguments as map dictionaries) then you need to add an AIQ provided annotation @TestNGParams (tools.jar):

DPLs have the ability to share data from one test to the next. For example, TheLocker DPL takes the results from a test step authored in soapUI as input to a second test step authored in Appvance Designer Script.

The above example shows how to use data from a CSV file. DPLs work in the same way with data from a Relational Database (RDBMS DPL, RDBMS Map DPL) and other data-generating objects.

Test Type Map DPL Support Array DPL Support Arguments Support

DPL By Engine:

Test Type

Map DPL Support

Array DPL Support

Arguments Support

Java

YES

YES

YES

TestNG

YES

NO

NO

SoapUI

YES

NO

NO

Jmeter

YES

NO

NO

DS

YES

NO

NO

Sahi

YES

NO

NO

.Net

NO

NO

YES

AJT

YES

NO

NO

Command Line

NO

NO

YES

Groovy

YES

YES

YES

Jython

YES

YES

YES

Selenium

YES

NO

NO

Selenium RC

YES

NO

NO

SQL

YES

NO

NO


Last updated: April 11, 2024

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

Configuring Appvance DPLs

AIQ 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 the sense that it can get data 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. AIQ comes with pre-built DPLs and makes it easy for software developers to add their own custom DPLs.

DPLs work in conjunction with script runners at test runtime. Test scenarios define the DPL and script runner interaction. The AIQ Tutorials give instructions on using the pre-built DPLs.

AIQ users configure Test Use Cases in the Appvance Scenario Builder to use operational test data from a DPL. To see this in action follow these steps:

  1. Start AIQ

  2. Click Build from the Start Screen. The Scenario Builder opens with a blank page.

  3. Click File, then New to create a new empty scenario. AIQ sets the default name of the new scenario to New-Scenario.

  4. In the Info tab, which is opened by default, select Functional Test for this example.

  5. Click the Resources tab.

  6. Click Add Data Source.

  7. Choose "HashDPL - Reads CSV" in the DPL Type drop-down menu.

  8. Click Browse to select a CSV data file.

  9. Provide a name for the DPL in the Name box.

  10. Click Test Cases on the left-hand side.

  11. Under Iteration Name: Iteration 1, click Add a Test Case Execution

  12. Provide a Test Case Name at the top of the pop-up window.

  13. Select Type Selenium, provide a Script Name and then click Browse to find your appropriate Selenese file.

  14. Click Add DPL and under Select DPL choose the DPL you created earlier.

  15. Choose Get Next Row of Data from the Actions menu.

  16. Provide a name for the DPL action and then click Save at the top.

  17. Click File at the top and then Save and choose a location to save the Test Scenario

    This configuration tells the AIQ Selenium script runner to look into the Selenium test and replaces values in the test with values from the data.csv file.

    The DPL provides data from the data.csv file as A IQ runs the Selenium script, at test run time.

    The DPL uses the first row in the CSV file to identify field mapping names. Insert these mapping names into the Selenium file where you want AIQ to inject the test data from the CSV file.

    After the mapping name row comes the rows of the data file containing the actual data. The DPL Action determines the row of data AIQ provides to the test.

    In a load test, setting the DPL Action to Get Next Row of Data tells AIQ to advance to the next row of data.

    When the DPL reaches the bottom of the table, the DPL starts at the top.

The Selenium, SoapUI, and Command-Line script runners provide support for data mapping from DPLs.

Script runners for Appvance Designer Script, Java, Jython, JRuby, VB, .NET, Groovy, and the other support scripting languages receive DPL data in a dictionary structure (map).

For TestNG engine to work with DPLs, it is necessary to need to define the @DataProvider annotation inside the TestNG, an AIQ will override that method providing the DPL values as arguments for the @Test method:

public class TestNG {
@DataProvider(name = "DPLDataProvider")
public Object[][] ValidDataProvider3() throws Exception {
return new Object[][] {
{'C', 65}, {'c', 97},
{'D', 66}, {'d', 98}
};
}
@Test(dataProvider = "DPLDataProvider")
public void basicTest(final char character, final int ascii) throws Exception {
System.out.println("character " + character + " ascii " + ascii);
}
}

In this case, you need to use CSV DPL in your Scenario. AIQ will do the casting of the arguments to the ones expected in the @Test method.

If you want to use HashMap instead (sending arguments as map dictionaries) then you need to add an AIQ provided annotation @TestNGParams (tools.jar):

public class TestNG {
@DataProvider(name = "DPLDataProvider")
public Object[][] ValidDataProvider3() throws Exception {
return new Object[][] {
{'C', 65}, {'c', 97},
{'D', 66}, {'d', 98}
};
}
@Test(dataProvider = "DPLDataProvider")
@TestNGParams(params = {"character","ascii"})
public void basicTest(final char character, final int ascii) throws Exception {
System.out.println("character " + character + " ascii " + ascii);
}
}

DPLs have the ability to share data from one test to the next. For example, TheLocker DPL takes the results from a test step authored in SoapUI as input to a second test step authored in Appvance Designer Script.

SoapUI support was removed in release 5.2.0 of AIQ.

The above example shows how to use data from a CSV file. DPLs work in the same way with data from a Relational Database (RDBMS DPL, RDBMS Map DPL) and other data-generating objects.


Last updated: July 25, 2024

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

Providing Data to Distributed Tests

AIQ is a distributed test system. Multiple virtual users run in a TestNode and tests run across one or more TestNodes. Tests often need unique data for each virtual user. For example, a test of a banking system needs a separate and unique customer number for each virtual user running in the test. AIQ offers 3 solutions to meet your testing needs.

Common Test Data, No Coordination

AIQ's CSV DPL sends a copy of a single CSV file to each TestNode running a test. Each virtual user uses data in the CSV file. Within a TestNode each user shares the CSV file and shares a single pointer to the row of data in the CSV file.

CSV files are distributed to each TestNode

To use this configuration, use the Appvance Scenario Editor to configure a Test Use Case that uses a CSV DPL /Hash DPL. Set the DPL Action setting to Get Next Row of Data. When you run the test AIQ will send a copy of the defined CSV file to each TestNode. AIQ creates a single DPL for all virtual users in the TestNode. The DPL has a raw pointer. The pointer is initially set to the first row of data. The DPL reads the first row of data and injects the data fields into the test script. The DPL moves the pointer to the next row of data. At the last row of data, the DPL moves the pointer to the first row of data.

Unique Provided Data

Many times the test architecture requires each virtual user to use unique data. For example, when testing a banking system each virtual user needs to log in to the banking application using its own user-id and password. AIQ provides the Unique DPL to provide each virtual user's DPL with its own data. The data comes from a single CSV file. Each virtual user uses its local DPL to communicate over a TCP/IP request to a single Unique DPL service. The Unique DPL reads from a single CSV file.

Unique data is distributed to each virtual user

The communication overhead for Unique DPL is minimal. Appvance staged tests up to 100,000 virtual users and observed less than 1% network bandwidth overhead and less than 20-millisecond wait times when using UniqueDPL.

Running a Unique DPL scenario using a CSV file which has duplicate rows

Consider the following scenario to understand the unique DPL functionality.

Suppose the user is creating an Appvance Designer script with DPL enabled. The created DPL contains duplicate values for the field that was data enabled and considers the scenario for 2 executions and 2 users and it should have multiple test Nodes. The Unique DPL works in such a way that it will not validate whether the CSV file has repeated rows or not, that is, it does not check for the content of the rows. In AIQ, the Unique DPL functionality is that it will make sure that among all running users in all running TestNodes in a single execution, each row of the CSV data file will be used only once until all rows available in the DPL are used.

Note: Please make sure the CSV file has unique data rather than duplicated rows.

Transactional Data Provided To Each Virtual User

AIQ's RDBMS DPL enables tests to receive operational test data from a relational database. For example, configure a MySQL instance to serve transactional data to the virtual users. One Appvance customer stored invoice data for a test of an Enterprise Resource Planning (ERP) system. A stored procedure (StoredProc) in MySQL provides invoice data to the virtual users, including part numbers, part costs, quantities, and shipping details. The StoredProc enables each virtual user to receive its own unique data from the common data store.

Transactional data is distributed to each virtual user

The above example showed how to use data from a CSV file. DPLs work in the same way with data from a Relational Database (RDBMS) and other data-generating objects. See the DPL Recipes section for details.


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

Last updated: October 15, 2026

Configure Dynamic DPL Data

Dynamic DPL takes the dynamic data during runtime within the specified range. The different Methods of Dynamic DPL are.

To use Dynamic DPL, we have to pass any of the above methods in the form of value to a variable in the CSV file. Please find the below CSV as an example.

CSV files

The steps to create Dynamic DPL for Appvance Designer Script.

  1. Create Appvance Designer Script in AIQ Example: Sahi Training site

  2. Create a CSV file for the variable username, password, and core java and ruby.

    In the above CSV file, we have used the add Method. Similarly, we can pass any method as a value to a variable based on the requirement

  3. Go to the Appvance Designer Script click the DPL option and browse for the CSV file then select any of the execution types and make the script data enabled as shown below.

  4. Save the script and create the scenario for any of the test types in Appvance Scenario Builder

  5. Go to the Test Case section and choose Appvance Designer test type and browse for the .ds file

  6. Click Resources, Add DPL, Select Dynamic DPL type as Dynamic DPL and browse for the csv file created for DPL type then choose an action for it.

  7. While running a functional test give 100 percent logs to see the output in a controller window and 5-10 percent logs while running a performance test.

  8. Save and play the created scenario. This opens the controller output tab where the results can be viewed.

    In the middle of the execution, the value 5 is getting added for the text field Ruby, where we have used the dynamic DPL, Add method as ${add(2,3)}.

Dynamic DPL takes the dynamic data during runtime within the specified range.

The Dynamic DPL engine consumes these expressions out of a CSV file, this file consists of two simple rows:

Headers row: The very first row of the CSV file must contain the headers for the generated values. These headers should match the variable name that is going to be replaced in your script.

Expressions (Data row): These are regular expressions with a very specific format used by the Dynamic DPL engine to generate the required values. The CSV must have a single data row since the Dynamic DPL engine uses a single row to generate the values, if you add any other rows they are going to be ignored, only the first one will be used.

We can use any of the below methods to create the Dynamic DPL based on your requirement

  1. Random : ${random()} ex ${random(10,20)} this method takes the random number and use the same in the script

  2. Add${add()} ex: ${add(2,3)} methods add the two values mentioned(2+3=5) in the methods and use the same value for the specified field

  3. Subtract${sub()} ex:${sub(4,3)} methods subtracts the two values mentioned(4-3=1) in the methods and use the same value for the specified field

  4. Dayofmonth retrieves the current day of the month and the syntax for that is ${dayOfMonth()}

  5. Month: This method retrieves the month of the current/specified year and the syntax is ${month()}

  6. Unique ${unique()} :

We have to pass these methods in the form of values to variables in the CSV file.

Below are the steps to create Dynamic DPL for the Designer Script

  1. Create a Designer Script in AIQ

  2. Create a CSV file for the variable CompanyName, PriceValue, and Changevalue.

    In the CSV file pass the method (like random, add, sub) based on your requirement as shown in the above screenshot

  3. Go to the Designer Script click the DPL option, then browser the CSV file and select any of the execution types and make sure the script is data enabled as shown below

  4. Save the script and create the scenario for any test type in Appvance Scenario Builder

  5. Go to the Test Case section and choose Appvance Designer Script test type and browser the .ds file

  6. Goto Resources Section and click Add Data-source. Select Dynamic Dic DPL type, Enter "DynamicDicDPL" in the name field, browse and add the above created CSV file.

    Now Navigate to the Test Case section, Click the Edit icon of Test Case, Click Add DPL, Select Dynamic DPL type and browse the CSV file created for that DPL file then choose an action for it. Actions that are available are given below with their functions

    Actions

    Generate New Dynamic Data: This action generates a new data set based on the given CSV DPL from your data source.

    Get Current Data: Retrieves the already generated data set if any, if no data set has been generated then this method will internally call "Generate New Dynamic Data" to produce a new value and set it as the current value.

  7. While running a functional test give 100 percent logs to see the output in a controller window and 5-10 percent logs while running a performance test

  8. Save and play the created scenario. This opens the controller output tab where the results can be viewed.

    In the middle of the execution, the value CO309 is getting added for the text-field Company where we have used the dynamic DPL Add method as CO${random(100,999)}

In the above screenshot, the output under Test Case execution displays the variable name, because the values will be changing dynamic if you run the Test Case for multiple users. So, to make the reports feasible the output displays the Variable name, not the value.

The values that are generated dynamically while playing the script can be seen by a user can be known by scrolling the output tab as shown below.

In the same way, unique method can also be used:

Unique Method: This takes the 30 unique characters and numbers as a value for the variable.

The syntax for unique method: ${unique()}

if the user wants to the string should start with a particular character/number or the string should end with a particular character/number the user can specify the same value as shown below.

"A${unique()}B ".



Last updated: June 26, 2023

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

Array Generator DPL (Test Scenario, Functional Test)

To run Java code with array arguments in Appvance, use the Array Generator DPL. To execute Java code that has a main method in Scenario Editor, select the Array Generator DPL type and String[] from the Actions dropdown. Add the argument name and pass a value by clicking the Add Val link.

The main method receives the array from the generator.

With the Array Generator DPL, you can send an array of values as a single parameter containing multiple entries, for example a String array:

[ "string1", "string2", "string3" ]

This allows you to provide an input parameter for a method that requires an array-like parameter:

public void myMethod(String[] args) {
}

You can also use Object arrays. Example:

[
  { name: 'Honda', models: [
      { name: 'Accord', features: ['2dr', '4dr'] },
      { name: 'CRV', features: ['2dr', 'Hatchback'] },
      { name: 'Pilot', features: ['base', 'superDuper'] }
  ] },
  { name: 'Toyota', models: [
      { name: 'Prius', features: ['green', 'superGreen'] },
      { name: 'Camry', features: ['sporty', 'square'] },
      { name: 'Corolla', features: ['cheap', 'superFly'] }
  ] }
]

Types available for arrays: Object, String, Integer, int, Byte, byte, Double, double, Short, short, Float, float, Character, Boolean.

Sample Java Code with an int Array

package com.package1;

import java.util.Arrays;

public class Array {
    public static void main(String[] args) throws Exception {
    }

    public void printArray(String message, int array[]) {
        Arrays.sort(array);
        System.out.println(message + ": [length: " + array.length + "]");
        for (int i = 0; i < array.length; i++) {
            if (i != 0) {
                System.out.print(", ");
            }
            System.out.print(array[i]);
        }
        System.out.println();
        int index = Arrays.binarySearch(array, 2);
        System.out.println("Found 2 @ " + index);
    }
}

Create a .jar file from the Java code above. Go to Scenario Editor and select the Functional Test test type. Add a test case using the Java Test type and browse to the .jar file you created. The code above takes two arguments: the first is a String, and the second is an int array. Pass the arguments in the same order in Appvance so the scenario runs successfully.

Two arguments using array generator

Set the log level to 100% in the Options panel. Save and play the scenario in a Controller window.

Output:

Two arguments using array generator

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

Last updated: October 15, 2026

WhiteBoard DPL Usage in AIQ

The Whiteboard DPL lets you share data from within any Test Designer script in the scenario even if they are in different iterations.

The only restriction is that the scripts must run in the same test node.

The below example shall show you how this could be used.

There are 2 Test Designer APIs that is used for this purpose:

  1. Add to WhiteBoard

  2. Get from WhiteBoard

As we know that this DPL is like a locker that could be used to share data between test cases between different iterations.

Below is tested designer script 1 that has a step "Add to Whiteboard" DPL where a hardcoded value "Appvance" is getting stored in the variable "company"

Here we could use getText to get the text from the browser and store the value in the variable to be stored in the Whiteboard DPL which shall be used in a different test case of a different iteration.

Below is Test Designer script 2 that has a step "Get from Whiteboard" DPL where the value that was stored using "Add to Whiteboard" could be retrieved and stored in another variable which could be used for further scripting or usage.

Once you have the script ready, it is time to create the scenario with different iterations and test cases.

The below example shows a performance test with 2 different iterations, with each iteration having a test case each, 1st test case in the iteration is going to add the value to Whiteboard and the 2nd test case in 2nd iteration will get the value from the whiteboard which could be used in further scripting.

Defining performance Test:

Defining 2 iterations:

Defining 2 test cases for each iteration.

Result of Test case 1:

Result of Test case 2:

Whiteboard DPL in Scenario Editor:

Whiteboard DPL in Scenario Editor is a locker that could be used to share data between different script types say for example you could store the data in a designer script and that data could be retrieved from the stored variable to another script type say Jmeter or SoapUI.

This is done in the Scenario Editor.

Create the first test case from the Scenario Editor by adding a new execution in the test case panel (Make sure that the script has Add to Whiteboard DPL used and the data is stored in a variable to be used in another script type)

Click on Add DPL.

Select LocalWhiteboard DPL from the Select DPL drop-down.

Save the Test case.

In the next test case (different script type - like Jmeter or SoapUI) from a different iteration, you could use this data that is stored in the whiteboard locker for further processing or for the next steps.


Last updated: August 03, 2023

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

Use Scenario-Wide DPL Data

The Scenario wide DPL works similarly to the 'UniqueDPL' that will use existing unique service code to handle the data, and similar to the 'TheLocker' that it can provide objects and share them between different scripts. But it has the advantage that its contents will be available among different test cases and different nodes. So it is not user-dependent.

This DPL would be a scenario provided DPL that will always be available within the Scenario, across users and test cases, as well as across Iterations.

DPL can store or retrieve serialized objects. The data stored in this warehouse should be disk-based as the data can grow large.

The DPL System consists of 2 classes Scenario Wide DPL which is the actual DPL but also a client and the 'ScenarioWideDPLService 'which is the actual service holding the data.

Scenario wide DPL has two actions 'getNextData' and 'getCurrentData'. The first script will use 'getNextData', while the subsequent scripts will use 'getCurrentData', if they want to share data among scripts. In the next screenshot you will see data shared among a HAR script and a Javascript.

In this example whatever data goes to the HAR, the same data will be sent to the Java method.

Use case:

A user will like to have a way where he can add several rows of data using a set of nodes (likely during a setup), and then use them using a possibly different set of nodes (during an iteration).

The user will start Appvance is a hostname called AppvaneHost, in port 8080. For the setup user will use the tool.jar and using the class ScenarioWideDPL and the method ‘put’, will add the desired rows.

A call will be similar to

ScenarioWideDPL swdpl = new ScenarioWideDPL();

swdpl.setup("URL","Storage Name",false);

URL: Instance running Appvance (required). This machine will run the service that will control the delivery of unique data among test nodes and users.

Storage name: the name of the storage.

NOTE: Two DPLs with the same URL and different storage names will not share any data, Two DPLs with the same URL and same storage will share the same data.

False – Print Scenario Wide DPL access – Set to true or false. Print Scenario Wide DPL access: Indicates if the server should print every time a new row has been added or removed. This message will be printed in Options-> Local Output logs.

Example: swdpl.setup("http://AppvanceHost:8080","MyStorage",false);

During testing user will use the scenario builder to pass data to the test cases, in order to pass the data user will first define the DPL in resources

Users can add Global set up using Java (or TestNG) script type to store data in Storage and pass it back to 'getNextData' method.

If the show storage activity is checked, in the console it will show when a new row is being added or used.


Last updated: September 01, 2023

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

Use Hash DPL Data in Scenario Editor Tests

Hash DPL can be created in Appvance IQ by using the Hash DPL Interface under DPL options, which can be used to data drive scripts in Test designer, JS Edit & Play, Scenario Editor, and others.

  1. Login to AIQ as a user or Admin

  2. Click DPL Options in the left menu

  3. Click Hash DPL after expanding the DPL Options

  4. Click Add Column to create a new column

  5. Provide a valid name

  6. Click Create and Close

  7. Similarly, multiple columns can be added as desired

    1. Note: Invalid columns names are - Spaces are not allowed, Empty values are not allowed, Special characters are not allowed.

  8. Click Add Row to add multiple rows

  9. Click File > Save to Save the file with a valid file name, which can be used in Test Designer or others

  10. Click delete rows/columns to delete the rows or columns

  11. Right Click any cell to remove the entire column or the entire row

  12. The column name field is editable, in case the names of columns are renamed, can be renamed just by editing those cells.

    Note - Column names with special characters like - (hyphen) would not be allowed, there would be a warning message displayed and also a suggestion to try without the special character.


Last updated: August 14, 2023

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

Configure JavaScript DPL Data

Introduction

All Functions and Methods

JavaScript DPL in Test Designer

JavaScript DPL in Scenario Editor

JavaScript DPL in AISG

Introduction:

JavaScript DPL is a data production library generator, that generates a CSV file with JavaScript functions and methods which could be evaluated during run time or it will generate an evaluated CSV file with the selected functions and methods which could be used in data driving scripts in Test Designer, data driving scripts in Scenario Editor and also during AISG of an application.

Navigate to Javascript DPL from the left navigation panel.

The next step is to add the required columns and rows to create the DPL.

Click Add Column button at the bottom, provide the column name and click Create & Close

Use Add row button to add as many rows as required.

On any given cell, click the =" link or click the column name for entering data in the entire column.

Choose the required Function from the functions drop-down and choose a method (depending on the function chosen) and click the green tick mark for the function and method (if available) to be added to all the row(s).

Similarly, there are several functions and methods that could be chosen from the list.

You can also click Help Locator to get some of the formats and examples.

After selecting the required functions and methods, it is time to save the file. Click File > Save, choose the location where you want to save the file. Click Save.

Once the file is saved you could download the created file either as a JavaScript CSV file (with functions and methods) which will be evaluated during the run-time or you could evaluate using the evaluate symbol on the top right and then download the file as well.

You can click the Evaluate button to check the evaluated values and undo the evaluation to undo the evaluation done.


Last updated: June 26, 2023

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

Use DPL Data Sources in AIQ

Use DPL Data Sources in AIQ

DPLs provide reusable data to AIQ tests. They keep test data and data-generation rules separate from Scenario Editor steps so scenarios remain easier to maintain.

Basic workflow

  1. Create or select the DPL that represents the required data source or generated data rule.
  2. Map the needed DPL fields to the Scenario Editor inputs.
  3. Choose the execution behavior, such as using the next available row or reusing a value.
  4. Run a short validation execution and review the output before using the DPL in a larger run.

Good practices

Last updated: September 18, 2026

Communication Intra-Steps Using TheLocker

Appvance IQ’s architecture allows you to integrate different testing tools and technologies into one single orchestration framework. Each one of these tools and technologies works independently, leaving some gaps that won’t let them work as a team with other tools. One gap Appvance IQ fills is the external data-driven testing, achieved with the DPLs. The other gap is the actual communication between tools. That is achieved with a special DPL called TheLocker.

By default, all DPLs are read-only. That means you can use them to obtain dynamic data, but not to push data to them. When orchestrating, one test step (performed using one tool, let’s say soapUI) may generate data that can be used as input to the next step (say a verification on a web page using Selenium). To communicate these two steps, one solution will be to have one DPL that allows step 1 to push its results into a named “space” where step 2 can read it later on. This is what TheLocker does.

TheLocker metaphor is a simple one. Any tool or step can request a locker space, name it and store any kind of data in it. The subsequent steps are able to retrieve that data using the name of the space. An example may help to understand the concept better.

The first step, as with all the DPLs, is to create an instance of TheLocker:

<DataSources><dpl name="myLocker" type="TheLocker"/></DataSources>

As special as TheLocker is, it behaves a little differently than regular DPLs. One difference is that a normal DPL instance shares all its data with all the user threads, thus one user changing its data-position will change the position for all the other threads. TheLocker has one copy of the instance for each user, so each one may add different values to the same space and this will not override their partner's data. Another difference is TheLocker always has one instance, no matter how many you define, it will be the same.

Now, to push data. To have data pushed into TheLocker, the testing tool in turn needs to offer a scripting facility. In the example mentioned above, soapUI is the tool that may push data into a namespace and this is done using the groovy scripting facility of soapUI. This is done by creating a Groovy step in soapUI and issuing some code similar to this:

def myLocker = new com.Appvance.tool.dpl.provided.TheLocker();
myLocker.put("paht1",firstXPath)
myLocker.put("path2",seconfXPath)

Let’s see the selenese commands inside our selenese file, to see how it will pass the data:

<tr><td>clickAndWait</td><td> paht1</td><td></td></tr><tr><td>clickAndWait</td><td> paht2</td><td></td></tr>

When running Selenese, the passed data from TheLocker will match the name of the pairs ( path1 and path2 ) and replace those in the Selenese file with the data soapUI placed in TheLocker.

Note this is highly intuitive. Appvance IQ intelligently matches up and attends to the intention of the user to place the values in the correct place.

But the user may have even greater control of TheLocker in a scripting environment. For instance, if the receiving step is a Jython step, you may not need to pass the DPL values as above, you can simply request TheLocker instance and get data from it, like this:

from com.Appvance.tool.dpl.provided import TheLocker
…
myLocker = TheLocker()
lockerValues = myLocker .getData();

Last updated: June 02, 2023

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

The RSC Resource

When working with distributed testing nodes, tests may require additional resources such as CSV files, data files, or other external files. These resources must be transferred to the remote testing node before the test executes.

Because the resource may be stored at a different location on the remote node, a path that was hardcoded when the test was created may no longer be valid. This can cause the test to fail because the required file cannot be found.

Appvance IQ provides the RSC DPL to solve this problem. Resources can be declared in the test's <resources> section, and the RSC DPL can then be used to retrieve the actual path of a resource at runtime, regardless of where the resource is stored on the testing node.

Declaring Resources

Resources required by the test, including resources used by other DPLs, should be declared in the <resources> section.

For example, suppose a HashDPL requires a CSV file. The CSV file can exist anywhere on the local machine, but it must be included in the resources section so that Appvance IQ can transfer it to the remote testing node.

<resources>
    <data path="c:\mydata\data.csv"/>
</resources>

The <data> element represents a file resource.

Resources are assigned an index based on their order in the <resources> section. The first resource has index 0.

For example:

<resources>
    <data path="c:\mydata\data.csv"/>
    <data path="c:\mydata\users.csv"/>
</resources>

In this example:

Using RSC with another DPL

Once a resource has been declared, the RSC DPL can be used to obtain its actual runtime path.

For example, if a HashDPL requires the path to a CSV file:

<DataSources>
    <dpl name="mydpl" type="HashDPL">
        <argument name="file"
                  dpl="rsc"
                  value="getDataByIndex"
                  index="0"/>
    </dpl>
</DataSources>

Here, the file argument of the HashDPL receives its value from the RSC DPL.

The following attributes are used:

Attribute

Description

dpl="rsc"

Specifies that the RSC DPL is being used.

value="getDataByIndex"

Specifies that the resource path should be retrieved by its index.

index="0"

Identifies the resource declared at index 0 in the 

<resources>

 section.

The value returned by RSC is the actual path of the resource on the testing node. This means the test does not need to know or depend on the path used by the remote node.

Using RSC in Test Steps

RSC can also be used directly in test step definitions.

For example, a Jython test step may require the path of a resource:

<run name="CheckInventory"
     module="JythonModule"
     testclass="testgen4web"
     method="run"
     langtype="jython">
    <argument name="frozenfile"
              dpl="rsc"
              value="getDataByIndex"
              index="0"/>
    <argument name="ownerinfo"
              dpl="values"
              value="getData"/>
</run>

In this example, the frozenfile argument receives the runtime path of resource 0.

The test step can therefore access the file without knowing where Appvance IQ stored the resource on the remote testing node.

Use the following approach when a test depends on an external file:

  1. Add the file to the <resources> section.
  2. Determine its resource index based on its position in the section. Remember that indexing starts at 0.
  3. Use the RSC DPL with getDataByIndex whenever the file path is required.
  4. Avoid hardcoding paths to resources that will be used on distributed testing nodes.

This approach allows the same test to run reliably across different testing nodes and environments without requiring changes to file paths.

Summary

The RSC DPL provides a runtime-safe way to access resources transferred to distributed testing nodes. Instead of relying on a hardcoded local or remote path, the test references the resource by its index in the <resources> section.

For example:

<resources>
    <data path="c:\mydata\data.csv"/>
</resources>

The resource can then be referenced anywhere a file path is required:

<argument name="file"
          dpl="rsc"
          value="getDataByIndex"
          index="0"/>

The RSC DPL resolves the resource to its actual location on the testing node at runtime.

Creating Your Own DPL Using JavaScript in AIQ.

Creating your own DPL requires Java programming skills and a familiarity with the DPL interface definition. It involves a two-step process: first, you need to implement the DPL main class; second, you need to define a new DPL type for Appvance IQ.

REMEMBER: This is only one of the many ways of creating DPLs (simulated data that can be used for Scripts, Scenarios, and more). If you want to learn more about how to create DPLs and integrate them, visit our LMS and watch these videos:

Also, if you are interested in reading external data (Excel, CSV, and others):

The DPL Java class implements the standard DPL methods including getNextData, getDataByIndex, and more. It needs to implement the com.Appvance.tool.dpl.DataProduction interface. Here is an example:


import com.Appvance.tool.dpl.DataProduction;
public class SimpleDPL implements DataProduction {
public SimpleDPL() { }
public void setup(String data) {
System.out.println("This is a setup using data "+data);
}
public Object getData() { return null; }
public Object getRandomData() { return "RANDOM DATA"; }
public Object getNextData() { return "Simple data: getNextData"; }
public Object getDataByIndex(int index) {
return "Simple data: get data by index "+index;
}
public void tearDown() { }
}

Once you define and compile a custom DPL packaged into a .jar file, you should use the <DataSources> in a TScenario document to identify your new DPL type.


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

Last updated: October 15, 2026

Specific Types of DPLs

The following are some more examples of specific DPL types.

Multiple Data Files, DPLs, and Users

Multiple DPLs may be used in one TestScenario, even at the same time. In this example, we have two sets of users that need to work with different files at the same time. We begin by defining the files:

<resources><data path="./data/group1Passwords.csv"/><data path="./data/group2Passwords.csv"/></resources>

Next, we create two DPL instances:

<DataSources><dpl name="group1" type="HashDPL"><argument name="file" dpl="rsc" value="getDataByIndex" index="0"/></dpl><dpl name="group2" type=" HashDPL "><argument name="file" dpl="rsc" value="getDataByIndex" index="1"/></dpl></DataSources>

Now, the group1 is a Hash DPL working with the group 1 password file and the group2 is another one working with the group 1 password file.

Now, we define 10 concurrent users for Appvance IQ:

<crlevels><crlevel value="10"/></crlevels>

Next, we use the sequence construct to define the 10 concurrent users into two groups of 5 users (50% each).

<sequence name="TestComplexAsync-SameConn" proportion="50"><run name="CVS" testclass="com.examples.login" method="login" langtype="java"><argument name="arg" dpl="group1" value="getNextData"/></run></sequence><sequence name="TestComplexAsync-SameConn" proportion="50"><run name="CVS" testclass="com.examples.login" method="login" langtype="java"><argument name="arg" dpl="group2" value="getNextData"/></run></sequence>

This construction tells Appvance IQ to run the test using 5 users (50% of 10) using the group1 DPL and the other 5 users using the group2 DPL.

Relational Database Management System (RDBMS) DPL

Relational Database Management Systems (RDBMS) store data in a relational model of tables, rows, and columns. The Structured Query Language (SQL) provides a syntax for defining views of the relational model. The Data Production Library (DPL) generates data from a relational database and passes the data to a test at runtime.

The RDBMS DPL has five configuration parameters:

Connector: The JDBC type to connect to the database.

Appvance IQ does not provide a JDBC driver since databases provide JDBC connectors by implementing the java.sql.Driver interface. In the example given, the driver class used is the com.mysql.jdbc.Driver from the MySQL database.

Here is the configuration syntax to create one instance called RDBMS :

<DataSources><dpl name="rdbms" type="RDBMSDPL"><argument name="connector" value="com.mysql.jdbc.Driver" /><argument name="url" value="jdbc:mysql://localhost/tmstatus" /><argument name="login" value="superuser" /><argument name="password" value="12345" /><argument name="query" value="select * from person" /></dpl></DataSources>

Given a table called the person in a SQL database called tmstatus:

Pepe

24

Black

Red

Heriberto

56

Black

Blue

Austelina

77

Black

Yellow

<run name="CSV example 1" testclass="simple.print" method="print" langtype="java">argument name="arrayString" dpl=" rdbms" value=" getDataByIndex" index="0"/></run> 
<run name="CSV example 1" testclass="simple.print" method="print" langtype="java">argument name="arrayString" dpl=" rdbms value=" getDataByIndex" index="2"/></run>

The first call will return the first row of the table (Pepe line) in a string array.

The second call will return index 2, which is the third row (Austelina).


Last updated: June 02, 2023

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

Use DPL Data in Scenario Editor Tests

How to work with DPL in Appvance Designer scripts?

  1. Navigate to Appvance Designer

  2. Click File > New

  3. Click Record and provide a valid URL and start recording the desired use case where there are setValues involved in the script

  4. Once the recording of the script is complete something looks like the below

  5. Assuming the user has to data enable Row 5, 6 and 7

  6. Create a data CSV sheet with 3 columns and have data for all those 3 columns, Example screenshot below

  7. Now come back to Appvance Designer, click Options > DPL Options > and browse the CSV sheet that was created and Click OK

  8. Go to the Data tab at the bottom, Drag the first value from column 1 and drop the same in the value filed of Row 3, the value should get changed to “$CompanyName”

    Note: The column name can be anything specific

  9. Similarly, drag and drop the same for Row 5 and 6

    Below is the screenshot of how this should look

  10. Click File > Save and save the Appvance Designer Script

  11. Now go to Build and navigate to Scenario builder to create the data enabled scenario

  12. Click File > New

  13. Info Tab: Select a functional test or performance test based on the requirements

  14. With the example below I am selecting functional test with Repeat this use case options set to 2 in the test management section, in the case of performance test user can provide the number of users and other completion criteria that can be used as per the requirements

  15. Navigate to the Resource panel: Select “HashDPL-Reads CSV” as the type and provide some valid DPL name, Browse and select the CSV file that we created while creating the Appvance Designer Script

  16. Come back to the test case panel: Click ‘Add a test case execution’, Select ‘Appvance Designer script’ from the test type drop-down, Browse the Appvance Designer script that was created which was data-enabled, Leave other options to default

  17. Click Add DPL, Provide any valid name, select the DPL that was created in the resource panel in the available drop-downs and select Action to be ‘Get Next row of Data’

  18. Click Save

  19. As this is a functional test with a repeat use case set to 2, the scenario will run the test case for a couple of iterations and pick 2 different values from the CSV sheet

  20. Logs in the Options panel can be set to 100%

  21. Click File > Save and save the scenario and click play Scenario

  22. The test controller will open and run the test scenario that was set up, as mentioned this test will run for 2 iterations picking 2 different values from the CSV sheet

  23. Once the test is complete, click test case execution on the test controller, you should notice 2 successful executions

  24. Click each execution and notice the values that were picked as seen in the below screenshot

How to use RDBMSMapDPL in the Appvance Designer Script?

  1. Navigate to Appvance Designer

  2. Click File > New

  3. Click Record and provide a valid URL and start recording the desired use case where there are setValues involved in the script.

  4. Assuming the user has to data enable Row 7

  5. Now Data Enable value field, i.e Provide the column name of the table from which data will be retrieved

  6. Click File > Save and save the Appvance Designer Script

  7. Now go to Build and navigate to Scenario builder to create the data enabled scenario

  8. Click File > New

  9. Info Tab: Select a functional test or performance test based on the requirements

  10. Navigate to the Resources panel and click Add Data source

    • Select RDBMSMapDPL from DPL drop-down

    • Enter valid inputs in SQL Server, Database URL, User, Password, and query fields

    Example:

    SQL Server- com.mysql.jdbc.Driver

    Database URL- jdbc:mysql://localhost:3306/utp?useSSL

    User- utp

    Password- utp

    Query- select ResultOnTimeID from utp.ResultOnTime

  11. Come back to test case and select the DPL added from the drop-down

  12. Save and play scenario

  13. The test controller will open and run the test scenario that was set-up

  14. Once the test is complete, click test case execution on the test controller, Click each execution and notice the values that were picked


Last updated: June 26, 2023

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

Synthetic DPL Data in AIQ

During system development and testing, the employment of synthetic data can be very useful. This is because it prevents one from using one's real identity, especially for data like identification numbers, full names, and date of birth, among others. Manually generating synthetic data takes time, hence slowing down the testing process since it is hard to come up with a lot of new data.

Synthetic DPL allows users to generate massive amounts of data for their project use.

It can generate a massive amount of data thereby allowing a developer to push their programs to the limit during testing. Developers can then analyze the data as one would have done in real-life situations and come up with desired decisions.

What type of data does Synthetic DPL generate?

Some examples of data that can be generated include, but are not limited to the below categories:

To navigate to Synthetic DPL, on the left menu, expand Test Data and click Synthetic DPL.

Use File > New to start creating a new Synthetic DPL file.

Start by adding a new Column by clicking Add Column button.

Locale

You can generate data in multiple languages, The default language locale is set to English.

Supported languages are:

Click a cell to highlight and The Expression would be enabled to choose from the drop-down.

For example, for firstname - Expression could be name

After choosing name, click the + icon to add the name to the expression.

Then choose the method to be firstname and click the + icon.

You can click the Preview button to check the value generated.

Undo Preview can be used to undo the preview.

After filling all the columns, you can click Evaluate button to generate data, Expected Result text box next to Locale will provide the number of rows of the synthetic data generated.

If you want to update the cells, you can use undo evaluation which goes to edit mode and click a cell to change values, and clicking the Update button will take the changed values.

You can download the generated data as HashDPL by using the Save HashDPL button, which will download the CSV file that can be used in the Test Designer, Scenario Editor, or AISG.

To remove columns, you can right-click the column name to remove the selected column.

Sort Table button can be used to sort the table.

Some of the Expressions and Methods supported

File Menu

How to use in Test Designer

  1. Create a synthetic raw DPL using the synthetic DPL feature with the required fields based on the script.
  2. Open Test Designer script that needs to be data-driven.
  3. Open the data tab, select Synthetic DPL from the drop-down, Choose locale.
  4. Browse the raw CSV created using the synthetic DPL.
  5. Drag and drop the values to the respective value or the accessor column to be data-driven
  6. Play the script to generate the data during run time and use that generated data in the script

How to use in Scenario Editor

  1. Open Scenario Editor
  2. Create functional or performance tests as required and choose the test cases that are data-driven and add them to the test cases tab
  3. Go to the Resources tab and choose the type to be Synthetic DPL
  4. Browse the raw CSV file created using synthetic DPL
  5. Choose the locale depending on the requirement, default to English (United States), and provide a name
  6. Go back to the test cases tab, edit, add DPL, choose the created DPL
  7. Save and play the scenario to run the scenario with newly created synthetic data

How to use AISG

  1. Go to Create AISG
  2. Create a AISG for your application with any scan type and provide all the required details
  3. Click Next to open the Create Execution page
  4. From the Type drop-down, Choose Synthetic DPL, choose locale as preferred
  5. Click Load dataset from CSV file and choose the raw data file created using synthetic DPL
  6. Check the check-box of the browsed CSV file
  7. Click Create and once the pages are found during the AISG process, start mapping the defined variables
  8. AISG would be created creating synthetic DPL data every time it is run



Last updated: April 11, 2024

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

Encrypt/Decrypt DPL

The Data Production Libraries (DPLs) that are supported in AIQ are CSV files in a readable format. This allows AIQ to encrypt the contents of the file so that the file is not in a readable format. It is encrypted with a password so that can be decrypted during run time from the Scenario Editor.

Support for Encrypted DPL was deprecated in release 5.3.0 of AIQ. Scripts using encrypted DPL files will continue to run, but descriptions will not be possible.
This option has been removed from the Test Data page. You can migrate encrypted DPL to HASH DPL files before upgrading to release 5.3.0.

See Encrypt/Decrypt DPL in Scenario Editor for more information.

Considerations

Video explaining encryption-decryption of DPL

Encrypting a DPL

This option is available for users and administrators.

  1. From AIQ, navigate to Test Data > Encrypt/Decrypt DPL.
    ka4PwRVY6RP2Ys2r-adff117433d8.png
  2. Click Browse to select the Source File from the local directory or from the configured repository.
    NOTE: As of now this works only for HASH DPL and not for JS DPL yet.
  3. Select the Destination File. Provide a new name to the CSV file used for decrypting the data. If you choose an existing file, the file will be replaced with new contents.
  4. Provide a valid Password.
  5. Click the Encrypt File to encrypt the file.
    9U21QIV3ibVkIqba-816669d92988.png
    Make sure the password is remembered, because the same password should be provided to decrypt the password when running from the scenario as well.
  6. AIQ notifies you that the file has been successfully encrypted and saved.
    YZdyGhEPqV0pNLIF-b470352d2dde.png

Before Encryption

D3JUSuns0jkA2d2p-087167ae9161.png

After Encryption

5XnqlPO8nn3MwyE3-5a8454720da1.png

Decrypting a DPL

The files can be decrypted by choosing the decrypted file and again choosing a different file to decrypt and providing the same password.

8OBlOrmgkLFhFAYc-d04c74988ee1.png

Saving File to Repository

When saving the encrypted files to the repository, you will also have an option to provide the commit message.

oQmkV6YCQ1gWy4gW-9ac6a8fa3439.png

Last updated: May 06, 2025

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

Operational Test Data FAQ

Operational Test Data FAQ

Operational test data is the set of values a test consumes during execution.

Last updated: September 18, 2026