# Use DPL Data in Scenario Editor Tests

How to work with DPL in Appvance Designer scripts?

1. Navigate to Appvance Designer
2. Click File &gt; 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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/D2lkwD3ENXHo0T2o-074a0204d6f7.png)
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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/LM1JluCfcHf3SOUe-8989e3adc576.png)
7. Now come back to Appvance Designer, click Options &gt; DPL Options &gt; 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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/lMv1EeqE7b3q95SS-295c491ebc8a.png)
10. Click File &gt; 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 &gt; 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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/463xCtduS9wNqA73-8ff4c1cbc0fb.png)
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’
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/g1vrzbfRLaaKgYB2-87e124f6ce14.png)
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 &gt; 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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/nNOpTZNpt6SjWrdH-c4e068c2878b.png)
 
 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/vDcxgrWndOJcl3eD-5f8fcc832ef1.png)How to use RDBMSMapDPL in the Appvance Designer Script?

1. Navigate to Appvance Designer
2. Click File &gt; 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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/599QQJ3AdIv7vMkI-0e1dcdddc005.png)
5. Now Data Enable value field, i.e Provide the column name of the table from which data will be retrieved
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/U3E1uSKqMmhLbNmR-0019f08c226c.png)
6. Click File &gt; 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 &gt; 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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/TYxb7XGhHpPirLFF-ba94cc9c8da7.png)
 
<div id="bkmrk-last-updated%3A-june-2">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">June 26, 2023</span>

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

</div>