On 16/10/2008, jkhanal <[EMAIL PROTECTED]> wrote:
>
>  Hi Sebb and Himanshu,
>
>  Thank you for your advice. I tried to figure out but could not get what went
>  wrong. I recorded listener as well while recording and also i have listener
>  that I got after execution. I have pasted that below for your review. Thanks
>  a lot for your cooperation.
>
>  Request while recording (WorkBench)
>
>
>  GET http://www.sonomavich.com:9080/pages/checkout
>
>
> [no cookies]

So the browser does not send any cookies here.

>
>
>  Request Headers:
>  Accept-Language: en-us
>  Host: www.sonomavich.com:9080
>  User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
>  2.0.50727; MS-RTC LM 8; KTXN B0A0T0U0)
>  Connection: keep-alive
>  Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
>  application/x-shockwave-flash, application/vnd.ms-excel,
>  application/vnd.ms-powerpoint, application/msword, */*
>  UA-CPU: x86
>
>
> -----------------------------------------------
>
>  Sample Result while recording (WorkBench)
>
>  Thread Name:
>  Sample Start: 2008-10-15 13:15:04 PDT
>  Load time: 125
>  Latency: 125
>  Size in bytes: 8573
>  Sample Count: 1
>  Error Count: 0
>  Response code: 200
>  Response message: OK
>
>  Response headers:
>  HTTP/1.1 200 OK
>
> Server: Apache-Coyote/1.1
>  Pragma: no-cache
>  Cache-Control: no-cache, max-age=0, must-revalidate
>  Content-Type: text/html;charset=UTF-8
>  Content-Language: en-US
>
> Transfer-Encoding: chunked
>  Date: Wed, 15 Oct 2008 20:15:06 GMT
>
>
>  **********************************************
>  Request After Exeicution (Test Plan)
>
>
>
>  GET http://www.sonomavich.com:9080/pages/checkout
>
>  Cookie Data:
>
> inertia-bid=e2f33580a20a411fadbf06592641f5bc

Yet JMeter is sending a cookie.

Where has this cookie come from? Presumably from some earlier server responses.
So why does the browser not send the cookie?

You'll need to compare all the earlier recording and test run samples
and responses to see why JMeter is send a cookie when the browser is
not (BTW, it's normally the other way about - e.g. if you forget the
Cookie Manager).

Try working backwards to trace the source of the cookie, and then have
a look to see where the browser stops sending it. Then try to figure
out why the browser stops sending it.

>
>
>  Request Headers:
>  Accept-Language: en-us
>  Host: www.sonomavich.com:9080
>  User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
>  2.0.50727; MS-RTC LM 8; KTXN B0A0T0U0)
>  Connection: keep-alive
>  Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
>  application/x-shockwave-flash, application/vnd.ms-excel,
>  application/vnd.ms-powerpoint, application/msword, */*
>  UA-CPU: x86
>
>
> -------------------------
>
>  Sample Result after Execution (Test Plan)
>
>  Thread Name: Thread Group 1-1
>  Sample Start: 2008-10-15 13:17:06 PDT
>  Load time: 16
>  Latency: 16
>
> Size in bytes: 1407
>  Sample Count: 1
>  Error Count: 1
>  Response code: 500
>  Response message: Internal Server Error
>

As far as I can tell, the only difference between the requests is the cookie.
[Of course, the server state may be different if previous requests differed.]

This indicates an error in the server code, which ought to be reported
to the developers.

The presence (or absence) of a cookie should never result in a server
error - the server should respond with a valid page containing an
error message that means something to the user.

