Reputation: 85
Currently my test structure is:
So my test runs fine with one CAMPAIGN_ID. Now i want to enhance this test and execute it for 10 Campaigns without updating it in User Defined Variable everytime. So i created a campaign.txt file as below
Questions: 1. What is best approach to achieve this goal ? should i use beanshell prepocessor to read from txt file and store it in vars.put("Campaign1",100) and use for Each loop to loop through. 2. Can someone please help me with the new test structure and code sample ?
Any help is much appreciated !
Upvotes: 1
Views: 282
Reputation: 15370
Are you trying to loop 2 csv files?
For every rows in an outer CSV file (CAMPAIGN_ID), you need to run all the rows of inner csv file (user_id),then take a look at below example.
http://www.testautomationguru.com/jmeter-looping-2-csv-files/
Upvotes: 2