Polling request

33 views
Skip to first unread message

Anaz Mohamed

unread,
Mar 30, 2011, 9:36:15 AM3/30/11
to LR-Loa...@googlegroups.com
Hi Techies,  
 
How to handle a polling request ? as below
 
Polling request : In my application there is particular scenario where separate request has been sent by client apart from the normal request we make through the browser request
This request is being sent on every 30 sec interval so thus by capturing system a function was created to sent same polling request on every 30 sec so the issue was resolved for the time being
 
But there was another twist this is a chat applications if any other activites happens even before the 30 sec intervals the server requires new polling request this can be detected 200 ok
 
So now coming to the point
 
1.Is there any way that I could run mutiple thread a) for normal user request b) for polling request parallel (I know I am asking for too much)
2.Simple stuff but I want know how to capture the Http 200 OK  response send by server (Hey this request will be sent by server if it detects any activity in the room even by other users) so this is required when we run load test because when other Vuser logged in this(200 ok) will be sent by server to be me (hmm thats how it is designed)
 
In Neoload I can acheive the first point so no worry about the second point in that case (Neoload allows me run a seprate thread for polling request) how do I acheive it in LR
Share your thoughts
 
Thanks in advance geeks


--
Regards,
Anaz

V.M.Guruprasath

unread,
Mar 30, 2011, 11:06:16 AM3/30/11
to lr-loa...@googlegroups.com
Hi Anaz,

On how to verify the HTTP 200 OK,

You can try using the web_get_int_property function with HTTP_INFO_RETURN_CODE as the argument value:

eg: int i;

web_url(......);

    i = web_get_int_property(HTTP_INFO_RETURN_CODE);

Now "i" should have the status code returned for that request.

Hope that helps.

Regards,

V.M.Guruprasath



--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

Ruslan Kholyavkin

unread,
Mar 30, 2011, 2:32:12 PM3/30/11
to lr-loa...@googlegroups.com, V.M.Guruprasath

Regarding multiple request in same time use  block

 

web_concurrent_start(NULL);

 

 yout requests

 

 

web_concurrent_end(NULL);

 

see help for the web_concurrent - function for clear understanding this blocks stands for

 

Thanks,

Ruslan

Anaz Mohamed

unread,
Mar 31, 2011, 3:25:01 AM3/31/11
to lr-loa...@googlegroups.com
Guru & Ruslan
 
Thanks for your response I guess that will help me so
Will update you on this !
 
 
James
 
Are you on your vacation :) ?
 
Just want to know your opinion on this if it is other than "42" :) 
 
Regards
Anaz
Regards,
Anaz
Reply all
Reply to author
Forward
0 new messages