dberchtold commented on issue #5506:
URL: https://github.com/apache/jmeter/issues/5506#issuecomment-2595679513

   I was running into the same problem. For me it looks like 
`setTestLogicalAction(testLogicalAction)` does not work as expected.
   
   I use this workaround:
   For the Samplers where you want to "continue on error" I change the error 
handling in current thread using following code. (e.g. using a JSR223 
PreProcessor). This will not change the setting in Thread Group.
   
    ```
   ctx.getThread().setOnErrorStartNextLoop(false);
   ctx.getThread().setOnErrorStopTest(false);
   ctx.getThread().setOnErrorStopTestNow(false);
   ctx.getThread().setOnErrorStopThread(false);
   ```
   To switch back to configured Error handling in Thread Group use following 
code (e.g. in JSR223 Sampler)
   
   ```
   
ctx.getThread().setOnErrorStartNextLoop(ctx.getThreadGroup().getOnErrorStartNextLoop())
   ctx.getThread().setOnErrorStopTest(ctx.getThreadGroup().getOnErrorStopTest())
   
ctx.getThread().setOnErrorStopTestNow(ctx.getThreadGroup().getOnErrorStopTestNow())
   
ctx.getThread().setOnErrorStopThread(ctx.getThreadGroup().getOnErrorStopThread())
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to