Setup tests - Run before Standard tests
Setup test: doesn't seem to be working for multiple iterationsHi,
In my tests, I have one scenario containing 5 different test cases. In the scenario, I tried to setup test as methods and output of those methods, I need to use as request parameter for those 5 different testcases execution.
- I have a comprehensive datasource which is the main source of inputs parameters for all my tests. I set it up according to my testing needs
- Methods in setup tests are reading values from this datasource (currently, its datatable but I will be using Excel spreadsheet).
- In Method 1, I am reading a few values from datatable and setting up my final request parameters. Same for Method 2 and Method 3. I need to use these methods to create my final request parameters so that I don't need to make complex changes in my base input source and can keep it simple to read / configure.
- Out put of those methods are used as parameters in request.
Issue: when I run test for 1 iteration, it works fine but when I run multiple iterations, only last value is being sent in request param. I was expecting that after 1st iteration, setup test should take next set of values from datatable and then send it as parameter for iteration 2 and so on. However, this is not happening.. May be I am doing something wrong but can you suggest ?