You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Venkat Dosapati <ve...@translogicsys.com> on 2002/10/23 17:12:47 UTC

problem with _regexFunction

Hello Mike,

[I am using nightly build on October 7th 2002.]

I am using regexFunction in my TestPlan. My testplan has the following
requests in a
LoopController.

1. HTTP request:
    which gives the data on which my function is executed.
2.HTTP request:
    Where regexFunction is executed on previous request's response data.
3.HTTP request:
   Where the functionName is used to use the above value.

Situation 1:
LoopController has 1 iteration.
In the iteration, first request's response doesnt have the required data for
which
the function is looking for and the function name is replaced with default
value. Here it
is working correct.


Situation 2:
LoopController has 2 iterations.
In first iteration, first request's response has the required data for which
the function is
looking.
In the second iteration, first request's response doesnt have the required
data for which
function is looking. "But the function value is not replaced with default
value", it is taking
previous value which was found in the first iteration.


Why function's value in the "situation 2" is not updated with default value
when no-match
is found in the second iteration. Is it a bug. Or I'm missing anything.

Please help me out.

--tnx
Venkat



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: problem with _regexFunction

Posted by Venkat Dosapati <ve...@translogicsys.com>.
then, who is the person looking after these code changes?
Shall I post these in dev group?

--
Venkat
----- Original Message -----
From: "Michal Kostrzewa" <M....@pentacomp.com.pl>
To: "JMeter Users List" <jm...@jakarta.apache.org>
Sent: Tuesday, November 19, 2002 1:02 AM
Subject: Re: problem with _regexFunction


> Dnia czw 14. listopad 2002 11:05, Venkat Dosapati napisał:
> > Mike,
> >
> > I think I fixed this problem. Can you please look into the attached
file.
> > You can see my
> > code from line number 97 - 100. Can you update RegexFunction.java in
JMeter
> > source files if my fix is correct.
>
> I don't know if you finally got response from Mike Stover, but It's
possible
> he won't respond quickly. I talked to him recently and he said he has some
> important, personal matters which don't allow him to work on jMeter.
>
> best regards
> Michal Kostrzewa
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: problem with _regexFunction

Posted by Michal Kostrzewa <M....@pentacomp.com.pl>.
Dnia czw 14. listopad 2002 11:05, Venkat Dosapati napisał:
> Mike,
>
> I think I fixed this problem. Can you please look into the attached file.
> You can see my
> code from line number 97 - 100. Can you update RegexFunction.java in JMeter
> source files if my fix is correct.

I don't know if you finally got response from Mike Stover, but It's possible 
he won't respond quickly. I talked to him recently and he said he has some 
important, personal matters which don't allow him to work on jMeter.

best regards
Michal Kostrzewa


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: problem with _regexFunction

Posted by Venkat Dosapati <ve...@translogicsys.com>.
sorry, I forgot attach the file in my previous mail.

----- Original Message -----
From: "Venkat Dosapati" <ve...@translogicsys.com>
To: "JMeter Users List" <jm...@jakarta.apache.org>
Sent: Thursday, November 14, 2002 3:35 PM
Subject: Re: problem with _regexFunction


> Mike,
>
> I think I fixed this problem. Can you please look into the attached file.
> You can see my
> code from line number 97 - 100. Can you update RegexFunction.java in
JMeter
> source files if my fix is correct.
>
> The problem was function value is not getting updated with default value
in
> JMeterVariables when no match is found in the previous response.
>
> --tnx
> Venkat
>
>
> ----- Original Message -----
> From: "Venkat Dosapati" <ve...@translogicsys.com>
> To: "JMeter Users List" <jm...@jakarta.apache.org>
> Sent: Wednesday, October 23, 2002 8:42 PM
> Subject: problem with _regexFunction
>
>
> > Hello Mike,
> >
> > [I am using nightly build on October 7th 2002.]
> >
> > I am using regexFunction in my TestPlan. My testplan has the following
> > requests in a
> > LoopController.
> >
> > 1. HTTP request:
> >     which gives the data on which my function is executed.
> > 2.HTTP request:
> >     Where regexFunction is executed on previous request's response data.
> > 3.HTTP request:
> >    Where the functionName is used to use the above value.
> >
> > Situation 1:
> > LoopController has 1 iteration.
> > In the iteration, first request's response doesnt have the required data
> for
> > which
> > the function is looking for and the function name is replaced with
default
> > value. Here it
> > is working correct.
> >
> >
> > Situation 2:
> > LoopController has 2 iterations.
> > In first iteration, first request's response has the required data for
> which
> > the function is
> > looking.
> > In the second iteration, first request's response doesnt have the
required
> > data for which
> > function is looking. "But the function value is not replaced with
default
> > value", it is taking
> > previous value which was found in the first iteration.
> >
> >
> > Why function's value in the "situation 2" is not updated with default
> value
> > when no-match
> > is found in the second iteration. Is it a bug. Or I'm missing anything.
> >
> > Please help me out.
> >
> > --tnx
> > Venkat
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>

Re: problem with _regexFunction

Posted by Venkat Dosapati <ve...@translogicsys.com>.
Mike,

I think I fixed this problem. Can you please look into the attached file.
You can see my
code from line number 97 - 100. Can you update RegexFunction.java in JMeter
source files if my fix is correct.

The problem was function value is not getting updated with default value in
JMeterVariables when no match is found in the previous response.

--tnx
Venkat


----- Original Message -----
From: "Venkat Dosapati" <ve...@translogicsys.com>
To: "JMeter Users List" <jm...@jakarta.apache.org>
Sent: Wednesday, October 23, 2002 8:42 PM
Subject: problem with _regexFunction


> Hello Mike,
>
> [I am using nightly build on October 7th 2002.]
>
> I am using regexFunction in my TestPlan. My testplan has the following
> requests in a
> LoopController.
>
> 1. HTTP request:
>     which gives the data on which my function is executed.
> 2.HTTP request:
>     Where regexFunction is executed on previous request's response data.
> 3.HTTP request:
>    Where the functionName is used to use the above value.
>
> Situation 1:
> LoopController has 1 iteration.
> In the iteration, first request's response doesnt have the required data
for
> which
> the function is looking for and the function name is replaced with default
> value. Here it
> is working correct.
>
>
> Situation 2:
> LoopController has 2 iterations.
> In first iteration, first request's response has the required data for
which
> the function is
> looking.
> In the second iteration, first request's response doesnt have the required
> data for which
> function is looking. "But the function value is not replaced with default
> value", it is taking
> previous value which was found in the first iteration.
>
>
> Why function's value in the "situation 2" is not updated with default
value
> when no-match
> is found in the second iteration. Is it a bug. Or I'm missing anything.
>
> Please help me out.
>
> --tnx
> Venkat
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>