jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <martin.2.w...@bt.com>
Subject RE: &amp; in dynamic links
Date Wed, 14 Jun 2006 10:47:54 GMT
Right, so I found

> I'm sure there are cleaner ways to do this, but what I did was:
> - Create a beanshell init file (for a single point for global bean
shell
> functions)
> - Add a function to this file:
> fixAmps(s) {
>  return new String(s).replaceAll("&amp;","&");
> }

Which works fine from the beanshell console but not from Jmeter, I get
"command not found" on fixAmps, so I guess its not reading my .bshrc -
sigghh


Martin West
01252 778772


-----Original Message-----
From: The Earl [mailto:u1jek4m9c02@sneakemail.com] 
Sent: Tuesday, June 13, 2006 7:37 PM
To: jmeter-user@jakarta.apache.org
Subject: Re: &amp; in dynamic links

google searches it just fine. Try adding
site:http://mail-archives.apache.org/mod_mbox/jakarta-jmeter-user/
to your search.



On 6/13/06, martin.2.west-at-bt.com |Listserv| <...> wrote:
>
> PS its jmeter 2.1.1
>
>
> Martin West
> 01252 778772
>
>
> -----Original Message-----
> From: martin.2.west@bt.com [mailto:martin.2.west@bt.com]
> Sent: Tuesday, June 13, 2006 4:59 PM
> To: jmeter-user@jakarta.apache.org
> Subject: &amp; in dynamic links
>
>
>
> I have the following testplan for a site which has three layers of 
> pages, the objective of the plan is to check all the main links on the

> site.
>
> TestPlan
> .. Thread group
> .... Get Home Page
> ...... regexp - extracts layer references .... For each ref1 ...... 
> Get each layer1 ........ Regexp extracts next layer references ...... 
> For each ref2 ........  Get each layer2
>
> This works fine apart from the problem that the reference values 
> contain &amp;  for instance the reference ...
>
> http://www.businesslink.gov.uk/bdotg/action/layer?r.l1=1073858805&r.s=
> tl
> &topicId=1073859137
>
> In the extracted reference the & are changed to &amp;
>
> Suggestions welcomed.
>
> Oh, Ive tried googling the problem but &amp; gets a lot of random hits

> :-(
>
> Why doesn't
> http://mail-archives.apache.org/mod_mbox/jakarta-jmeter-user/ have a 
> search option?
>
> Martin West
> 01252 778772
>
>
>
> ---------------------------------------------------------------------
> 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


---------------------------------------------------------------------
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