# Scenario Editor FAQ

1. **How to data drive a test script in Test Designer IDE and then a scenario**
 
Steps below:

1. Create a Test Designer script in IDE using record and reply
2. Save the Test Designer script (Local or in a GIT Repository that is configured)
3. Have the data file (CSV file) ready with all the inputs that are required to be data-driven using notepad ++ or any other editor (JS DPL could also be created using AIQ's JSDPL)
4. Save the CSV file in your local machine or on a GIT Repo so Test Designer should be able to access the created CSV file
5. Click the Data tab in the IDE
6. Click Browse and browse the created CSV file
7. The data file should be loaded with the columns and values
8. Choose the Type (Hash if it is a HashDPL or JSDPL if it is a JSDPL)
9. Drag and Drop the values from the CSV table from the Data tab to the value column (of the row) that needs to be data-driven
10. Just like data driving value columns, the Accessor column can also be data-driven in a similar way by dragging and dropping from the data tab cell to the accessor column
11. Save the script
12. Playback the script in IDE to make sure it is picking the values from the CSV file
13. Navigate to Scenario Editor
14. Choose Functional Test under Scenario Test Type
15. Go to the Test Cases tab
16. Click Add Test case
17. Choose the Script type to be the Test Designer
18. Browse the created data-driven test case from the saved location
19. Choose the browser from the drop-down
20. Provide a test case name and Save
21. Go to the Resources tab
22. Click Add DPL
23. Browse the created and saved DPL
24. From the Type drop-down, choose Hash DPL if it is a HashDPL or JavaScript DPL if it was a JSDPL
25. Give it a Name
26. Come back to the Test Cases tab
27. Click Edit for the created test case
28. Click Add DPL below the test case created, From the Select DPL, choose the DPL that was defined in the resources tab
29. Click Save
30. Save Scenario and play Scenario
 
<div id="bkmrk-"></div>