I'm trying to implement Load Test test script, which should act according to the scenario:
there would be several "producer" threads, which would upload files to database via web service;
there would be few "consumer" threads, which will download files uploaded by "producers".
Currently, I'm stuck on database clean up. I can obtain record ID using JSON extractor after sending "producer" request, and use this ID to simulate file download. But this ID isn't visible inside the Tear Down Thread Group.
Could you tell me, how I can pass value from Thread Group which uploads file to Tear Down Thread Group?
Currently, my JMeter 4 project use objects with following configurations:
- Producer Thread Group #1 (this thread group uploads and downloads file)
- POST HTTP request (this request uploads file)
- JSON extractor
- Names of created variables = id_to_delete
- JSON Path expression = $.record-id
- Match No. = -1
- GET HTTP request (this request downloads file)
- Producer Thread Group #2
- Producer Thread Group #3
- ...
- TearDown Thread Group.