Pages

Monday, 30 January 2017

JMeter - PostProcessor - "Result Status Action Handler"

This JMeter element used as a post-processor to take the action in case of failure of the request. There are certain options given which instruct the JMeter thread that what to do next?

The same options (actions) you can see in the thread group element. The thread group "Action to be taken after a Sampler error" setting is overridden by "Result Status Action Handler". 

How to add "Result Status Action Handler" element?
You can follow the below steps:
1. Select "Sampler" node where you want to add this post-processor
2. Right-click on the node
3. Mouse hovers "Add"
4. Mouse hovers "Post Processors"
5. Click "Result Status Action Handler"

How to remove "Result Status Action Handler" element?
You can follow the below steps:
1. Select "Result Status Action Handler" node
2. Right click on "Result Status Action Handler" node
3. Click "Remove" (Mouse) or "Delete" button from the keyboard
4. Click "Yes"    

What are the attributes of "Result Status Action Handler" element?

"Result Status Action Handler" has following attributes:
  • Action to be taken after a Sampler error: Actions taken in case of sampler error occurs, either because the sample itself failed or an assertion failed etc. The possible choices are:
a. Continue: ignore the error and continue with the test
b. Start Next Loop: ignore the error, start next loop and continue with the test
c. Stop Thread: stop the current thread and exit the thread
d. Stop Test: the entire test is stopped at the end of any current samples.
e. Stop Test Now: the entire test is stopped abruptly. Any current samplers are interrupted if possible.

Next Topic:
Apache JMeter - Debug PostProcessor

Previous Topic:
Apache JMeter - "JSR223 PostProcessor" Element

Related Topics:

No comments:

Post a Comment