Scenario Editor FAQ
-
How to data drive a test script in Test Designer IDE and then a scenario
Steps below:
-
Create a Test Designer script in IDE using record and reply
-
Save the Test Designer script (Local or in a GIT Repository that is configured)
-
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)
-
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
-
Click the Data tab in the IDE
-
Click Browse and browse the created CSV file
-
The data file should be loaded with the columns and values
-
Choose the Type (Hash if it is a HashDPL or JSDPL if it is a JSDPL)
-
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
-
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
-
Save the script
-
Playback the script in IDE to make sure it is picking the values from the CSV file
-
Navigate to Scenario Editor
-
Choose Functional Test under Scenario Test Type
-
Go to the Test Cases tab
-
Click Add Test case
-
Choose the Script type to be the Test Designer
-
Browse the created data-driven test case from the saved location
-
Choose the browser from the drop-down
-
Provide a test case name and Save
-
Go to the Resources tab
-
Click Add DPL
-
Browse the created and saved DPL
-
From the Type drop-down, choose Hash DPL if it is a HashDPL or JavaScript DPL if it was a JSDPL
-
Give it a Name
-
Come back to the Test Cases tab
-
Click Edit for the created test case
-
Click Add DPL below the test case created, From the Select DPL, choose the DPL that was defined in the resources tab
-
Click Save
-
Save Scenario and play Scenario