As part of my setUp Thread Group, I plan on creating objects that I need to refer to later on. Some of these objects are to test particular request methods like GET/PATCH/DELETE - things that need a specific ID. I want data separation so that I don't try and GET an item that another request has used to DELETE.
I am trying to work out the best way to extract IDs from the created objects to use in subsequent thread groups. I could write them out to a file, or save them as variables (to then refer to as properties later on).
If I were to write them out to a CSV file, could my subsequent thread groups all use the same file but work through the file intelligently so that thread 1 starts at row 1, thread 2 starts at row 2 etc? If so, how would this be setup in JMeter? Currently, I have separated out the individual GET/PATCH/DELETE requests into different thread groups so I have more control over how many times they execute. I can easily add CSV Data Configs to each thread group but I'm pretty sure they'd all start at row 1...?
The alternatives I've considered are to try and group requests into thread groups but I'd not so easily be able to control thread group numbers.
Hope this makes sense - let me know if not and I'll try and add more info. Any other suggestions for this sort of scenario, feel free to offer them!