You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Willingham Geoff <Ge...@cfh.nhs.uk> on 2006/06/20 12:07:42 UTC

How to access a response other than the most recent

Greetings
 
I'm currently using the Http Link Parser to fill forms as part of my
JMeter script.  However, im running into a problem caused by the design
of the site being tested.  In several locations, we have a link that
performs two actions.  
a) transitions to the next page, and
b) uses javascript to open a new window, and download a file.
 
Whilst both actions have been modelled in my script, the call to fetch
the file means that the following request cannot use a Http Link Parser,
because the previous response (the downloaded file) does not contain any
form or link data.
 
I am hoping to modify the Http Link Parser to allow the user to specify
the name of a HttpRequest object, so that the Link Parser can then use
the response to that object. 
 
However, having looked at the code, I am uncertain as to how I can
access the tree of test elements, how to find the specified Http
Request, and how to access the response to that request.
 
Can anyone point me in the right direction ?
 
cheers
 
Geoff
p.s. Cheers for the help on finding the classes for the Link Parser last
week :)

This e-mail is confidential and privileged. If you are not the intended recipient please accept our apologies; please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents: to do so is strictly prohibited and may be unlawful. Please inform us that this message has gone astray before deleting it. Thank you for your co-operation.



Re: How to access a response other than the most recent

Posted by sebb <se...@gmail.com>.
I'm not sure you can do that - the previous sample is saved locally,
and is not in any tree. Although one could additionally save the next
last sample, this would not be a generic solution.

Can you download the file first?

The Link Parser is a bit odd, as it is a Pre-Processor and a
Post-Processor in one.
Perhaps you can create a version that splits it in two - one part
extracts the links, the other applies them.

S.
On 20/06/06, Willingham Geoff <Ge...@cfh.nhs.uk> wrote:
> Greetings
>
> I'm currently using the Http Link Parser to fill forms as part of my
> JMeter script.  However, im running into a problem caused by the design
> of the site being tested.  In several locations, we have a link that
> performs two actions.
> a) transitions to the next page, and
> b) uses javascript to open a new window, and download a file.
>
> Whilst both actions have been modelled in my script, the call to fetch
> the file means that the following request cannot use a Http Link Parser,
> because the previous response (the downloaded file) does not contain any
> form or link data.
>
> I am hoping to modify the Http Link Parser to allow the user to specify
> the name of a HttpRequest object, so that the Link Parser can then use
> the response to that object.
>
> However, having looked at the code, I am uncertain as to how I can
> access the tree of test elements, how to find the specified Http
> Request, and how to access the response to that request.
>
> Can anyone point me in the right direction ?
>
> cheers
>
> Geoff
> p.s. Cheers for the help on finding the classes for the Link Parser last
> week :)
>
> This e-mail is confidential and privileged. If you are not the intended recipient please accept our apologies; please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents: to do so is strictly prohibited and may be unlawful. Please inform us that this message has gone astray before deleting it. Thank you for your co-operation.
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org