We are performing load testing against some of our REST APIs and have had some problems as we must ensure we have turned off some specific functions in the API before we start the load testing.
Because of this we have added an endpoint which returns the state of these functions.
We hoped we could add an evaluation in our load tests before the actual load testing began when we executed the in the cloud. We have tried using a threshold, but it does not end the tests directly.
Do you have any suggestions if it is possible to perform some sorts of initial check towards the system in the actual tests instead of having to rely on manually check the state of the system under tests?