'how to GET and search response contain the file then proceed to next HTTP request

I have a scenario that

1. user upload a file - system process take 10mins -
2. then the user can transfer the file 

I cannot do load test in a Thread - #1 then #2 because of the processing time (#2 is performing too quickly before the file is ready for transfer).

I am thinking to keep sending GET requests and finding the response containing the file name then proceeding to #2.

I can only use GET API to get a list of files (API does not support specific file search, the GET return list of file in response)

is that a good approach? how can I do it?



Solution 1:[1]

Use While Controller to wait until the uploaded file appears in the list of files from the API. The output of the API can be parsed using i.e. JSON Extractor

Check out Using the While Controller in JMeter for more comprehensive information and example configuration.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitri T