You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Vladimir Tsygankov <Vl...@contera.sp.ru> on 2005/03/16 14:56:12 UTC
Problem with using of RegExp variables
Our test script uses Regular Expression Extractor with the name
"refName1".
The main task of the script is to check correctness of all matches.
It is possible to use the variables like ${refName1_g1}, ${refName1_g2},
${refName1_g3} etc. but it is not
possible to use the variables like
${refName1_g${__counter(false,refC)}}. They are not calculated!
So it is possible to run scripts like:
...
Regexp Extractor <refName1>
If <expression with 1-th match>
If <expression with 2-th match>
...
If <expression with i-th match>
...
but impossible to use simple and very important constructions like:
...
Regexp Extractor <refName1>
Loop <for all matches>
If <expression with i-th match>
...
Maybe anybody knows how to resolve the problem?
Thanks in advance,
Vladimir
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
JMeter reporting capabilities
Posted by Guillaume Lahitette <GL...@abingdon.oilfield.slb.com>.
Folks,
My JMeter script is almost ready and having great success with everyone I
show it to. Congratulations to everyone, JMeter is a terrific product!
The next step for me is to produce something useful in the real world: a
report. The XSL stylesheets in the distro are definitely a good start. I
looked around (manual, Wiki,....) but didn't find much else. Did I miss
something? Could you share your ideas, stylesheets (CSV export anyone?),
speadsheets with me so I don't start from scratch?
Thanks in advance for your help,
Guillaume
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Problem with using of RegExp variables
Posted by sebb <se...@gmail.com>.
There will be support for this in the 2.0.3 release, due out very soon.
ForEach now supports variables in the input and output variable
fields, and the "_" separator is optional, so one can use refName_g or
refName_${C}_g in a loop.
Hope that works OK ...
The code is in the nightly build 2.0.20050317 if you are impatient to try it.
S.
On Wed, 16 Mar 2005 09:27:11 -0500, Michael Stover <ms...@apache.org> wrote:
> I would say it'd be ideal for the ForEach Controller to be upgraded to
> know how to do exactly that - loop through a series of matches from a
> regex extractor.
>
> Until that's done though, I think you're out of luck.
>
> -Mike
>
> On Wed, 2005-03-16 at 08:56, Vladimir Tsygankov wrote:
> > Our test script uses Regular Expression Extractor with the name
> > "refName1".
> > The main task of the script is to check correctness of all matches.
> >
> > It is possible to use the variables like ${refName1_g1}, ${refName1_g2},
> > ${refName1_g3} etc. but it is not
> > possible to use the variables like
> > ${refName1_g${__counter(false,refC)}}. They are not calculated!
> > So it is possible to run scripts like:
> > ...
> > Regexp Extractor <refName1>
> > If <expression with 1-th match>
> > If <expression with 2-th match>
> > ...
> > If <expression with i-th match>
> > ...
> >
> > but impossible to use simple and very important constructions like:
> > ...
> > Regexp Extractor <refName1>
> > Loop <for all matches>
> > If <expression with i-th match>
> > ...
> > Maybe anybody knows how to resolve the problem?
> >
> > Thanks in advance,
> > Vladimir
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> --
> Michael Stover <ms...@apache.org>
> Apache Software Foundation
>
>
> ---------------------------------------------------------------------
> 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
Re: Problem with using of RegExp variables
Posted by Michael Stover <ms...@apache.org>.
I would say it'd be ideal for the ForEach Controller to be upgraded to
know how to do exactly that - loop through a series of matches from a
regex extractor.
Until that's done though, I think you're out of luck.
-Mike
On Wed, 2005-03-16 at 08:56, Vladimir Tsygankov wrote:
> Our test script uses Regular Expression Extractor with the name
> "refName1".
> The main task of the script is to check correctness of all matches.
>
> It is possible to use the variables like ${refName1_g1}, ${refName1_g2},
> ${refName1_g3} etc. but it is not
> possible to use the variables like
> ${refName1_g${__counter(false,refC)}}. They are not calculated!
> So it is possible to run scripts like:
> ...
> Regexp Extractor <refName1>
> If <expression with 1-th match>
> If <expression with 2-th match>
> ...
> If <expression with i-th match>
> ...
>
> but impossible to use simple and very important constructions like:
> ...
> Regexp Extractor <refName1>
> Loop <for all matches>
> If <expression with i-th match>
> ...
> Maybe anybody knows how to resolve the problem?
>
> Thanks in advance,
> Vladimir
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
--
Michael Stover <ms...@apache.org>
Apache Software Foundation
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org