So I have a test plan in Jmeter which reads an Auth token from CSV and does POST request.
But if it fails then I run a script that would update the CSV with a new Auth token.
The problem is that I do 4 different POST in one thread. So when 1 of them fails I run the script and want the other POST in the same thread to read the updated CSV.
But in Jmeter once it reads a CSV file it uses the the same values for the whole thread.
I see option for ALL Threads, Current Thread Group, and Current Thread.
But do not want to even share it in a current thread. I want to read the CSV for every POST in my current thread.
UPDATE from comments below.
My current test plan looks like the following:
HTTP POST --Read Auth Key From auth.csv
IF Controller (if last Sample Not Ok)
-- Run the Script Update the auth.csv
HTTP POST --Read from auth.csv
IF Controller(if last Sample Not Ok)
-- Run the Script Update the auth.csv
The problem is the 2nd POST request uses the old values from the CSV and not the new updated csv.