Re: Transaction Controller issue

2011-06-01 Thread Tim Koopmans
I can confirm same behaviour in 
java -jar ApacheJMeter.jar -v
Copyright (c) 1998-2010 The Apache Software Foundation
Version 2.4 r961953

It would appear the parent sample is including RT from the constant
throughput timer used in the thread group based on 5 samples/min, as
demonstrated by total RT of 12120 ms:


  


This is despite the child sample only being 516 ms.

The Transaction Controller has the following config:

true
false

--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Transaction-Controller-issue-tp4426293p4446904.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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




Re: cookie manager not working

2011-06-01 Thread sebb
On 2 June 2011 02:06, Daniel Watrous  wrote:
> I've discovered that the cookies sent back by wordpress have an
> expires value one year before the date of the request. Browsers seem
> to store this as a session cookie, but I'm not sure why. Is there some
> way to tell the cookie manager to deal with these cookies that have an
> expires value before right now?

No, not without modifying JMeter code.
However, by judicious use of the Regex Extractor you should be able to
extract the cookie from the header and then add it using a Header
Manager.

> I've put in a post on the wordpress forum to figure out why they do it that 
> way.
>
> I also can't find a log file. How can I troubleshoot the reason a log
> file won't write?

Check if the launch directory is writable. Are you sure there is no
jmeter.log file?

> Daniel
>
> On Fri, May 27, 2011 at 7:29 AM, sebb  wrote:
>> On 27 May 2011 14:17, Daniel Watrous  wrote:
>>> I had actually tried that before mailing to the list. I just tried it
>>> again with no change to whether cookies are sent or not.
>>
>> In that case, you'll need to enable debug logging  for the Cookie
>> Manager: select it and use the Menu item Help/Enable Debug
>>
>> Output will be in the log file.
>>
>>> I can't find the log file, but here's my java version:
>>
>> Unless you override the location in the jmeter.properties file, the
>> log file will be in the directory where you started JMeter from, by
>> default the bin directory, and will be called jmeter.log.
>>
>>> C:\Program Files (x86)\Console2>java -version
>>> java version "1.6.0_20"
>>> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
>>> Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
>>>
>>> C:\Program Files (x86)\Console2>
>>>
>>> Windows 7 x64
>>>
>>> thanks,
>>>
>>> Daniel
>>>
>>>
>>>
>>> On Fri, May 27, 2011 at 3:03 AM, sebb  wrote:
 On 27 May 2011 08:48, sebb  wrote:
> On 27 May 2011 06:47, Daniel Watrous  wrote:
>> Hello,
>>
>> I've been trying to setup a jmeter program to test a wordpress plugin.
>> However, I can't get the login to work. It appears to be sending the
>> cookies back correctly when the login is sent, but they don't get
>> picked up by the cookie manager.
>>
>> I've been searching for a while and looked at dozens of examples.
>> Maybe you can spot what I've done wrong from these screenshots:
>>
>> http://screencast.com/t/EW1zAgvlK
>> http://screencast.com/t/2i8dTyBh
>> http://screencast.com/t/fd5dGPvCb
>
> The Cookie Manager is set to require RFC2109 cookies; these have a
> specific format that is not always followed by servers (or browsers).
>
> The default is supposed to be "compatibility" mode, try using that.
>
> What version of Java are you using? This will be shown near the start
> of the jmeter.log file, e.g.
>
> java.version=1.5.0_22
> java.vm.name=Java HotSpot(TM) Client VM
>
> I've just noticed that the default when adding a new Cookie Manager is
> set correctly to "compatibility" (first option) when using that

 Actually it's the last option when using Java 1.5, first when using
 1.6 - which is where the problem lies ...

> version, however when using
>
> java.version=1.6.0_25
> java.vm.name=Java HotSpot(TM) Client VM
>
> which is the current Java version it is set to "rfc109" (the last option).
>
> This is odd, since the code specifically tries to set "compatibility" 
> mode.
> Looks like there may be a Java bug (or at least a change in behaviour).

 It's a change in Java behaviour - the order of cookie policies is
 different, because of internal changes to the libraries.

 JMeter incorrectly relies on the order of the entries. Oops.

 However, there's an easy work-round - just change the policy to 
 compatibility.

>
>> Thanks in advance.
>>
>> Daniel
>>
>> -
>> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>>
>>
>

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


>>>
>>> -
>>> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
>>> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>>
>>
>
> -
> To unsub

Re: cookie manager not working

2011-06-01 Thread Daniel Watrous
I've discovered that the cookies sent back by wordpress have an
expires value one year before the date of the request. Browsers seem
to store this as a session cookie, but I'm not sure why. Is there some
way to tell the cookie manager to deal with these cookies that have an
expires value before right now?

I've put in a post on the wordpress forum to figure out why they do it that way.

I also can't find a log file. How can I troubleshoot the reason a log
file won't write?

Daniel

On Fri, May 27, 2011 at 7:29 AM, sebb  wrote:
> On 27 May 2011 14:17, Daniel Watrous  wrote:
>> I had actually tried that before mailing to the list. I just tried it
>> again with no change to whether cookies are sent or not.
>
> In that case, you'll need to enable debug logging  for the Cookie
> Manager: select it and use the Menu item Help/Enable Debug
>
> Output will be in the log file.
>
>> I can't find the log file, but here's my java version:
>
> Unless you override the location in the jmeter.properties file, the
> log file will be in the directory where you started JMeter from, by
> default the bin directory, and will be called jmeter.log.
>
>> C:\Program Files (x86)\Console2>java -version
>> java version "1.6.0_20"
>> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
>> Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
>>
>> C:\Program Files (x86)\Console2>
>>
>> Windows 7 x64
>>
>> thanks,
>>
>> Daniel
>>
>>
>>
>> On Fri, May 27, 2011 at 3:03 AM, sebb  wrote:
>>> On 27 May 2011 08:48, sebb  wrote:
 On 27 May 2011 06:47, Daniel Watrous  wrote:
