Hi Sebb,
                    Thanks for your quick response . I tried using your 
idea of  using a Debug Sampler in conjunction with
the View Results Tree Listener. I renamed the variable to "pr" and this is 
what I got in the Response Data tab of the Debug Sampler  :

JMeterVariables:
pr_g=2
pr_g1=5
START.MS=1205327286609
START.YMD=20080312
pr_g2=)
JMeterThread.last_sample_ok=true
START.HMS=183806
pr=5
pr_g0=M,5)

I am having difficulty understanding the variables 
pr_g,pr_g1,pr_g2,pr_g0=M,5) ....What is the actual value of pr here ?All 
that I am interested is in the value of that variable "pr" which gets 
substituted later on in a request parameter.

Regular expression extractor looked something like this :

Reference Name:pr
Regular Expression:M,(\w)(\D)
Template: $1$
Match No:0
Default Value:

Also I have to insert into a request parameter a value returned by 
__javaScript function which should be the value of the variable DATES234 
according to the documentation. I wanted to check the value of that also 
...But I never saw any entry in the Debug Sampler for that varaiable.

${__javaScript(var input="manager";var M;var C; var size = 
input.valueOf().length; var  codeArray = "" ; for (var i = 0; i 
<size.valueOf(); i++){M = input.valueOf().charCodeAt (i);var x=1;for(var k 
= 1; k <= ${pr}; k++){x = x * M;};C=x % ${divider};codeArray =   codeArray 
+ "+" + C};$DATES234 = codeArray.valueOf();,DATES234)} ..

What is wrong here ?

Regards,

Subhrajyoti 
Mobile: +919830079545
Mail: [EMAIL PROTECTED]
Web: www.labware.com

LabWare LIMS Solutions - Results Count



sebb <[EMAIL PROTECTED]> 
03/12/2008 05:28 PM
Please respond to
"JMeter Users List" <[email protected]>


To
"JMeter Users List" <[email protected]>
cc

Subject
Re: How to use log function in Jmeter






On 12/03/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
>       I am trying to do a very simple thing ...I have a Post processor
>  regular expression extractor that extract a String value from a 
response
>  . Then in a subsequent request I just want to replace the value . 
Before
>  this I want to check that I have the correct value . So I amtrying to 
use
>  the __log function . The reference name was "power" . So I am trying to
>  use something like __log(${power})...But it isn't working. I am 
expecting
>  to see some value in the console ...Any ideas?
>

__log defaults to logging in the jmeter log file.

You might find it easier to use the Debug Sampler in conjunction with
the View Results Tree Listener.

>  Regards,
>
>  Subhrajyoti
>  Mobile: +919830079545
>  Mail: [EMAIL PROTECTED]
>  Web: www.labware.com
>
>  LabWare LIMS Solutions - Results Count

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


Reply via email to