You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Pavel Gouchtchine <gu...@gmail.com> on 2006/04/11 15:44:12 UTC

How to get refName_matchNr?

Hi All.
Can you, please, clarify how to use or better, how to get refName_matchNr?
I have read Reg. Expression manual and, sorry, didn't understood it.
I have tried Match No to be negative, positive and 0.



My reg exp processor has the following params:

Reference Name: GROUPID
Reqular Exrpression: .value=\'(.*)\';
Tamplate: $1$
Match No: -1
Default value: ERROR_GROUPID

The response can bring me different number of ids. I am trying to get
group count via beanShell :

String groups_count = vars.get("GROUPID_matchNr");
print ( "Groups found "+goups_count);


return "Groups found "+goups_count;

It returns void all the time.

Please, help.

Thanks.
Pavel

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: How to get refName_matchNr?

Posted by sebb <se...@gmail.com>.
There's nothing relevant in the log file - there are warnings about
missing mail and JMS jars, but these are optional.

Can you send me the test plan?
Obliterate any sensitive data first.

S.
On 12/04/06, Pavel Gouchtchine <gu...@gmail.com> wrote:
> Hi Sebb.
> I am sorry for the mess.
>
> 1. I have tried to get matchNr using the 2-1.20060408 build (log file
> was re-sent to you dirrectly)
> 2. I couldn't get matchNr neither with stable 2.1.1 build nor with
> 2-1.20060408 build.
> 3. beanShell installed and working fine.
> 4. Here is the Reg. Exp. extractor
>
> Reference Name: GROUPID
> Reqular Exrpression: .value=\'(.*)\';
> Tamplate: $1$
> Match No: -1
> Default value: ERROR_GROUPID
>
> Any advices?
>
> Thank you.
> Pave
>
>
>
> On 4/12/06, sebb <se...@gmail.com> wrote:
> > On 12/04/06, Pavel Gouchtchine <gu...@gmail.com> wrote:
> > > Hi.
> > > I have bean shell jar in the lib directory and I have checked the
> > > jmeter.log file.
> > > The log file doesn't contain anythink that could help me - please see
> > > attached file.
> >
> > Did not arrive here - attachments are stripped. Please send it to me directly.
> >
> > > I have used 2-1.20060408 build to try - no problems found so far.
> >
> > Does that mean you can now get the variable matchNr OK?
> >
> > > Thank you.
> > > Pavel
> > >
> > > On 4/11/06, sebb <se...@gmail.com> wrote:
> > > > On 11/04/06, Pavel Gouchtchine <gu...@gmail.com> wrote:
> > > > > Hi All.
> > > > > Can you, please, clarify how to use or better, how to get refName_matchNr?
> > > > > I have read Reg. Expression manual and, sorry, didn't understood it.
> > > > > I have tried Match No to be negative, positive and 0.
> > > > >
> > > > >
> > > > >
> > > > > My reg exp processor has the following params:
> > > > >
> > > > > Reference Name: GROUPID
> > > > > Reqular Exrpression: .value=\'(.*)\';
> > > > > Tamplate: $1$
> > > > > Match No: -1
> > > > > Default value: ERROR_GROUPID
> > > > >
> > > > > The response can bring me different number of ids. I am trying to get
> > > > > group count via beanShell :
> > > > >
> > > > > String groups_count = vars.get("GROUPID_matchNr");
> > > > > print ( "Groups found "+goups_count);
> > > > >
> > > > >
> > > > > return "Groups found "+goups_count;
> > > > >
> > > > > It returns void all the time.
> > > >
> > > > Check jmeter.log
> > > >
> > > > Did you install the Beanshell jar in the lib directory?
> > > >
> > > > > Please, help.
> > > > >
> > > > > Thanks.
> > > > > Pavel
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > 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


Re: How to get refName_matchNr?

Posted by Pavel Gouchtchine <gu...@gmail.com>.
Hi Sebb.
I am sorry for the mess.

1. I have tried to get matchNr using the 2-1.20060408 build (log file
was re-sent to you dirrectly)
2. I couldn't get matchNr neither with stable 2.1.1 build nor with
2-1.20060408 build.
3. beanShell installed and working fine.
4. Here is the Reg. Exp. extractor

Reference Name: GROUPID
Reqular Exrpression: .value=\'(.*)\';
Tamplate: $1$
Match No: -1
Default value: ERROR_GROUPID

Any advices?

Thank you.
Pave



