I want to develop JMeter 5 test plan with the following spec:
First call HTTP Rest API A. if the status code from A is not 200, keep repeatedly calling A until status code is 200. After first successful call to A, then proceed to call Rest API B.
There is CSV Data Set Config for API B which reads CSV file, each entry in CSV invokes a call to API B. When EOF is reached, JMeter must automatically exit (stop running).
API A must be called once every 10 minutes while API B is still being called (or JMeter is still running processing CSV file).
How to achieve this goal? 2 Thread groups are required or single thread group can do the job?
Please provide details like what should be the configs for test plan and thread group(s), the sequence of JMeter elements like While Controller, etc.
The purpose of the test plan is load testing API B, so multiple threads may call API B while a single thread is used to call API A.