> Hello,
>
> I've been trying to setup a jmeter program to test a wordpress plugin.
> However, I can't get the login to work. It appears to be sending the
> cookies back correctly when the login is sent, but they don't get
> picked up by the cookie manager.
>
> I've been searching for a while and looked at dozens of examples.
> Maybe you can spot what I've done wrong from these screenshots:
>
> http://screencast.com/t/EW1zAgvlK
> http://screencast.com/t/2i8dTyBh
> http://screencast.com/t/fd5dGPvCb

 The Cookie Manager is set to require RFC2109 cookies; these have a
 specific format that is not always followed by servers (or browsers).

 The default is supposed to be "compatibility" mode, try using that.

 What version of Java are you using? This will be shown near the start
 of the jmeter.log file, e.g.

 java.version=1.5.0_22
 java.vm.name=Java HotSpot(TM) Client VM

 I've just noticed that the default when adding a new Cookie Manager is
 set correctly to "compatibility" (first option) when using that
>>>
>>> Actually it's the last option when using Java 1.5, first when using
>>> 1.6 - which is where the problem lies ...
>>>
 version, however when using

 java.version=1.6.0_25
 java.vm.name=Java HotSpot(TM) Client VM

 which is the current Java version it is set to "rfc109" (the last option).

 This is odd, since the code specifically tries to set "compatibility" mode.
 Looks like there may be a Java bug (or at least a change in behaviour).
>>>
>>> It's a change in Java behaviour - the order of cookie policies is
>>> different, because of internal changes to the libraries.
>>>
>>> JMeter incorrectly relies on the order of the entries. Oops.
>>>
>>> However, there's an easy work-round - just change the policy to 
>>> compatibility.
>>>

> Thanks in advance.
>
> Daniel
>
> -
> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>

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

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



Re: hex_md5() function in jmeter

2011-06-01 Thread Deepak Shetty
http://jmeter.512774.n5.nabble.com/Need-helping-creating-a-md5-hash-td3273251.html

On Wed, Jun 1, 2011 at 2:53 PM, testerinCO  wrote:

> I have another question.  I'm doing RESTful web services testing and have a
> home grown sessionID.
>
> Before I make the request, I have to create an MD5 hash of the current time
> and a "secret word".  Then I send an authorization header with the hashed
> string to get the real sessionID from the server.
>
> How do I create a MD5 hash in jmeter:  (i.e. hex_md5("somescretword").
> Again I tried javascript, but I'm not very successful.
>
> Thanks again for your help.
>
> TesterInDenver
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/How-to-get-substring-function-in-jMeter-tp526607p4446533.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>


hex_md5() function in jmeter

2011-06-01 Thread testerinCO
I have another question.  I'm doing RESTful web services testing and have a
home grown sessionID.

Before I make the request, I have to create an MD5 hash of the current time
and a "secret word".  Then I send an authorization header with the hashed
string to get the real sessionID from the server.

How do I create a MD5 hash in jmeter:  (i.e. hex_md5("somescretword"). 
Again I tried javascript, but I'm not very successful.

Thanks again for your help.

TesterInDenver

--
View this message in context: 
http://jmeter.512774.n5.nabble.com/How-to-get-substring-function-in-jMeter-tp526607p4446533.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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



Re: How to get substring function in jMeter

2011-06-01 Thread testerinCO
Thank you so much.  I worked on this for hours.  

--
View this message in context: 
http://jmeter.512774.n5.nabble.com/How-to-get-substring-function-in-jMeter-tp526607p4446513.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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



Stop on criteria/save stats before end of test

2011-06-01 Thread Guillaume Lucazeau
Hello Jmeter users!

I am running some performance tests on a website: I got 2,000 users
(threads) sending GET requests on 20 random pages. I got a ramp-up of 45
seconds. Then at the beginning the number of threads slowly increase, and at
the end it slowly decreases.

When I run this test manually through the GUI, I usually save the data (and
then force the test top stop) when the number of threads start to decrease,
to keep the 90% line generated while the maximum number of threads were
running.

Now that I am going to run Jmeter tests with Maven, I would like to know how
to reproduce this behavior: can I control the current total of threads and
save a report when it decreases, or stop the test? Or do you have any
suggestion on this topic?

I made many researches, looked in the component reference but so far I
didn't find anything that could help.

Thank you for your help! :-)
Guillaume


Re: How to get substring function in jMeter

2011-06-01 Thread sebb
On 1 June 2011 03:38, testerinCO  wrote:
> Hello
>
> I'm using the time function and get the following string returned:
> currentTime=1306894971042.  I'm interested in only the first 10 digits.
>
> I tried the following:
>
> ${__jexl(Systemclass=log.class.forName("java.lang.System");
> Stringclass=log.class.forName("java.lang.String");
> now=Stringclass.valueOf(Systemclass.currentTimeMillis()).substring(2);)}
>
> The substring doesn't accept  "from" to "to" integers (i.e. 0, 9)

Yes it does, but you have to escape the comma.

Try

${__jexl(s="${__time()}";s.substring(0\,9))}

Jexl does not like "1234567890".substring(0,9) so you have to assign
to a variable first.

> I've tried different iterations of javascript, but can't get jmeter to read
> the file and the function within it.
>
> Thank you.
>
> --
> View this message in context: 
> http://jmeter.512774.n5.nabble.com/How-to-get-substring-function-in-jMeter-tp526607p003.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>

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