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:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 12:12 PM To: JMeter Users List Subject: Re: & 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, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 14, 2006 11:48 AM > To: [email protected] > Subject: RE: & 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("&","&"); > > } > > 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:[EMAIL PROTECTED] > Sent: Tuesday, June 13, 2006 7:37 PM > To: [email protected] > Subject: Re: & 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, June 13, 2006 4:59 PM > > To: [email protected] > > Subject: & 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 & 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 & > > > > Suggestions welcomed. > > > > Oh, Ive tried googling the problem but & 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -------------------------------------------------------------------- > > - To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

