"The Debug Sampler does not display any values, so I don't see how
that's possible."

>> What I meant was I could see the value of the variable in the View 
Results Tree listener corresponding to the entry of the Debug Sampler. But 
the View Results Tree doesn't have any entry for the post request that 
would fire that javascript function ....

Regards,

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

LabWare LIMS Solutions - Results Count



sebb <[EMAIL PROTECTED]> 
03/13/2008 12:08 AM
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 Sebb,
>                      Yes I am sure that the java script is executed
>  because I see the value returned by the variable in the Debug Sampler 
now.

The Debug Sampler does not display any values, so I don't see how
that's possible.

>  The request in which it is supposed to get executed is a POST request .
>  One of the form parameter is supposed to contain the value returned by
>  that Java script function . That request is the fourth request in the
>  sequence of requests that I captured through HTTP Proxy server. 
Although I
>  am seeing the value of the variable in the Debug sampler , I am never
>  seeing that particular request in the View Results Tree listener . Any

I don't understand that because the way to see the value of the
variables logged by the Debug Sampler is to use the View Results Tree
listener...

>  idea what is going wrong here ?

Difficult to say from the information you have provided. All I can
think of is that the test plan must be set up in such a way that the
variable is known to the Debug Sampler but not the POST Sampler.

Try putting the Debug Sampler immediately before and after the POST
Sampler and double-check the variable spelling etc.

> Any other way through which I can safely
>  conclude that request was executed successfully ?
>
> Regards,
>
>  Subhrajyoti
>  Mobile: +919830079545
>  Mail: [EMAIL PROTECTED]
>  Web: www.labware.com
>
>  LabWare LIMS Solutions - Results Count
>
>
>
>  sebb <[EMAIL PROTECTED]>
>
> 03/12/2008 09:54 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 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 = 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
>
>  i.e. random choice
>
>  >  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.
>
>  Are you sure the function was executed?
>
>  I suggest you try with a simple function call such as
>
>  ${__javaScript(return "abcd";,VARIABLE}
>
>  and check you can see that.
>
>  >  ${__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 ?
>  >
>
>  No idea;I don't know Javascript well enough.
>  Check the jmeter log for any errors.
>
>  >  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]
>  >
>  >
>  >
>
>  ---------------------------------------------------------------------
>  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