Hi,

processing the first request can take more then 5 seconds, so its not
always possible to send the requests 5 seconds apart inside one
thread. Which means that you either have to use different threads, or
compromise.

If your requests are independent, you could use the Switch Controller
to send each request in different thread

Thread Group (Number of threads(users) = X; Ramp up period(in seconds)
= 5*X; Loop Count = 1)
--- Counter (Name=My Counter;Start=1;Increment=1;Maximum=N;Reference
Name=CNAME;Track Counter Independently for each User=True)
--- Swtich Controller (${CNAME})
--- --- Request 1
--- --- Request 2
....
--- --- Request N

This way, each thread will send only one of the given request, going
through the requests list. But there is no way to e.g. share the
cookies properly between the threads.

Or you could compromise - run everything inside one thread, and choose
the pause time Tp depending on previous requests response time Tr: Tp
= 5 -Tr seconds if (Tr < 5), or Tp = 0 if (TR >= 0).

Btw, why do you need something like that? Generating the requests is
usually done to model some user behavior, and they certainly do not
click the buttons exactly once every 5 seconds ).

Regards,
Andrey



On Fri, Aug 29, 2008 at 5:32 PM, Jeremy Quinton
<[EMAIL PROTECTED]> wrote:
>
> Were you specify
>
> Thread Group
> --- Your Request here
>
> I would like to have
>
> Thread Group
> --- Your Request here
> --- Your Request here
>
> With a 5 second delay between each of the requests
>
> You example works fine for one http request but not multiple http
> requests.
> I'm trying to achieve the following.
>
> My first request would be http://www.abc.com
> Delay 5 seconds
> My second request would be a different url http://www.abc.com/anotherurl
>
> I have tried doing this by having another thread group however things
> then start to overlap.
>
> For example.
> Group one ramps up in 50 seconds 10 users so thats 1 every 5 seconds.
> Group two ramps up in 50 seconds 5 users so thats 1 every 10 seconds.
>
> The problem is that when I get to 10 seconds I'll have two requests one
> from thread group one and one from thread group.
>
> Maybe what I'm trying to do is simple not possible.
>
> -----Original Message-----
> From: Andrey Beznogov [mailto:[EMAIL PROTECTED]
> Sent: 29 August 2008 13:19
> To: JMeter Users List
> Subject: Re: simultaneous http requests
>
> Hi,
>
> if you want to make a test plan which should send out independent
> requests, one every 5 seconds, set up your thread group as following:
>
> Thread Group
> --- Your Request here
>
> And the Thread Groups options should be set to
> Number of threads(users) = Number of requests to send out (lets call
> it NREQ) --- e.g. 100
> Ramp up period(in seconds) = 5*NREQ --- e.g. 500
> Loop Count = 1
>
> Then in you test plan, every 5 seconds a new thread will be spawned,
> will immediately open its own connection, send out the request, get
> the response and die. The time between the requests will be very close
> to 5 seconds.
>
> Regards,
> Andrey
>
> On Fri, Aug 29, 2008 at 3:14 PM, Jeremy Quinton
> <[EMAIL PROTECTED]> wrote:
>>
>> I have adjusted the ramp up time it does not seem accurate.
>> I have also been through the documentation "building a web test plan".
>>
>> I created another simple test with the following values.
>>
>> Number of threads(users) 1
>> Ramp up period(in seconds) 10
>> Loop Count 1
>>
>> Below the thread group I have two http requests.
>> If I run the test and view the results in table format
>> the start time of the requests is 3 and then 2.6 seconds apart.
>>
>> What I want to achieve is measure throughput so 1 request every 5
>> seconds. Then at a later stage 1 request every 4 seconds etc.
>>
>> This is sample data when I view results in a table format.
>>
>> Sample 1
>> 19      12:03:15.457
>> 20      12:03:18.399
>> Sample 2
>> 21      12:09:37.167
>> 22      12:09:39.854
>>
>> Thanks for yor help in advance.
>>
>> Are there any other tools you could suggest I use that are
>> free/opensource
>> and similar to jmeter but have this functionality. Ive spent three
> days
>> Days on this tryig different combinations and values and still no
> luck.
>>
>>
>>
>> -----Original Message-----
>> From: Ronan Klyne [mailto:[EMAIL PROTECTED]
>> Sent: 29 August 2008 11:35
>> To: JMeter Users List
>> Subject: Re: simultaneous http requests
>>
>> Jeremy Quinton wrote:
>>> Hi
>>>
>>>
>>>
>>> I have setup a basic test to apply some load to a server.
>>>
>>> I have one thread group with multiple http requests.
>>>
>>>
>>>
>>> Viewing the results of the test in a table it looks like jmeter
>>>
>>> does a http request waits for it to finish and then does the next
>>> request.
>>>
>>>
>>>
>>> What I would like to do is
>>>
>>>
>>>
>>> Send an http request
>>>
>>> Wait 5 seconds (Used a constant timer)
>>>
>>> Send another request
>>>
>>> Wait 5 seconds.(Used a constant timer)
>>>
>>
>> The option you're looking for is 'Ramp up time' on the Thread Group.
>>
>>> The problem is that the second request will only start after the
> first
>>> request has completed
>>>
>>> + the delay of 5 seconds.
>>>
>>>
>>>
>>> Is this possible? Also is there anyway of searching the archives.
>> There
>>> is no search option
>>>
>>> and so I have to manual go through each question to see if my
> question
>>> has been asked
>>>
>>>
>>>
>>> Thanks
>>>
>>> Jeremy Quinton
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Ronan Klyne
>> Business Collaborator Developer
>> Tel: +44 01189 028518
>> [EMAIL PROTECTED]
>> www.groupbc.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> --
> diem perdidi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
diem perdidi

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to