Hi,


Request from JMeter:-

Accept-Language: en-us

Content-Length: 159

Accept-Encoding: gzip, deflate

Referer: 
http://10.14.1.4:8089/Default.aspx?#SearchTerm=Category%3ACat1_148%20and%20NAMEATT%3ANAMEATT_10&Id=.&Category=.&OBN=0&view=1





Response from JMeter:-

{"d":{"__type":"ServiceResultOfSearchResultSet:#com.kalido.utilities.webServiceSupport","Error":{"__type":"ExpectedError:Error","Code":1,"Details":null},"Result":null}}



Request from browser:-



http://10.14.1.4:8089/Default.aspx?#SearchTerm=Category%3ACat1_1%20NAMEATT%3ANAMEATT_2000&Id=.&Category=.&OBN=0&view=1



Expected Result::-

{"d":{"__type":"ServiceResultOfSearchResultSet:#com.kalido.utilities.webServiceSupport","Error":null,"Result":{"__type":"SearchResultSet:kalido","Error":null,"IsComplete":true,"Results":[{"__type":"SearchResult:kalido","Attributes":[],"Category":"Cat1_1","FormattedAttributeString":"
 <span class=\"SearchResultAttName\">NAMEATT:&nbsp;<\/span><span 
class=\"SearchResultAttValue\"><span 
class=\"SearchResultAttValueHighlighted\">NAMEATT_2000<\/span> 
<\/span>","Id":"1-23429","Name":"NAMEATT_2000"}],"Succeeded":true,"TotalCount":1,"Warnings":[]}}}





Regards,

Lolina





-----Original Message-----
From: Deepak Shetty [mailto:[email protected]]
Sent: Saturday, November 21, 2009 1:02 AM
To: JMeter Users List
Subject: Re: POST Request fails during replay



>both the requests (what Jmeter send and what the browser sends) are exactly

the same. But in JMeter I am not getting the >expected response.

They cant be *exactly* the same. Post the request/response headers from the

browser and the request/response that Jmeter sees



regards

deepak





On Fri, Nov 20, 2009 at 11:26 AM, Lolina Bharathan <

[email protected]> wrote:



> Hi,

> Thanks for replying.

> I am not running the proxy while I replay the test.

>

> both the requests (what Jmeter send and what the browser sends) are exactly

> the same. But in JMeter I am not getting the expected response.

>

> Regards,

> Lolina

>

>

> -----Original Message-----

> From: Deepak Shetty [mailto:[email protected]]

> Sent: Saturday, November 21, 2009 12:20 AM

> To: JMeter Users List

> Subject: Re: POST Request fails during replay

>

> hi

> while running your test , you shouldnt be running the proxy and unless you

> have setup java proxy parameters (which you shouldnt have), the test wont

> use the proxy.

>

> If the POST fails you need to compare what Jmeter sends (using View Results

> Tree) with what the browser sends (using any browser tool e.g. Live

> HTTPHeaders in firefox)

>

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

> Numerous messages in archives dela with similar problems.

>

> regards

> deepak

>

> On Fri, Nov 20, 2009 at 10:47 AM, Lolina Bharathan <

> [email protected]> wrote:

>

> > Hi All,

> >

> > I created a test plan by recording my actions when i access the Web App

> > that i wanted to test. While the actions were being performed there were

> > corresponding Samplers being created

> > by the "HTTP Proxy Recorder". When i replay the test plan all request

> > except one pass. One of the POST request fails.

> >

> > If I submit the request manually with the JMeter Proxy running, I am

> > getting the following error which says (in jmeter logs) ,

> >

> > ERROR - jmeter.protocol.http.proxy.Proxy: Not implemented (probably used

> > https) java.lang.IllegalArgumentException: Cannot handle CONNECT -

> probably

> > used HTTPS

> >                at

> >

> org.apache.jmeter.protocol.http.proxy.HttpRequestHdr.parseFirstLine(HttpRequestHdr.java:212)

> >                at

> >

> org.apache.jmeter.protocol.http.proxy.HttpRequestHdr.parse(HttpRequestHdr.java:164)

> >                at

> > org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:165)

> >

> > I am not using HTTPs. Any suggestions on what could rectify this issue???

> >

> > Thanks in advance

> >

> > Regards,

> > Lolina

> >

> >

>

> ---------------------------------------------------------------------

> To unsubscribe, e-mail: [email protected]

> For additional commands, e-mail: [email protected]

>

>

Reply via email to