Bug 61698

Summary: Test Action: It stop is selected, samplers following Test Action can run
Product: JMeter Reporter: Philippe Mouawad <p.mouawad>
Component: MainAssignee: JMeter issues mailing list <issues>
Severity: normal CC: p.mouawad
Priority: P2    
Version: 3.3   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Philippe Mouawad 2017-10-30 21:32:12 UTC
Report on user mailing list:
When adding Test Action
<http://jmeter.apache.org/usermanual/component_reference.html#Test_Action> with
Stop/Stop Now action

You have Target options: All Threads/Current Thread

When choosing Current Thread in a multiple threads environment it stops and
don't continue further this Sampler

The problem is that when choosing *All Threads* Some threads execute other
sampler after than Test Action

It's very confusing, because I expect All Threads option to be more strict
than just Current Thread

In code I saw that in Current Threads it also stop current threads
context.getThread().stop();and in All Threads option it doesn't.

Is it a bug or a feature (adding grace period of stopping)?

For example Test Plan:

   - Thread Group (5 Threads)
      - Sampler1
      - Test Action Target: All Threads, Action Stop/Stop Now
      - Sampler2

Sampler 2 is execute only when Target: All Threads and not when Target:
Current Thread

Note: Also choosing Action Go to next loop iteration (Target field is
disabled) prevent Sampler2 to be executed

Comment 1 Philippe Mouawad 2017-10-30 21:34:15 UTC
Author: pmouawad
Date: Mon Oct 30 21:33:54 2017
New Revision: 1813832

URL: http://svn.apache.org/viewvc?rev=1813832&view=rev
Bug 61698 - Test Action: It stop is selected, samplers following Test Action can run
Bugzilla Id: 61698