jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bennett McElwee" <Bennett.McEl...@telecom.co.nz>
Subject RE: &amp; in dynamic links
Date Sun, 18 Jun 2006 21:18:16 GMT
Well, anything appearing in an HTML file should be decoded before being
used. This:

   <a href="http://www.example.com/go?s=1&amp;t=2">Go</a>

Refers to the URL http://www.example.com/go?s=1&t=2

Whereas this:

   <a href="http://www.example.com/go?s=1&t=2">Go</a>

is not even valid HTML.

Sadly, of course, plenty of web apps generate invalid HTML. Maybe JMeter
needs to cater for these. But it should deal with the valid cases by
default.

Cheerio,
Bennett.
--
Bennett McElwee
MOS Contractor
Mobile 021 456 200

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Friday, 16 June 2006 11:39 pm
To: JMeter Users List
Subject: Re: &amp; in dynamic links

As I thought, the &amp; appears in the HTML page source:

<a
href="http://www.businesslink.gov.uk/bdotg/action/layer?r.s=tl&amp;topic
Id=1073861197"
title="Choose the right systems and suppliers"><abbr
title="Information Technology">IT</abbr> &amp; e-commerce</a>

However the link displays in the status bar (and link box when selected)
as:

http://www.businesslink.gov.uk/bdotg/action/layer?r.s=tl&topicId=1073861
197

Using the link:

http://www.businesslink.gov.uk/bdotg/action/layer?r.s=tl&amp;topicId=107
3861197

does not work; it goes back to the home page.

Maybe there is a requirement for JMeter to provide some form of
built-in URL decoding - the difficulty is knowing when to apply it.
Not everything needs decoding...

S
On 16/06/06, martin.2.west@bt.com <martin.2.west@bt.com> wrote:
>
> The RE is layer\?r\.XX=(.+?)" where X is tl, l1, l2, l3
>
> And HTTP Request has
>
> /bdotg/action/layer?r.XX=${__BeanShell(fixAmps("${foreachVarXX}"))}
>
> The website is http://www.businesslink.gov.uk
>
> Martin West
> 01252 778772
>
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Thursday, June 15, 2006 11:24 PM
> To: JMeter Users List
> Subject: Re: &amp; in dynamic links
>
> To go back to the original problem - are you sure that the original
> references use & and not &amp; ?
>
> The Regex extractor definitely won't encode &, and I don't think the
> sampler does either.
>
> What does the Tree View Listener show for the result?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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



This communication, including any attachments, is confidential. If you are not the intended
recipient, you should not read it - please contact me immediately, destroy it, and do not
copy or use any part of this communication or disclose anything about it. Thank you. Please
note that this communication does not designate an information system for the purposes of
the Electronic Transactions Act 2002.


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


Mime
View raw message