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 Thu, 15 Jun 2006 07:48:19 GMT
Yeah, spotted them, Have it working now on 2.2 with nested
regexp/foreach's down to four levels.

Thanks 


Martin West
01252 778772


-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Wednesday, June 14, 2006 12:12 PM
To: JMeter Users List
Subject: Re: &amp; in dynamic links

There are various

beanshell.<name>.init

properties that can be used to provide startup files to the different
BeanShell test elements. See jmeter.properties for details.

S.
On 14/06/06, martin.2.west@bt.com <martin.2.west@bt.com> wrote:
> Ah, just found ...
>
> If the property "beanshell.sampler.init" is defined, it is passed to 
> the Interpreter as the name of a sourced file. This can be used to 
> define common methods and variables. There is a sample init file in 
> the bin
> directory: BeanShellSampler.bshrc.
>
>
>
> Martin West
> 01252 778772
>
>
> -----Original Message-----
> From: martin.2.west@bt.com [mailto:martin.2.west@bt.com]
> Sent: Wednesday, June 14, 2006 11:48 AM
> To: jmeter-user@jakarta.apache.org
> Subject: RE: &amp; in dynamic links
>
> 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
>
>
> ---------------------------------------------------------------------
> 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