hi yes this is what I mean , but in this case you are making a POST to http://10.14.1.4:8089/presentation/services/Search.svc/ExecuteSearch whereas in your browser trace you specified a GET to http://10.14.1.4:8089/Default.aspx?#SearchTerm=Category%3ACat1_1%20NAMEATT%3ANAMEATT_2000&Id=.&Category=.&OBN=0&view=1?/? which isn't the same request. In addition if you havent placed assertions on all your previous requests , then the problem may be that one of the requests previously failed(but JMeter will only report HTTP errors so you will see this as successful) , and you are only getting the error now. In most cases the problem is that some data is dynamic and the script you recorded isnt valid till it is parameterised by extracting out the dynamic bits from the previous requests
regards deepak On Fri, Nov 20, 2009 at 1:05 PM, Lolina Bharathan < [email protected]> wrote: > POST http://10.14.1.4:8089/presentation/services/Search.svc/ExecuteSearch > > POST data: > {"request":{"__type":"SearchRequest:kalido","PageNum":0,"PageSize":30,"CategoryId":"1-469","SearchTerm":"CAT1_149 > and NAMEATT:NAMEATT_10","OrderByName":false}} > > Cookie Data: > $Version=0; ASP.NET_SessionId=y0fimn45n20itp45zitflh55; $Path=/; > .ASPXAUTH=CB96D404E550B38ED2F33AAB5F84107FE8179BB8444365D3C291064A02EB9A8A9A2B3CA3E4EBCDC54DE2DE0B5A685D4C016806E3BF1F6031C1C3CAAF96E421ACB803E37E44894B5E28A92076863A021A; > $Path=/ > > Request Headers: > Accept-Language: en-us > Content-Length: 159 > Accept-Encoding: gzip, deflate > Referer: > http://10.14.1.4:8089/Default.aspx?#view=1&Id=.&SearchTerm=CAT1_149%20and%20NAMEATT%3ANAMEATT_10*&Category=1---469&OBN=0 > User-Agent<http://10.14.1.4:8089/Default.aspx?#view=1&Id=.&SearchTerm=CAT1_149%20and%20NAMEATT%3ANAMEATT_10*&Category=1---469&OBN=0%0AUser-Agent>: > Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR > 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR > 3.0.4506.2152; .NET CLR 3.5.30729) > Connection: keep-alive > Content-Type: application/json; charset=utf-8 > Accept: */* > UA-CPU: x86 > Pragma: no-cache > > This is the complete request . I have taken from the JMeter results. I am > not sure what exactly you meant..Hope I got u rite. > > > Regards, > Lolina > > > -----Original Message----- > From: Deepak Shetty [mailto:[email protected]] > Sent: Saturday, November 21, 2009 2:06 AM > To: JMeter Users List > Subject: Re: POST Request fails during replay > > Hi > you havent provided the complete request. Where is the url from Jmeter? Are > there cookies? Use a tool , not visual inspection > > regards > deepak > > > On Fri, Nov 20, 2009 at 12:30 PM, Lolina Bharathan < > [email protected]> wrote: > > > 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: <\/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] > > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

