Forum Discussion
So, let me see if I understand.
You have a reusable keyword test with one of these data loops. the data loop points to an excel sheet. That excel sheet has 5 rows. You have 5 products you're testing. When you run a test for product 1, you go in and edit your tests to use row 1 through row 1. When you run a test for product 3, you edit the test to use row 3 through row 3.
So... in other words, they aren't exactly loops but simply external storage of parameters to be used for the test case. You're not looping, within the test case, for all 5 products.
What I would do, actually, is instead of using a data loop, add parameters to your keyword tests and then use those parameters instead of data loops. When you add the resuable keyword test to a project for, for example, product 4, you would simply use a different set of parameters rather than having to point to an excel sheet.
You could even keep your Excel file because that makes it easier to change data without changing it in the test parameters every time, but use tristaanogre's parameter idea for accessing the Excel data.
Use a parameter called TestNumber or something and then set your test to use Excel.TestNumber (not the real syntax!) to get the row for the test. Then each test has it's own parameter value and row and you never have to change it.
Related Content
- 5 years agoloridee
- 8 years agoBhuvanShanmugam
Recent Discussions
- 7 minutes agodhundley