Home > Software engineering >  Is it possible in Jmeter that based on the current csv row I can decide which endpoint to call?
Is it possible in Jmeter that based on the current csv row I can decide which endpoint to call?

Time:10-21

enter image description here

This is my csv file data. so is it possible in Jmeter that based on the Action column i can decide which endpoint to call or which HTTP action to perform by using if else condition or switch case?

CodePudding user response:

It is, the easiest is going for enter image description here

More information: Running JMeter Samplers with Defined Percentage Probability

CodePudding user response:

Just pass the CSV variable into an IF loop and check if the variable matches "create", "update" or "delete".

Info on IF Loops: https://www.blazemeter.com/blog/six-tips-for-jmeter-if-controller-usage

  • Related