On 4/12/06, sebb <se...@gmail.com> wrote:
> On 12/04/06, Pavel Gouchtchine <gu...@gmail.com> wrote:
> > Hi.
> > I have bean shell jar in the lib directory and I have checked the
> > jmeter.log file.
> > The log file doesn't contain anythink that could help me - please see
> > attached file.
>
> Did not arrive here - attachments are stripped. Please send it to me directly.
>
> > I have used 2-1.20060408 build to try - no problems found so far.
>
> Does that mean you can now get the variable matchNr OK?
>
> > Thank you.
> > Pavel
> >
> > On 4/11/06, sebb <se...@gmail.com> wrote:
> > > On 11/04/06, Pavel Gouchtchine <gu...@gmail.com> wrote:
> > > > Hi All.
> > > > Can you, please, clarify how to use or better, how to get refName_matchNr?
> > > > I have read Reg. Expression manual and, sorry, didn't understood it.
> > > > I have tried Match No to be negative, positive and 0.
> > > >
> > > >
> > > >
> > > > My reg exp processor has the following params:
> > > >
> > > > Reference Name: GROUPID
> > > > Reqular Exrpression: .value=\'(.*)\';
> > > > Tamplate: $1$
> > > > Match No: -1
> > > > Default value: ERROR_GROUPID
> > > >
> > > > The response can bring me different number of ids. I am trying to get
> > > > group count via beanShell :
> > > >
> > > > String groups_count = vars.get("GROUPID_matchNr");
> > > > print ( "Groups found "+goups_count);
> > > >
> > > >
> > > > return "Groups found "+goups_count;
> > > >
> > > > It returns void all the time.
> > >
> > > Check jmeter.log
> > >
> > > Did you install the Beanshell jar in the lib directory?
> > >
> > > > Please, help.
> > > >
> > > > Thanks.
> > > > Pavel
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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


Re: How to get refName_matchNr?

Posted by sebb <se...@gmail.com>.
On 12/04/06, Pavel Gouchtchine <gu...@gmail.com> wrote:
> Hi.
> I have bean shell jar in the lib directory and I have checked the
> jmeter.log file.
> The log file doesn't contain anythink that could help me - please see
> attached file.

Did not arrive here - attachments are stripped. Please send it to me directly.

> I have used 2-1.20060408 build to try - no problems found so far.

Does that mean you can now get the variable matchNr OK?

> Thank you.
> Pavel
>
> On 4/11/06, sebb <se...@gmail.com> wrote:
> > On 11/04/06, Pavel Gouchtchine <gu...@gmail.com> wrote:
> > > Hi All.
> > > Can you, please, clarify how to use or better, how to get refName_matchNr?
> > > I have read Reg. Expression manual and, sorry, didn't understood it.
> > > I have tried Match No to be negative, positive and 0.
> > >
> > >
> > >
> > > My reg exp processor has the following params:
> > >
> > > Reference Name: GROUPID
> > > Reqular Exrpression: .value=\'(.*)\';
> > > Tamplate: $1$
> > > Match No: -1
> > > Default value: ERROR_GROUPID
> > >
> > > The response can bring me different number of ids. I am trying to get
> > > group count via beanShell :
> > >
> > > String groups_count = vars.get("GROUPID_matchNr");
> > > print ( "Groups found "+goups_count);
> > >
> > >
> > > return "Groups found "+goups_count;
> > >
> > > It returns void all the time.
> >
> > Check jmeter.log
> >
> > Did you install the Beanshell jar in the lib directory?
> >
> > > Please, help.
> > >
> > > Thanks.
> > > Pavel
> > >
> > > ---------------------------------------------------------------------
> > > 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


Re: How to get refName_matchNr?

Posted by Pavel Gouchtchine <gu...@gmail.com>.
Hi.
I have bean shell jar in the lib directory and I have checked the
jmeter.log file.
The log file doesn't contain anythink that could help me - please see
attached file.
I have used 2-1.20060408 build to try - no problems found so far.

Thank you.
Pavel

On 4/11/06, sebb <se...@gmail.com> wrote:
> On 11/04/06, Pavel Gouchtchine <gu...@gmail.com> wrote:
> > Hi All.
> > Can you, please, clarify how to use or better, how to get refName_matchNr?
> > I have read Reg. Expression manual and, sorry, didn't understood it.
> > I have tried Match No to be negative, positive and 0.
> >
> >
> >
> > My reg exp processor has the following params:
> >
> > Reference Name: GROUPID
> > Reqular Exrpression: .value=\'(.*)\';
> > Tamplate: $1$
> > Match No: -1
> > Default value: ERROR_GROUPID
> >
> > The response can bring me different number of ids. I am trying to get
> > group count via beanShell :
> >
> > String groups_count = vars.get("GROUPID_matchNr");
> > print ( "Groups found "+goups_count);
> >
> >
> > return "Groups found "+goups_count;
> >
> > It returns void all the time.
>
> Check jmeter.log
>
> Did you install the Beanshell jar in the lib directory?
>
> > Please, help.
> >
> > Thanks.
> > Pavel
> >
> > ---------------------------------------------------------------------
> > 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: How to get refName_matchNr?

Posted by sebb <se...@gmail.com>.
On 11/04/06, Pavel Gouchtchine <gu...@gmail.com> wrote:
> Hi All.
> Can you, please, clarify how to use or better, how to get refName_matchNr?
> I have read Reg. Expression manual and, sorry, didn't understood it.
> I have tried Match No to be negative, positive and 0.
>
>
>
> My reg exp processor has the following params:
>
> Reference Name: GROUPID
> Reqular Exrpression: .value=\'(.*)\';
> Tamplate: $1$
> Match No: -1
> Default value: ERROR_GROUPID
>
> The response can bring me different number of ids. I am trying to get
> group count via beanShell :
>
> String groups_count = vars.get("GROUPID_matchNr");
> print ( "Groups found "+goups_count);
>
>
> return "Groups found "+goups_count;
>
> It returns void all the time.

Check jmeter.log

Did you install the Beanshell jar in the lib directory?

> Please, help.
>
> Thanks.
> Pavel
>
> ---------------------------------------------------------------------
> 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