Re: Cookie Manager

2009-04-30 Thread Himanshu Ghai
Look at the requests which set the cookie in response headers.
If you have automatic redirects, i am not sure but i faintly remember
you might need to redirect yourself to set cookies in jmeter.

First step is to find the requests which set the cookies ps-token
andps_login..in browser response headers look for set-cookie

Himanshu

On Thu, Apr 30, 2009 at 5:51 AM, Kannan, Sengamalam
 wrote:
> Sebb
> I also work with Ranjitha in solving the below issue. Let me try to explain 
> you clearly what issue we are facing.
>
> When we record scenario using JMeter, the jmeter request and response headers 
> are same as the browser's.
>
> But when we run the script, headers doent have the PS_TOKEN and PS_LOGIN 
> cookie parameter and only the PSJSESSIONID is present.
>
> We don't know how to solve this as we have also added Cookie Manager and 
> tried with all the policy options available there (ex: compatibility, rfc.., 
> default, etc) but nothing worked.
>
> Do we need to configure something else? Please help us to solve this.
>
> Thanks & Regards
> Sengamalam Kannan
> Testing CoE
> Mobile: +91 99529 67005
> Tel: +91 44 6615 2684
>
> -Original Message-
> From: Prakash, Ranjitha [mailto:ranjitha.prak...@aig.com]
> Sent: Thursday, April 30, 2009 6:14 PM
> To: JMeter Users List
> Subject: RE: Cookie Manager
>
> The recorded request header is the same as the browser request header.
>
>
> Thanks and Regards,
> Ranjitha Prakash
> Mob: 9884383831
> Off: 66152735
> It is easy to sit up and take notice. What is difficult is getting up and 
> taking action
>
> -Original Message-
> From: Prakash, Ranjitha [mailto:ranjitha.prak...@aig.com]
> Sent: Thursday, April 30, 2009 5:51 PM
> To: JMeter Users List
> Subject: RE: Cookie Manager
>
> Given below is the request header
>
> Request Headers:
> Connection: keep-alive
> Host: 10.46.188.36:8080
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
> InfoPath.1)
> Accept-Language: en-us
> Referer: http://10.46.188.36:8080/psp/HR880TST/?cmd=login
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
> application/x-shockwave-flash, application/vnd.ms-excel, 
> application/vnd.ms-powerpoint, application/msword, */*
>
> Thanks and Regards,
> Ranjitha Prakash
> Mob: 9884383831
> Off: 66152735
> It is easy to sit up and take notice. What is difficult is getting up and 
> taking action
>
> -Original Message-
> From: sebb [mailto:seb...@gmail.com]
> Sent: Thursday, April 30, 2009 5:40 PM
> To: JMeter Users List
> Subject: Re: Cookie Manager
>
> What about the Requests?
>
> And how do these differ from the requests made by a browser?
>
> On 30/04/2009, Prakash, Ranjitha  wrote:
>> These are the recorded script response headers in JMeter. But when we run 
>> the script Response Headers doesn't have the PS_TOKEN,  PS_LOGIN etc. Note 
>> that we have also ncluded Cookie Manager.
>>
>>  Response headers:
>>  HTTP/1.1 200 OK
>>  Date: Thu, 30 Apr 2009 11:25:04 GMT
>>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
>> 09:54:21
>>  Content-Encoding: gzip
>>  Content-Length: 1853
>>  Content-Type: text/html; CHARSET=UTF-8
>>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>>  UsesPortalRelativeURL: true
>>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:04_GMT; path=/
>>  PortalRegisteredURL: 
>> http://10.46.188.36:8080/psc/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
>>
>>  Response headers:
>>  HTTP/1.1 200 OK
>>  Date: Thu, 30 Apr 2009 11:25:03 GMT
>>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
>> 09:54:21
>>  Content-Encoding: gzip
>>  Content-Length: 716
>>  Content-Type: text/html; CHARSET=UTF-8
>>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
>>
>>
>>  Response headers:
>>  HTTP/1.1 302 Moved Temporarily
>>  Date: Thu, 30 Apr 2009 11:25:00 GMT
>>  Location: 
>> http://10.46.188.36:8080/psp/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
>>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
>> 09:54:21
>>  Content-Type: text/html
>>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>>  Transfer-Encoding: Chunked
>>  Set-Cookie: SignOnDefault=; expires=Thursday, 07-May-2009 11:25:03 GMT; 
>> path=/
>>  Set-Cookie: 
>> PS_TOKEN=sAQDAgEBvAIsBABTaGRyAk4AfQg4AC4AMQAwABSDa0+u3FOdXwNMa2yUaydpOJJjBnAFAFNkYXRhZHicHYpBDoJAEAQLJBx9gV9gs4H1sEcTXT0BAROPvsSf8TgrO53pztT0D+hObdOYR0udS2Fh46m/Wbmxq09ld/oHs6/zKiv+v7zkaSSqzKAnfTIHRhXcqx5lobaid7bFH4kfDgI=;
>>  path=/
>>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
>>  Set-Cookie: PS_LOGINLIST=http://10.46.188.36:8080/FP; path=/
>>  Set-Cookie: ExpirePage=http://10.46.188.36:8080/psp/FP/; path=/
>>  Connection: Close
>>
>>
>>  Thanks and Regards,
>>  Ranjitha Prakash
>>  Mob: 9884383831
>>  Off: 66152735
>>  It is easy to sit up and take notice. What is difficult is getting up and 
>> taking action
>>
>>
>> -Original Message-
>>  From: sebb [ma

RE: Cookie Manager

2009-04-30 Thread Kannan, Sengamalam
Sebb
I also work with Ranjitha in solving the below issue. Let me try to explain you 
clearly what issue we are facing.

When we record scenario using JMeter, the jmeter request and response headers 
are same as the browser's.

But when we run the script, headers doent have the PS_TOKEN and PS_LOGIN cookie 
parameter and only the PSJSESSIONID is present.

We don't know how to solve this as we have also added Cookie Manager and tried 
with all the policy options available there (ex: compatibility, rfc.., default, 
etc) but nothing worked.

Do we need to configure something else? Please help us to solve this.

Thanks & Regards
Sengamalam Kannan
Testing CoE
Mobile: +91 99529 67005
Tel: +91 44 6615 2684

-Original Message-
From: Prakash, Ranjitha [mailto:ranjitha.prak...@aig.com]
Sent: Thursday, April 30, 2009 6:14 PM
To: JMeter Users List
Subject: RE: Cookie Manager

The recorded request header is the same as the browser request header.


Thanks and Regards,
Ranjitha Prakash
Mob: 9884383831
Off: 66152735
It is easy to sit up and take notice. What is difficult is getting up and 
taking action

-Original Message-
From: Prakash, Ranjitha [mailto:ranjitha.prak...@aig.com]
Sent: Thursday, April 30, 2009 5:51 PM
To: JMeter Users List
Subject: RE: Cookie Manager

Given below is the request header

Request Headers:
Connection: keep-alive
Host: 10.46.188.36:8080
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)
Accept-Language: en-us
Referer: http://10.46.188.36:8080/psp/HR880TST/?cmd=login
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*

Thanks and Regards,
Ranjitha Prakash
Mob: 9884383831
Off: 66152735
It is easy to sit up and take notice. What is difficult is getting up and 
taking action

-Original Message-
From: sebb [mailto:seb...@gmail.com]
Sent: Thursday, April 30, 2009 5:40 PM
To: JMeter Users List
Subject: Re: Cookie Manager

What about the Requests?

And how do these differ from the requests made by a browser?

On 30/04/2009, Prakash, Ranjitha  wrote:
> These are the recorded script response headers in JMeter. But when we run the 
> script Response Headers doesn't have the PS_TOKEN,  PS_LOGIN etc. Note that 
> we have also ncluded Cookie Manager.
>
>  Response headers:
>  HTTP/1.1 200 OK
>  Date: Thu, 30 Apr 2009 11:25:04 GMT
>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
> 09:54:21
>  Content-Encoding: gzip
>  Content-Length: 1853
>  Content-Type: text/html; CHARSET=UTF-8
>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>  UsesPortalRelativeURL: true
>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:04_GMT; path=/
>  PortalRegisteredURL: 
> http://10.46.188.36:8080/psc/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
>
>  Response headers:
>  HTTP/1.1 200 OK
>  Date: Thu, 30 Apr 2009 11:25:03 GMT
>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
> 09:54:21
>  Content-Encoding: gzip
>  Content-Length: 716
>  Content-Type: text/html; CHARSET=UTF-8
>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
>
>
>  Response headers:
>  HTTP/1.1 302 Moved Temporarily
>  Date: Thu, 30 Apr 2009 11:25:00 GMT
>  Location: 
> http://10.46.188.36:8080/psp/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
> 09:54:21
>  Content-Type: text/html
>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>  Transfer-Encoding: Chunked
>  Set-Cookie: SignOnDefault=; expires=Thursday, 07-May-2009 11:25:03 GMT; 
> path=/
>  Set-Cookie: 
> PS_TOKEN=sAQDAgEBvAIsBABTaGRyAk4AfQg4AC4AMQAwABSDa0+u3FOdXwNMa2yUaydpOJJjBnAFAFNkYXRhZHicHYpBDoJAEAQLJBx9gV9gs4H1sEcTXT0BAROPvsSf8TgrO53pztT0D+hObdOYR0udS2Fh46m/Wbmxq09ld/oHs6/zKiv+v7zkaSSqzKAnfTIHRhXcqx5lobaid7bFH4kfDgI=;
>  path=/
>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
>  Set-Cookie: PS_LOGINLIST=http://10.46.188.36:8080/FP; path=/
>  Set-Cookie: ExpirePage=http://10.46.188.36:8080/psp/FP/; path=/
>  Connection: Close
>
>
>  Thanks and Regards,
>  Ranjitha Prakash
>  Mob: 9884383831
>  Off: 66152735
>  It is easy to sit up and take notice. What is difficult is getting up and 
> taking action
>
>
> -Original Message-
>  From: sebb [mailto:seb...@gmail.com]
>  Sent: Thursday, April 30, 2009 4:31 PM
>  To: JMeter Users List
>  Subject: Re: Cookie Manager
>
>  http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour
>
>  On 30/04/2009, Prakash, Ranjitha  wrote:
>  > Hi All,
>  >
>  > I am trying to do load test for a web page. I have enabled the 
> cookie manager and all other required setup properly. But Still while doing 
> the load test, I am getting the following error message "You must have 
> cookies enabled in order to sign in to your application. Return to sign in 
> with cookies enabled." Pleas

RE: Cookie Manager

2009-04-30 Thread Prakash, Ranjitha
The recorded request header is the same as the browser request header.


Thanks and Regards,
Ranjitha Prakash
Mob: 9884383831
Off: 66152735
It is easy to sit up and take notice. What is difficult is getting up and 
taking action

-Original Message-
From: Prakash, Ranjitha [mailto:ranjitha.prak...@aig.com]
Sent: Thursday, April 30, 2009 5:51 PM
To: JMeter Users List
Subject: RE: Cookie Manager

Given below is the request header

Request Headers:
Connection: keep-alive
Host: 10.46.188.36:8080
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)
Accept-Language: en-us
Referer: http://10.46.188.36:8080/psp/HR880TST/?cmd=login
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*

Thanks and Regards,
Ranjitha Prakash
Mob: 9884383831
Off: 66152735
It is easy to sit up and take notice. What is difficult is getting up and 
taking action

-Original Message-
From: sebb [mailto:seb...@gmail.com]
Sent: Thursday, April 30, 2009 5:40 PM
To: JMeter Users List
Subject: Re: Cookie Manager

What about the Requests?

And how do these differ from the requests made by a browser?

On 30/04/2009, Prakash, Ranjitha  wrote:
> These are the recorded script response headers in JMeter. But when we run the 
> script Response Headers doesn't have the PS_TOKEN,  PS_LOGIN etc. Note that 
> we have also ncluded Cookie Manager.
>
>  Response headers:
>  HTTP/1.1 200 OK
>  Date: Thu, 30 Apr 2009 11:25:04 GMT
>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
> 09:54:21
>  Content-Encoding: gzip
>  Content-Length: 1853
>  Content-Type: text/html; CHARSET=UTF-8
>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>  UsesPortalRelativeURL: true
>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:04_GMT; path=/
>  PortalRegisteredURL: 
> http://10.46.188.36:8080/psc/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
>
>  Response headers:
>  HTTP/1.1 200 OK
>  Date: Thu, 30 Apr 2009 11:25:03 GMT
>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
> 09:54:21
>  Content-Encoding: gzip
>  Content-Length: 716
>  Content-Type: text/html; CHARSET=UTF-8
>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
>
>
>  Response headers:
>  HTTP/1.1 302 Moved Temporarily
>  Date: Thu, 30 Apr 2009 11:25:00 GMT
>  Location: 
> http://10.46.188.36:8080/psp/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
> 09:54:21
>  Content-Type: text/html
>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>  Transfer-Encoding: Chunked
>  Set-Cookie: SignOnDefault=; expires=Thursday, 07-May-2009 11:25:03 GMT; 
> path=/
>  Set-Cookie: 
> PS_TOKEN=sAQDAgEBvAIsBABTaGRyAk4AfQg4AC4AMQAwABSDa0+u3FOdXwNMa2yUaydpOJJjBnAFAFNkYXRhZHicHYpBDoJAEAQLJBx9gV9gs4H1sEcTXT0BAROPvsSf8TgrO53pztT0D+hObdOYR0udS2Fh46m/Wbmxq09ld/oHs6/zKiv+v7zkaSSqzKAnfTIHRhXcqx5lobaid7bFH4kfDgI=;
>  path=/
>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
>  Set-Cookie: PS_LOGINLIST=http://10.46.188.36:8080/FP; path=/
>  Set-Cookie: ExpirePage=http://10.46.188.36:8080/psp/FP/; path=/
>  Connection: Close
>
>
>  Thanks and Regards,
>  Ranjitha Prakash
>  Mob: 9884383831
>  Off: 66152735
>  It is easy to sit up and take notice. What is difficult is getting up and 
> taking action
>
>
> -Original Message-
>  From: sebb [mailto:seb...@gmail.com]
>  Sent: Thursday, April 30, 2009 4:31 PM
>  To: JMeter Users List
>  Subject: Re: Cookie Manager
>
>  http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour
>
>  On 30/04/2009, Prakash, Ranjitha  wrote:
>  > Hi All,
>  >
>  > I am trying to do load test for a web page. I have enabled the 
> cookie manager and all other required setup properly. But Still while doing 
> the load test, I am getting the following error message "You must have 
> cookies enabled in order to sign in to your application. Return to sign in 
> with cookies enabled." Please give me an appropriate solution for this error.
>  >
>  >
>  >
>  >  Thanks and Regards,
>  >
>  >  Ranjitha Prakash
>  >
>  >  Mob: 9884383831
>  >
>  >  Off: 66152735
>  >
>  >  It is easy to sit up and take notice. What is difficult is getting up and 
> taking action
>  >
>
>
> -
>  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-mai

RE: Cookie Manager

2009-04-30 Thread Prakash, Ranjitha
Given below is the request header

Request Headers:
Connection: keep-alive
Host: 10.46.188.36:8080
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)
Accept-Language: en-us
Referer: http://10.46.188.36:8080/psp/HR880TST/?cmd=login
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*

Thanks and Regards,
Ranjitha Prakash
Mob: 9884383831
Off: 66152735
It is easy to sit up and take notice. What is difficult is getting up and 
taking action

-Original Message-
From: sebb [mailto:seb...@gmail.com]
Sent: Thursday, April 30, 2009 5:40 PM
To: JMeter Users List
Subject: Re: Cookie Manager

What about the Requests?

And how do these differ from the requests made by a browser?

On 30/04/2009, Prakash, Ranjitha  wrote:
> These are the recorded script response headers in JMeter. But when we run the 
> script Response Headers doesn't have the PS_TOKEN,  PS_LOGIN etc. Note that 
> we have also ncluded Cookie Manager.
>
>  Response headers:
>  HTTP/1.1 200 OK
>  Date: Thu, 30 Apr 2009 11:25:04 GMT
>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
> 09:54:21
>  Content-Encoding: gzip
>  Content-Length: 1853
>  Content-Type: text/html; CHARSET=UTF-8
>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>  UsesPortalRelativeURL: true
>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:04_GMT; path=/
>  PortalRegisteredURL: 
> http://10.46.188.36:8080/psc/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
>
>  Response headers:
>  HTTP/1.1 200 OK
>  Date: Thu, 30 Apr 2009 11:25:03 GMT
>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
> 09:54:21
>  Content-Encoding: gzip
>  Content-Length: 716
>  Content-Type: text/html; CHARSET=UTF-8
>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
>
>
>  Response headers:
>  HTTP/1.1 302 Moved Temporarily
>  Date: Thu, 30 Apr 2009 11:25:00 GMT
>  Location: 
> http://10.46.188.36:8080/psp/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
> 09:54:21
>  Content-Type: text/html
>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>  Transfer-Encoding: Chunked
>  Set-Cookie: SignOnDefault=; expires=Thursday, 07-May-2009 11:25:03 GMT; 
> path=/
>  Set-Cookie: 
> PS_TOKEN=sAQDAgEBvAIsBABTaGRyAk4AfQg4AC4AMQAwABSDa0+u3FOdXwNMa2yUaydpOJJjBnAFAFNkYXRhZHicHYpBDoJAEAQLJBx9gV9gs4H1sEcTXT0BAROPvsSf8TgrO53pztT0D+hObdOYR0udS2Fh46m/Wbmxq09ld/oHs6/zKiv+v7zkaSSqzKAnfTIHRhXcqx5lobaid7bFH4kfDgI=;
>  path=/
>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
>  Set-Cookie: PS_LOGINLIST=http://10.46.188.36:8080/FP; path=/
>  Set-Cookie: ExpirePage=http://10.46.188.36:8080/psp/FP/; path=/
>  Connection: Close
>
>
>  Thanks and Regards,
>  Ranjitha Prakash
>  Mob: 9884383831
>  Off: 66152735
>  It is easy to sit up and take notice. What is difficult is getting up and 
> taking action
>
>
> -Original Message-
>  From: sebb [mailto:seb...@gmail.com]
>  Sent: Thursday, April 30, 2009 4:31 PM
>  To: JMeter Users List
>  Subject: Re: Cookie Manager
>
>  http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour
>
>  On 30/04/2009, Prakash, Ranjitha  wrote:
>  > Hi All,
>  >
>  > I am trying to do load test for a web page. I have enabled the 
> cookie manager and all other required setup properly. But Still while doing 
> the load test, I am getting the following error message "You must have 
> cookies enabled in order to sign in to your application. Return to sign in 
> with cookies enabled." Please give me an appropriate solution for this error.
>  >
>  >
>  >
>  >  Thanks and Regards,
>  >
>  >  Ranjitha Prakash
>  >
>  >  Mob: 9884383831
>  >
>  >  Off: 66152735
>  >
>  >  It is easy to sit up and take notice. What is difficult is getting up and 
> taking action
>  >
>
>
> -
>  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

2009-04-30 Thread sebb
What about the Requests?

And how do these differ from the requests made by a browser?

On 30/04/2009, Prakash, Ranjitha  wrote:
> These are the recorded script response headers in JMeter. But when we run the 
> script Response Headers doesn't have the PS_TOKEN,  PS_LOGIN etc. Note that 
> we have also ncluded Cookie Manager.
>
>  Response headers:
>  HTTP/1.1 200 OK
>  Date: Thu, 30 Apr 2009 11:25:04 GMT
>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
> 09:54:21
>  Content-Encoding: gzip
>  Content-Length: 1853
>  Content-Type: text/html; CHARSET=UTF-8
>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>  UsesPortalRelativeURL: true
>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:04_GMT; path=/
>  PortalRegisteredURL: 
> http://10.46.188.36:8080/psc/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
>
>  Response headers:
>  HTTP/1.1 200 OK
>  Date: Thu, 30 Apr 2009 11:25:03 GMT
>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
> 09:54:21
>  Content-Encoding: gzip
>  Content-Length: 716
>  Content-Type: text/html; CHARSET=UTF-8
>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
>
>
>  Response headers:
>  HTTP/1.1 302 Moved Temporarily
>  Date: Thu, 30 Apr 2009 11:25:00 GMT
>  Location: 
> http://10.46.188.36:8080/psp/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
>  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
> 09:54:21
>  Content-Type: text/html
>  Expires: Thu, 01 Dec 1994 16:00:00 GMT
>  Transfer-Encoding: Chunked
>  Set-Cookie: SignOnDefault=; expires=Thursday, 07-May-2009 11:25:03 GMT; 
> path=/
>  Set-Cookie: 
> PS_TOKEN=sAQDAgEBvAIsBABTaGRyAk4AfQg4AC4AMQAwABSDa0+u3FOdXwNMa2yUaydpOJJjBnAFAFNkYXRhZHicHYpBDoJAEAQLJBx9gV9gs4H1sEcTXT0BAROPvsSf8TgrO53pztT0D+hObdOYR0udS2Fh46m/Wbmxq09ld/oHs6/zKiv+v7zkaSSqzKAnfTIHRhXcqx5lobaid7bFH4kfDgI=;
>  path=/
>  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
>  Set-Cookie: PS_LOGINLIST=http://10.46.188.36:8080/FP; path=/
>  Set-Cookie: ExpirePage=http://10.46.188.36:8080/psp/FP/; path=/
>  Connection: Close
>
>
>  Thanks and Regards,
>  Ranjitha Prakash
>  Mob: 9884383831
>  Off: 66152735
>  It is easy to sit up and take notice. What is difficult is getting up and 
> taking action
>
>
> -Original Message-
>  From: sebb [mailto:seb...@gmail.com]
>  Sent: Thursday, April 30, 2009 4:31 PM
>  To: JMeter Users List
>  Subject: Re: Cookie Manager
>
>  http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour
>
>  On 30/04/2009, Prakash, Ranjitha  wrote:
>  > Hi All,
>  >
>  > I am trying to do load test for a web page. I have enabled the 
> cookie manager and all other required setup properly. But Still while doing 
> the load test, I am getting the following error message "You must have 
> cookies enabled in order to sign in to your application. Return to sign in 
> with cookies enabled." Please give me an appropriate solution for this error.
>  >
>  >
>  >
>  >  Thanks and Regards,
>  >
>  >  Ranjitha Prakash
>  >
>  >  Mob: 9884383831
>  >
>  >  Off: 66152735
>  >
>  >  It is easy to sit up and take notice. What is difficult is getting up and 
> taking action
>  >
>
>
> -
>  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

2009-04-30 Thread Prakash, Ranjitha
These are the recorded script response headers in JMeter. But when we run the 
script Response Headers doesn't have the PS_TOKEN,  PS_LOGIN etc. Note that we 
have also ncluded Cookie Manager.

Response headers:
HTTP/1.1 200 OK
Date: Thu, 30 Apr 2009 11:25:04 GMT
Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 09:54:21
Content-Encoding: gzip
Content-Length: 1853
Content-Type: text/html; CHARSET=UTF-8
Expires: Thu, 01 Dec 1994 16:00:00 GMT
UsesPortalRelativeURL: true
Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:04_GMT; path=/
PortalRegisteredURL: 
http://10.46.188.36:8080/psc/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL

Response headers:
HTTP/1.1 200 OK
Date: Thu, 30 Apr 2009 11:25:03 GMT
Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 09:54:21
Content-Encoding: gzip
Content-Length: 716
Content-Type: text/html; CHARSET=UTF-8
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/


Response headers:
HTTP/1.1 302 Moved Temporarily
Date: Thu, 30 Apr 2009 11:25:00 GMT
Location: 
http://10.46.188.36:8080/psp/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 09:54:21
Content-Type: text/html
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Transfer-Encoding: Chunked
Set-Cookie: SignOnDefault=; expires=Thursday, 07-May-2009 11:25:03 GMT; path=/
Set-Cookie: 
PS_TOKEN=sAQDAgEBvAIsBABTaGRyAk4AfQg4AC4AMQAwABSDa0+u3FOdXwNMa2yUaydpOJJjBnAFAFNkYXRhZHicHYpBDoJAEAQLJBx9gV9gs4H1sEcTXT0BAROPvsSf8TgrO53pztT0D+hObdOYR0udS2Fh46m/Wbmxq09ld/oHs6/zKiv+v7zkaSSqzKAnfTIHRhXcqx5lobaid7bFH4kfDgI=;
 path=/
Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
Set-Cookie: PS_LOGINLIST=http://10.46.188.36:8080/FP; path=/
Set-Cookie: ExpirePage=http://10.46.188.36:8080/psp/FP/; path=/
Connection: Close

Thanks and Regards,
Ranjitha Prakash
Mob: 9884383831
Off: 66152735
It is easy to sit up and take notice. What is difficult is getting up and 
taking action

-Original Message-
From: sebb [mailto:seb...@gmail.com]
Sent: Thursday, April 30, 2009 4:31 PM
To: JMeter Users List
Subject: Re: Cookie Manager

http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour

On 30/04/2009, Prakash, Ranjitha  wrote:
> Hi All,
>
> I am trying to do load test for a web page. I have enabled the 
> cookie manager and all other required setup properly. But Still while doing 
> the load test, I am getting the following error message "You must have 
> cookies enabled in order to sign in to your application. Return to sign in 
> with cookies enabled." Please give me an appropriate solution for this error.
>
>
>
>  Thanks and Regards,
>
>  Ranjitha Prakash
>
>  Mob: 9884383831
>
>  Off: 66152735
>
>  It is easy to sit up and take notice. What is difficult is getting up and 
> taking action
>

-
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: Regular Expression Extractor - one more question

2009-04-30 Thread jmeter-user

its WORK !!! :))) thank you very much ! :)



sebb-2-2 wrote:
> 
> On 30/04/2009, jmeter-user  wrote:
>>
>>  ok
>>  IN Reference Name does not have any leading or trailing spaces :
>>  this copy 1:1 from RE
>>
>>  PP_NAME
>>  ^(\d+)\s+(\S+)
>>  $2$
>>  1
>>
>>  here screen shot from debug sampler (lack PP_NAME ) :
>>
>>  http://www.nabble.com/file/p23314117/debug1.png
>>
>>  When I set in RE -- Default Value , here is screen shot :
>>
>>  http://www.nabble.com/file/p23314117/debug2.png
>>
> 
> OK, now we are finally getting somewhere.
> If the variable is set to the default value it means that the RE PP
> did not match the response.
> 
> Try
> 
> (?m)^(\d+)\s+(\S+)
> 
> as the RE
> 
>>  ---
>>
>>
>>  I'll try once more.
>>
>>  Please try adding a Debug Sampler.
>>
>>  Also check that the Reference Name in the RE (Regular Expression Post
>>  Processor) does not have any leading or trailing spaces.
>>
>>
>>
>> --
>>  View this message in context:
>> http://www.nabble.com/Regular-Expression-Extractor---one-more-question-tp23295877p23314117.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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Regular-Expression-Extractor---one-more-question-tp23295877p23314708.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: Testing Thread Safety of a PHP web-app with JMeter

2009-04-30 Thread sebb
On 29/04/2009, leeand00  wrote:
>
>  I'm rather new to working with multiple threads in a database (most of
>  my career has been spent on the frontend).
>
>  But today I tried testing out a simple app I wrote to store values in
>  a database using php/mysql and ISAM tables with locking.
>
>  I just wrote a blog post on the procedure here:
>
>  http://leeand00.tiddlyspot.com/#[[Testing%20With%20JMeter]]
>
>  From my results my simple php app appears to be thread-safe, but being
>  new at this I'm not entirely certain...so could someone please look
>  the blog post/code over and tell me if I am correct in my assumptions?

You may be able to prove that an application is *not* thread-safe if
you happen to hit the correct test conditions.

But AFAIK it's just not possible to prove that an application is
thread-safe by testing it.

All you can say is that it behaved correctly under the particular test
conditions.

>  P.S. Yes, I know about escaping my SQL statements in PHP, I just
>  haven't done it yet...
>
>  Thank you,
>   Andrew J. Leer
>
>  -
>  Thank you,
>
>     Andrew J. Leer -  http://leeand00.tiddlyspot.com/ My Blog
>
> --
>  View this message in context: 
> http://www.nabble.com/Testing-Thread-Safety-of-a-PHP-web-app-with-JMeter-tp23296125p23296125.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



Re: Regular Expression Extractor - one more question

2009-04-30 Thread sebb
On 30/04/2009, jmeter-user  wrote:
>
>  ok
>  IN Reference Name does not have any leading or trailing spaces :
>  this copy 1:1 from RE
>
>  PP_NAME
>  ^(\d+)\s+(\S+)
>  $2$
>  1
>
>  here screen shot from debug sampler (lack PP_NAME ) :
>
>  http://www.nabble.com/file/p23314117/debug1.png
>
>  When I set in RE -- Default Value , here is screen shot :
>
>  http://www.nabble.com/file/p23314117/debug2.png
>

OK, now we are finally getting somewhere.
If the variable is set to the default value it means that the RE PP
did not match the response.

Try

(?m)^(\d+)\s+(\S+)

as the RE

>  ---
>
>
>  I'll try once more.
>
>  Please try adding a Debug Sampler.
>
>  Also check that the Reference Name in the RE (Regular Expression Post
>  Processor) does not have any leading or trailing spaces.
>
>
>
> --
>  View this message in context: 
> http://www.nabble.com/Regular-Expression-Extractor---one-more-question-tp23295877p23314117.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



Re: Regular Expression Extractor - one more question

2009-04-30 Thread jmeter-user

ok
IN Reference Name does not have any leading or trailing spaces :
this copy 1:1 from RE

PP_NAME
^(\d+)\s+(\S+)
$2$
1

here screen shot from debug sampler (lack PP_NAME ) :

http://www.nabble.com/file/p23314117/debug1.png 

When I set in RE -- Default Value , here is screen shot : 

http://www.nabble.com/file/p23314117/debug2.png 


---

I'll try once more.

Please try adding a Debug Sampler.

Also check that the Reference Name in the RE (Regular Expression Post
Processor) does not have any leading or trailing spaces.


-- 
View this message in context: 
http://www.nabble.com/Regular-Expression-Extractor---one-more-question-tp23295877p23314117.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

2009-04-30 Thread sebb
http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour

On 30/04/2009, Prakash, Ranjitha  wrote:
> Hi All,
>
> I am trying to do load test for a web page. I have enabled the 
> cookie manager and all other required setup properly. But Still while doing 
> the load test, I am getting the following error message "You must have 
> cookies enabled in order to sign in to your application. Return to sign in 
> with cookies enabled." Please give me an appropriate solution for this error.
>
>
>
>  Thanks and Regards,
>
>  Ranjitha Prakash
>
>  Mob: 9884383831
>
>  Off: 66152735
>
>  It is easy to sit up and take notice. What is difficult is getting up and 
> taking action
>

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



Cookie Manager

2009-04-30 Thread Prakash, Ranjitha
Hi All,

I am trying to do load test for a web page. I have enabled the 
cookie manager and all other required setup properly. But Still while doing the 
load test, I am getting the following error message "You must have cookies 
enabled in order to sign in to your application. Return to sign in with cookies 
enabled." Please give me an appropriate solution for this error.



Thanks and Regards,

Ranjitha Prakash

Mob: 9884383831

Off: 66152735

It is easy to sit up and take notice. What is difficult is getting up and 
taking action


Re: Regular Expression Extractor - one more question

2009-04-30 Thread sebb
I'll try once more.

Please try adding a Debug Sampler.

Also check that the Reference Name in the RE (Regular Expression Post
Processor) does not have any leading or trailing spaces.

On 30/04/2009, jmeter-user  wrote:
>
>  Yes,
>
>  in Response have spaces ( I need read value form column name = "NAME" )
>
>
>  here is screen shot  :
>
>  http://www.nabble.com/file/p23313538/space.png
>
>
>  -
>  >  http://www.nabble.com/file/p23311290/request.png
>
>  This means the variable was not set.
>
>  Check that you don't have leading or trailing spaces in the RE.
>
>  And try adding a Debug Sampler.
>
>  >  -
>  >
>  >
>  >  Assuming ID is numeric:
>  >
>  >  ^(\d+)\s+(\S+)
>  >
>  >  >  Template : ??
>  >
>  >  $2$
>  >
>  >  >  Match No.: ??
>  >
>  >  1
>  >
>  >  Default Value: NOT MATCHED
>  >
>  >  >  thanks for help :)
>  >
>  >
>  >
>  > --
>  >  View this message in context:
>  > 
> http://www.nabble.com/Regular-Expression-Extractor---one-more-question-tp23295877p23311290.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
>
>
>
>
>  --
>  View this message in context: 
> http://www.nabble.com/Regular-Expression-Extractor---one-more-question-tp23295877p23313538.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



Re: Regular Expression Extractor - one more question

2009-04-30 Thread jmeter-user

Yes,
 
in Response have spaces

here is screen shot  :

http://www.nabble.com/file/p23313538/space.png 


-
>  http://www.nabble.com/file/p23311290/request.png

This means the variable was not set.

Check that you don't have leading or trailing spaces in the RE.

And try adding a Debug Sampler.

>  -
>
>
>  Assuming ID is numeric:
>
>  ^(\d+)\s+(\S+)
>
>  >  Template : ??
>
>  $2$
>
>  >  Match No.: ??
>
>  1
>
>  Default Value: NOT MATCHED
>
>  >  thanks for help :)
>
>
>
> --
>  View this message in context:
> http://www.nabble.com/Regular-Expression-Extractor---one-more-question-tp23295877p23311290.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




-- 
View this message in context: 
http://www.nabble.com/Regular-Expression-Extractor---one-more-question-tp23295877p23313538.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: Regular Expression Extractor - one more question

2009-04-30 Thread sebb
On 30/04/2009, jmeter-user  wrote:
>
>  unfortunately not work :
>
>  Now I set regular expression :
>
>  http://www.nabble.com/file/p23311290/regular1.png

OK.

>  Response from previous jdbc request is :
>
>  http://www.nabble.com/file/p23311290/response.png

No such file.

>  and regular expression should be read value where column name = "NAME"
>  in this response is "name200"
>  still not read :( and not put in request
>
>  http://www.nabble.com/file/p23311290/request.png

This means the variable was not set.

Check that you don't have leading or trailing spaces in the RE.

And try adding a Debug Sampler.

>  -
>
>
>  Assuming ID is numeric:
>
>  ^(\d+)\s+(\S+)
>
>  >  Template : ??
>
>  $2$
>
>  >  Match No.: ??
>
>  1
>
>  Default Value: NOT MATCHED
>
>  >  thanks for help :)
>
>
>
> --
>  View this message in context: 
> http://www.nabble.com/Regular-Expression-Extractor---one-more-question-tp23295877p23311290.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



Re: Regular Expression Extractor - one more question

2009-04-30 Thread jmeter-user

unfortunately not work :

Now I set regular expression :

http://www.nabble.com/file/p23311290/regular1.png 

Response from previous jdbc request is : 

http://www.nabble.com/file/p23311290/response.png 

and regular expression should be read value where column name = "NAME"
in this response is "name200"
still not read :( and not put in request

http://www.nabble.com/file/p23311290/request.png 

-

Assuming ID is numeric:

^(\d+)\s+(\S+)

>  Template : ??

$2$

>  Match No.: ??

1

Default Value: NOT MATCHED

>  thanks for help :)


-- 
View this message in context: 
http://www.nabble.com/Regular-Expression-Extractor---one-more-question-tp23295877p23311290.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