To go back to the original problem - are you sure that the original
references use & and not & ?

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?

==

In fact, I've just done a test with a page containing:

<a href="http://localhost:8080/test.html?abc=def&xyz=uvw";>?abc=def&xyz=uvw</a>
<br>
<a 
href="http://localhost:8080/test.html?abc=def&amp;xyz=uvw";>?abc=def&amp;xyz=uvw</a>

In both cases the display looks like:

?abc=def&xyz=uvw

and the &amp; is shown as & in the status bar as well in all the
browsers I tried: MSIE 7, FireFox, Opera, Off By One.

The RE correctly extracts the actual source.

S

On 15/06/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
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: &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, [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: &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:[EMAIL PROTECTED]
> Sent: Tuesday, June 13, 2006 7:37 PM
> To: [email protected]
> 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 13, 2006 4:59 PM
> > To: [email protected]
> > 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: [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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to