davecoleman
3 years agoContributor
One Excel Datasource and Multiple Test cases using Specific Test Case ID within source
Hi, I have the following excel source file
Test Case ID | CustomerID |
test001 | Cust 001 |
test002 | Cust 002 |
test003 | Cust 002 |
I want to setup Testcases for e.g. Test002 that is picks up the value of "Cust 002" (which changes from day to day) and check the response via assertion that its correct.
how do I parse the excel file and find "test002" and input that value to that testcase only?
I would envisage the layout to be:
- Datasource
- "test001"REST step
- "test002" REST step
- "test003" REST step
- datasource loop
Looks like Groovy script is needed but there could be 100 testcases and associated data in the source file.
Thanks Dave
other examples with no answers: https://community.smartbear.com/t5/ReadyAPI-Questions/How-to-use-DataSource-and-DataSource-Loop-in-multiple-test-cases/m-p/150457