Re: dynamic parameters

2011-05-27 Thread Rajiv Nanduani
Try this


OID=(\d+)navigatedNode

and use debug sampler to get all the variables value

On Fri, May 27, 2011 at 5:57 AM, Chian Zhong...  wrote:

> Greetings:
>
> One page of my app is refreshed with several dynamic parameters, in jmeter
> recording, I have several parameters name look like:
>  ~OID123navigatedNode, ~OID123OpenedNode, etc  their values are different
> depend on the page I was working on,
> this number part 123 changes every time, I'm trying to get it from
> OID=(.+?)navigatedNode pattern and not getting anything new yet,
> but assuming I can get it, can I use parameter to substitute this parameter
> name?
>
> Anyone has any experience in handling this type of dynamic parameters?
>
> Thanks
> Chian
>



-- 

Regards

*RAJIV 
KUMAR
NANDVANI *

http://rajivkumarnandvani.wordpress.com
http://testeverythingqtp.blogspot.com/


How are throughput and response time related?

2011-05-27 Thread Rajiv Nanduani
Hi All,

I was reading about performance testing and gone through below this.. But I
am not clear Is this true or false..? please explain your thoughts/Inputs on
this paragraph.


*How are throughput and response time related?*

The graph for throughput displays the quantity of data that the server sent
to the Vusers in one second. When throughput is compared to the response
time of transaction, it decreased as the response time decreased. In
addition to this, the highest throughput and response times occur at
approximately the same time.



it decreased as the response time decreased  Is it True ??

-- 

Regards

*RAJIV 
KUMAR
NANDVANI *

http://rajivkumarnandvani.wordpress.com
http://testeverythingqtp.blogspot.com/


Re: cookie manager not working

2011-05-27 Thread sebb
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



Re: cookie manager not working

2011-05-27 Thread Daniel Watrous
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.

I can't find the log file, but here's my java version:

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



Re: cookie manager not working

2011-05-27 Thread sebb
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



Re: cookie manager not working

2011-05-27 Thread sebb
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
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).

> 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