Forum Discussion
3 Replies
- ChrisAdamsChampion Level 2
Do you mean that the request only shows the data for the last row in the datasource? If so, this is expected with data-driven tests.
I'm assuming you have assertions on the test request step to validate the response. If you want to record every response (e.g. one response per row in the datasource), then you will need a datasink step inside your loop.
Another point, have you correctly configured the datasource loop step? E.g. data source is the data source step and target step is the Rest request.
- MConneelyStaff
Are you looping through the Data Source with a DataSource Loop test step?
https://support.smartbear.com/readyapi/docs/functional/steps/data-source-loop.html
So, your test case should look something lie this (Data Source, Rest Request, Data Source Loop)- Pravz4224New ContributorHello MConneely,
Thanks for your response. Yes! My test case setup is done in the same flow as you’ve mentioned
Data source
Rest request
Data source loop,
Request seems to pass all the rows successfully but the response seen is only for one row.