Process to make your Tests 'Data-Driven'
- Create your Test Scripts (as you would normally do with QaSCRIBE)
- Upload the Test Scripts into Worksoft SaaS
- Create your Test Scenario(s) by assembling Test Scripts
- Create the Testing Contexts for your Scenario
- Validate your Test Scenario(s) for each of the Testing Context(s) of interest to you
- Create and Execute (certify) your Run Definitions for all the Testing Context(s) of interest to you
Once you have 'certified' Run Definitions and/or Test Scenarios, you are ready to make these automated tests into 'Data-Driven'.
To make the tests 'Data-driven' follow these steps:
- Create the Data Definitions (that define the structure of your Data Files) in Worksoft SaaS.
- Create and Upload the Data Files that have the data sets (test inputs and expected outputs) that you would like the tests to loop through into Worksoft SaaS
- 'Parameterize' the Test Scripts (actually relevant "Instructions" within the Scripts) that you want to iterate or loop through data sets from the Data File after 'attaching' the relevant 'Data Definition' to each Test Script
- 'Bind' the 'Data File(s)' that you want Worksoft SaaS to dynamically feed the data from when the test is executing within Worksoft SaaS, and
- Specify using the 'Data-driven Option(s)', how you want Worksoft SaaS to react when there are contiguous failures across data iterations of a loop. You can either tell Worksoft SaaS to just abort the current Data Loop when there are N consecutive failures and let the other scripts outside the current loop to execute OR tell Worksoft SaaS to abort the entire test. This level of granularity will give you the ability to avoid 'run-away' tests.
While Worksoft SaaS lets you assemble and validate Test Scenarios directly in a Data-Driven mode, it is recommended that you assemble and validate Test Scenarios in a non-data-driven mode first before you proceed with executions in the data-driven mode. We believe that adopting/following such a best practice will go a long way in saving a lot of debug time later.
Please note that even if you make your tests 'data-driven', you can by a single click, make your tests execute as a non-data-driven mode. This and many other options that control 'Data-driven' tests are available for you to use on the 'Bind Summary' tab of your tests (Scenarios and Run Definitions).