erichuang97
15 years agoNew Contributor
How to loop data correctly for request with multiple DataSou
I have a Soap request that has 3 input values: ID, Reason, Period. In my LoadTest TestSteps, I have the following setup:
1. DataSource - 'ID', 'Reason', 'Period'
2. Soap Request
3. DataSource Loop - 'ID', 'Reason', 'Period'
This works fine when I have all 3 values in a single CSV file and set up 3 properties in the DataSource for each value, it will go through the values line by line with the help of DataSource Loop.
However, if all 3 values come from 3 different CSV files, I set up 3 DataSources and 3 DataSource Loops for them, and I want each value used in the request to be picked up from its data file sequentially for each LoadTest iteration/thread, the following setup obviously doesn't seem to work this way.
1. DataSource1 - 'ID'
2. DataSource2 - 'Reason'
3. DataSource3 - 'Period'
4. Soap Request
5. DataSource Loop 1 - 'ID'
6. DataSource Loop 2 - 'Reason'
7. DataSource Loop 3 - 'Period'
Anyone has experience about how to handle multiple DataSources for the same reqeust and ensure each DataSource is looping correctly?
Thanks in advance.
1. DataSource - 'ID', 'Reason', 'Period'
2. Soap Request
3. DataSource Loop - 'ID', 'Reason', 'Period'
This works fine when I have all 3 values in a single CSV file and set up 3 properties in the DataSource for each value, it will go through the values line by line with the help of DataSource Loop.
However, if all 3 values come from 3 different CSV files, I set up 3 DataSources and 3 DataSource Loops for them, and I want each value used in the request to be picked up from its data file sequentially for each LoadTest iteration/thread, the following setup obviously doesn't seem to work this way.
1. DataSource1 - 'ID'
2. DataSource2 - 'Reason'
3. DataSource3 - 'Period'
4. Soap Request
5. DataSource Loop 1 - 'ID'
6. DataSource Loop 2 - 'Reason'
7. DataSource Loop 3 - 'Period'
Anyone has experience about how to handle multiple DataSources for the same reqeust and ensure each DataSource is looping correctly?
Thanks in advance.