>  Response headers:
>  HTTP/1.1 500 Internal Server Error
>  Server: Apache-Coyote/1.1
>  Pragma: no-cache
>  Cache-Control: no-cache, max-age=0, must-revalidate
>  Content-Type: text/html;charset=UTF-8
>  Content-Language: en-US
>  Content-Length: 1407
>
> Date: Wed, 15 Oct 2008 20:17:08 GMT
>  Connection: close
>
>
>
>
>
>
>
>
>
>  sebb-2-2 wrote:
>  >
>  > I agree - it looks like cookies are being handled OK. The values don't
>  > matter, just check that the browser and JMeter are sending the same
>  > cookie names. You can check JMeter cookies in the Tree View Listener.
>  >
>  > You should only need to use a regex extractor if there are hidden form
>  > values that the server expects back.
>  >
>  > Again, compare browser with JMeter to see that the same names are being
>  > used.
>  >
>  > On 15/10/2008, Himanshu Ghai <[EMAIL PROTECTED]> wrote:
>  >> Jagan try to correlate the requests to what your browser sends..
>  >>  things you might need to check are the parameters/cookies/ correct
>  >>  http method..
>  >>
>  >>  are you sure for checkout http method is get and does not have any
>  >>  parameters? Jsessionid is picked up by cookie manager correctly it
>  >> seems..
>  >>
>  >>
>  >>  Himanshu
>  >>
>  >>
>  >>
>  >>
>  >>  On Tue, Oct 14, 2008 at 4:42 PM, jkhanal <[EMAIL PROTECTED]> wrote:
>  >>
>  >>  >
>  >>  > Hi Sebb,
>  >>  >
>  >>  > Thank you for your response
>  >>  >
>  >>  > I ran two times and Cookie Data: was different. Looks like I need to
>  >> create
>  >>  > regular expression for inertia-bid and JSESSIONID that are different
>  >> in two
>  >>  > different runs [I have pasted the results below]. But, I am not sure
>  >> how to
>  >>  > create Regular Expression as I am new in RegEx. It would be great if
>  >> you
>  >>  > could give some idea on that.
>  >>  >
>  >>  > Thanks a lot,
>  >>  > Jagan
>  >>  >
>  >>  > Result of First Run:
>  >>  >
>  >>  > GET http://www.sonomavich.com:9080/pages/checkout
>  >>  >
>  >>  > Cookie Data:
>  >>  > inertia-bid=ec293cd3c6f1436b84fe74554e88f601;
>  >>  > JSESSIONID=BA7E255703C3FCAED9436B7D7BF68BBF
>  >>  >
>  >>  > Request Headers:
>  >>  > Accept-Language: en-us
>  >>  > Host: www.sonomavich.com:9080
>  >>  > User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET
>  >> CLR
>  >>  > 2.0.50727; MS-RTC LM 8; KTXN B0A0T0U0)
>  >>  > Connection: keep-alive
>  >>  > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
>  >>  > application/x-shockwave-flash, application/vnd.ms-excel,
>  >>  > application/vnd.ms-powerpoint, application/msword, */*
>  >>  > UA-CPU: x86
>  >>  >
>  >>  > Result of 2nd Run:
>  >>  >
>  >>  > GET http://www.sonomavich.com:9080/pages/checkout
>  >>  >
>  >>  > Cookie Data:
>  >>  > inertia-bid=77e1adb1a24041e594c6dae275122ff7;
>  >>  > JSESSIONID=3079C4EA8BBEF5B0F1820F3272C4E258
>  >>  >
>  >>  > Request Headers:
>  >>  > Accept-Language: en-us
>  >>  > Host: www.sonomavich.com:9080
>  >>  > User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET
>  >> CLR
>  >>  > 2.0.50727; MS-RTC LM 8; KTXN B0A0T0U0)
>  >>  > Connection: keep-alive
>  >>  > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
>  >>  > application/x-shockwave-flash, application/vnd.ms-excel,
>  >>  > application/vnd.ms-powerpoint, application/msword, */*
>  >>  > UA-CPU: x86
>  >>  >
>  >>  >
>  >>  >
>  >>  >
>  >>  >
>  >>  > sebb-2-2 wrote:
>  >>  > >
>  >>  > > On 13/10/2008, jkhanal <[EMAIL PROTECTED]> wrote:
>  >>  > >>
>  >>  > >>  Additional Information in Error which is as follows:
>  >>  > >>
>  >>  > >>  Sample Start: 2008-10-13 13:55:03 PDT
>  >>  > >>  Load time: 32
>  >>  > >>  Latency: 32
>  >>  > >>  Size in bytes: 1407
>  >>  > >>  Sample Count: 1
>  >>  > >>  Error Count: 1
>  >>  > >>  Response code: 500
>  >>  > >>  Response message: Internal Server Error
>  >>  > >>
>  >>  > >>  Response headers:
>  >>  > >>  HTTP/1.1 500 Internal Server Error
>  >>  > >>  Server: Apache-Coyote/1.1
>  >>  > >>  Pragma: no-cache
>  >>  > >>  Cache-Control: no-cache, max-age=0, must-revalidate
>  >>  > >>  Content-Type: text/html;charset=UTF-8
>  >>  > >>  Content-Language: en-US
>  >>  > >>  Content-Length: 1407
>  >>  > >>  Date: Mon, 13 Oct 2008 20:55:01 GMT
>  >>  > >>  Connection: close
>  >>  > >>
>  >>  > >
>  >>  > > That error is generated by the webserver. This is a bug, probably in
>  >>  > > the web application rather than the server itself.
>  >>  > >
>  >>  > > You'll need to find what is triggering the bug, e.g. by comparing
>  >> what
>  >>  > > the browser sent when you recorded the test with what JMeter is now
>  >>  > > sending.
>  >>  > >
>  >>  > > Maybe there is some extra information that needs to be sent, or more
>  >>  > > likely the recording captured some variable information which needs
>  >> to
>  >>  > > be changed for each run - e.g. a hidden field on a form. You'll need
>  >>  > > to find where the browser is picking up this information and use the
>  >>  > > Regex Extractor to save it in a variable for the appropriate sample.
>  >>  > >
>  >>  > >
>  >>  > >>
>  >>  > >>  jkhanal wrote:
>  >>  > >>  >
>  >>  > >>  > Hi,
>  >>  > >>  >
>  >>  > >>  > I used Proxy Server to record the Use Case. Also, I have used
>  >> Cookie
>  >>  > >>  > Manager. My flow of use case is order an Item online. When
>  >> running
>  >>  > the
>  >>  > >>  > JMeter, I am getting error in "Checkout". Everything else is
>  >> fine.
>  >>  > >> Error
>  >>  > >>  > response code is 500 when checked in Log. Can you suggest me
>  >> what
>  >>  > >> might
>  >>  > >>  > have went wrong?
>  >>  > >>  >
>  >>  > >>  > I would really appreciate your suggestions.
>  >>  > >>  >
>  >>  > >>  > Thank you,
>  >>  > >>  > Jagan
>  >>  > >>  >
>  >>  > >>
>  >>  > >>  --
>  >>  > >>
>  >>  > >> View this message in context:
>  >>  > >>
>  >>  >
>  >> http://www.nabble.com/Error-when-running-JMeter-tp19958807p19962820.html
>  >>  > >>
>  >>  > >> Sent from the JMeter - User mailing list archive at Nabble.com.
>  >>  > >>
>  >>  > >>
>  >>  > >>
>  >>  > >>
>  >> ---------------------------------------------------------------------
>  >>  > >>  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]
>  >>  > >
>  >>  > >
>  >>  > >
>  >>  >
>  >>  > --
>  >>  > View this message in context:
>  >>  >
>  >> http://www.nabble.com/Error-when-running-JMeter-tp19958807p19984258.html
>  >>  > Sent from the JMeter - User mailing list archive at Nabble.com.
>  >>  >
>  >>  >
>  >>  > ---------------------------------------------------------------------
>  >>  > 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]
>  >
>  >
>  >
>
>  --
>
> View this message in context: 
> http://www.nabble.com/Error-when-running-JMeter-tp19958807p20001661.html
>
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  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