On Tue, Nov 3, 2009 at 4:10 PM, Suresh Gattu <
saisure...@gmail.com> wrote:
>
> Http requests sent via lr ,need a response which either stops or ends
> with a time out or error before sending the next http request. But
> when Ajax is involved the request sent would get back periodic updates
> sent back continously without ending the response at a point.
>
> In this type of scenario what would be appropriate approach in scripting
>
Fun, a challenge ;-)
If I understand you correctly then there is a single XMLHttpRequest in
the application you're testing which simply keeps the connection open
indefinitely. The normal web protocol does not deal with this
possibility, it just assumes the response will finish at some stage.
I believe the Web Services protocol does have some support for this
mode of operation but since I haven't used yet I don't know how well
it works. It seems that you can tell the transport layer to process
XML requests asynchronously and create an event handler to deal with
the responses. Presumably this is what you are looking for.
I strongly recommend you look into the documentation regarding this
protocol though - like I said, I have no experience with this.
Regards,
Floris
---
'What does it mean to say that one is 48% slower? That's like saying
that a squirrel is 48% juicier than an orange - maybe it's true, but
anybody who puts the two in a blender to compare them is kind of
sick.'
--- Linus Torvalds