Hello,
I'd like to make something like this with JMeter : Request 1, Request 2, Request 3, wait 30 seconds, Request 1, Request 2, Request 3, wait 30 seconds, Request 1, Request 2... How can I do that ? If I do : Test Plan |--- Thread group |--- Loop Controller |--- Request 1 | |--- Constant Timer (30000) |--- Request 2 |--- Request 3 I have the 30 seconds pause between Request 3 and Request 1 but I also have a 30 seconds pause before the first Request 1. I would like to avoid this first pause. Thanks in advance for your help. Regards PS : I got problem to post this message. Sorry if it ever appears several times. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
You could either duplicate the requests prior to the loop controller so
the first time through your delay isn't a part, or you could use the sleep sampler (the Java Request + SleepTest class). Neither solution is ideal, I know. -Mike On Fri, 2005-06-03 at 11:50 +0000, PiRanha wrote: > Hello, > > I'd like to make something like this with JMeter : > Request 1, Request 2, Request 3, wait 30 seconds, Request 1, Request 2, > Request 3, wait 30 seconds, Request 1, Request 2... > > How can I do that ? > > If I do : > Test Plan > |--- Thread group > |--- Loop Controller > |--- Request 1 > | |--- Constant Timer (30000) > |--- Request 2 > |--- Request 3 > I have the 30 seconds pause between Request 3 and Request 1 but I also have > a 30 seconds pause before the first Request 1. > I would like to avoid this first pause. > > Thanks in advance for your help. > Regards > > PS : I got problem to post this message. Sorry if it ever appears several times. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
> You could either duplicate the requests prior to the loop controller so
> the first time through your delay isn't a part, or you could use the > sleep sampler (the Java Request + SleepTest class). Neither solution is > ideal, I know. > -Mike Thanks Mike. I think I will use the SleepTest class because I don't like the idea of duplicating tests (maintenance issue). However I have another question : is there a way for a sampler not to be displayed in the results (by the different listeners) ? I'd like the timers I make with SleepTest class not to be reported since they don't correspond to real tests. Regards. PiRanha --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
You could filter it out based on scoping:
Test-Plan ThreadGroup LoopControl SimpleController Request 1 Request 2 Request 3 Listener 1 Listener 2 SleepTest In the above test plan, results from SleepTest would not appear to the two listeners because it's not in their scoping. It would be nice to have filtering based on sampler name, but such doesn't currently exist in JMeter (sounds like a good, simple enhancement request). -Mike On Mon, 2005-06-06 at 10:40 +0200, PiRanha wrote: > > You could either duplicate the requests prior to the loop controller so > > the first time through your delay isn't a part, or you could use the > > sleep sampler (the Java Request + SleepTest class). Neither solution is > > ideal, I know. > > -Mike > > Thanks Mike. > I think I will use the SleepTest class because I don't like the idea of > duplicating tests (maintenance issue). > > However I have another question : is there a way for a sampler not to be > displayed in the results (by the different listeners) ? > I'd like the timers I make with SleepTest class not to be reported since > they don't correspond to real tests. > > Regards. > PiRanha > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
> You could filter it out based on scoping:
> > Test-Plan > ThreadGroup > LoopControl > SimpleController > Request 1 > Request 2 > Request 3 > Listener 1 > Listener 2 > SleepTest > > In the above test plan, results from SleepTest would not appear to the > two listeners because it's not in their scoping. > > It would be nice to have filtering based on sampler name, but such > doesn't currently exist in JMeter (sounds like a good, simple > enhancement request). > > -Mike Thanks for your answer Mike. In fact this is what I have done :) But filtering features would be effectively a good thing. Because if you want to make 2 loops like the one you described above it is impossible to have a global report for the tests made in the two different loops (see example below). Test-Plan ThreadGroup 1 LoopControl 2 SimpleController 1 Request 1 Request 2 Request 3 Listener 1 Listener 2 SleepTest 1 ThreadGroup 2 LoopControl 2 SimpleController 2 Request 4 Request 5 Request 6 Listener 1b Listener 2b SleepTest 2 In this example we cannot define the Listeners 1 & 2 (that are identical to Listeners 1b & 2b) at the Test Plan level to get the results of the all tests in a same table without including the SleepTest samplers. Filtering could be done at two different levels : - at the listener level : the user could exclude some samplers from the scope of the listener - at the sampler level : a checkbox could be selected to exclude the sampler from the scope of all the listeners At last, since we talk about features requests for samplers and listeners I think it would be nice too if it was possible to regroup several results in only one result. So, assuming the following Test Plan : Test-Plan ThreadGroup SimpleController 1 Request 1 Request 2 SimpleController 2 Request 3 Request 4 Listener It would be great to optionally get in the listener only the agregated results for SimpleController 1 & SimpleController 2 (not the detailed for Requests 1-2-3-4). For instance, if Requests 1 & 2 succeeded in T1 & T2 seconds Listener could report a success in T1+T2 seconds. If Request 3 succeeded in T3 seconds and Request 4 failed in T4 seconds the report could be a 'Failed' for SimpleController 2 in T3+T4 seconds. Regards PiRanha --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
Free forum by Nabble | Edit this page |