Running a Data Driven Test using multiple Keywords and scripts
I have a data driven test setup using a Keyword test and scripts included in the main Keyword Test 1.
It works, but it will get longer with time, and I'm afraid it may be hard to manage (modify)
I am not sure if this is the efficient way of doing it. Other suggestions?
Can I do the date driven test in the Execution Plan without having all the scripts inside Keyword Test 1?
Some scripts rely on the data entered from Keyword Test 1.
Here is my scenario:
Keyword Test 1 < Here I define the data driven and then create the data loop >
Script 1
Script 2
Script 3
Script 4
Keyword Test 2
Keyword Test 3
Script 5
Keyword Test 4
Script 6 < adds the data into a spreadsheet>
Script 7 <last script to run with the first data before jumping back to Keyword Test 1 for the next data entry>
Understand. I guess in certain situation, like yours, there's no easier solution. I can only suggest to insert suitable comments, make the coding as readable as possible, and make functions not too complicated.
Even the example from SmartBear, https://services.smartbear.com/samples/TestComplete15/smartstore, follows similar process.
At some point, you have to have a master test. Breaking tests into smaller and smaller groups ends up making things more difficult over time. Name your tests clearly, whether scripts or keyword tests, and it will work out fine.