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: How to handle Concurrent sessions for single user id in Jmeter

2021-02-25 Thread Mariusz W
Hi, Did you check and compare all HTTP headers in browser and JMeter? Maybe there are any which should be added manually in JMeter (and in Browser are added and managed by JavaScript) Mariusz On 2021/02/25 14:28:26, Harshal Kulkarni wrote: > Can anyone suggest me here? I am still struggling

Re: Debug only after each failed sampler - Debug PostProcessor limitation

2021-02-25 Thread Felix Schumacher
Am 25.02.21 um 20:53 schrieb glin...@live.com: >> subsampler is not created in each Passed and Failed samplers as it should >> be > it should be created as long as you're smart enough to properly put the > listener (hint - JMeter Scoping Rules >

Re: Debug only after each failed sampler - Debug PostProcessor limitation

2021-02-25 Thread glin...@live.com
> subsampler is not created in each Passed and Failed samplers as it should > be it should be created as long as you're smart enough to properly put the listener (hint - JMeter Scoping Rules ) > SamplerProperties and

Re: Debug only after each failed sampler - Debug PostProcessor limitation

2021-02-25 Thread glin...@live.com
Here is example code you could use in the JSR223 Listener , it produces more or less the same output as the Debug PostProcessor: > def subResult = new org.apache.jmeter.samplers.SampleResult() >

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

Re: How to handle Concurrent sessions for single user id in Jmeter

2021-02-25 Thread Harshal Kulkarni
Can anyone suggest me here? I am still struggling with this issue. Thanks, Harshal On Tue, 23 Feb, 2021, 6:41 am Harshal Kulkarni, wrote: > Yes, I can able to login on same machine and same browser simultaneously. > > On Mon, 22 Feb, 2021, 6:57 pm Tong Sun, wrote: > >> On Mon, Feb 22, 2021

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