Re: Exiting the jsr223 sampler

2021-02-25 Thread Mariusz W
Hi, If tere is such possibility You can also use "If Controller" to check some conditions. In this controller you can use groovy code as well to check some conditions (e.g. ${__groovy(vars.get('foo') != 'boo')} - it may easier to analyzing in future when you back to script. Mariusz On

Re: Exiting the jsr223 sampler

2021-02-25 Thread glin...@live.com
return keyword will stop the sampler execution once it's reached. If you add a string like: > return 'A' the JSR223 Sampler result will be *A* no lines after the *return* keyword will be executed. More information on Groovy

Re: Exiting the jsr223 sampler

2021-02-25 Thread Jmeter Tea
Hello, You can throw Exception, as: if(A) { throw new Exception("a"); } But usually you just put B in else,as: if (A) { } else { B } or one if nothing to do when A == true: if (!A) { B } On Thu, Feb 25, 2021 at 4:21 PM Tong Sun wrote: > Hi, > > Quick & simple question, how to

Exiting the jsr223 sampler

2021-02-25 Thread Tong Sun
Hi, Quick & simple question, how to stop the jsr223 script from reaching the following processing code (B), return, exit, or ...? if (A) exit B I just want the jsr223 script not to process the following code, B, not to stop the whole thread execution, of which it's the only hits I've found