JMeter: terminate thread group after first HTTP request

I am testing a mobile application and I have a group of threads with about 40 HTTP requests, the first of which is an access token request. I want to do this, if the access token fires then skip the current iteration of the stream.

+3


source to share


1 answer


There are at least 3 options:

  • You can define what action to take in case of sampler error at Theme Level


Thread group

  1. If you need to restrict this behavior to one pattern, add the Result Action Action Handler as a child of the request
  2. If you need to skip the current iteration based on a certain condition, use the Test Action sampler in combination with If the controller
+3


source







All Articles