Re: [Grinder-use] HTTP request may not recordinf every element
Distributed load testing framework - Java, Jython, or Clojure scripts.
Brought to you by:
philipa
|
From: Suvendu_Mohapatra <Suv...@sa...> - 2009-03-22 14:19:02
|
Hi,
Sorry for not mentioning the reason for not working.
The http request i.e http://esupport.satyam.com/suv which I am sending is not a valid request. So the srver should return response code 404. But by writing the code it is not showing any error in the result tab. But it works if I mention resuli.statusCode != 200
Now my question is that since response code 404 is not a successful response, how it is showing successful result in result tab of console.
With Regards,
Suvendu
-----Original Message-----
From: Philip Aston [mailto:phi...@Or...]
Sent: Sunday, March 22, 2009 7:00 PM
To: grinder-use
Subject: Re: [Grinder-use] HTTP request may not recordinf every element
Suvendu_Mohapatra wrote:
> Hi,
>
> Thank you very much for your reply.
>
> For point number 1, I have recorded the script by using same browser for both the tools and have followed all the instruction as given in the link http://grinder.sourceforge.net/g3/tcpproxy.html#BrowserPreparation.
>
> For point number 2, till now I have not got any difference between these two tools except the browser header contents. I was just asking the difference due to what reason.
>
The Grinder only records a subset of the HTTP headers. This is arguably
a bug:
http://sourceforge.net/tracker2/?func=detail&aid=1739635&group_id=18598&atid=368598
> In addition to this I have tried following code( http://grinder.sourceforge.net/g3/tutorial-perks.html ) which is not working for me.
>
> test1 = Test(1, "Request resource")
> request1 = test1.wrap(HTTPRequest())
> class TestRunner:
> def page1(self):
> result = request1.GET("http://esupport.satyam.com/suv")
> return result
>
> def __call__(self):
> grinder.statistics.delayReports = 1
> result = self.page1()
>
> if string.find(result.getText(), "SUCCESS") < 1:
> grinder.statistics.forLastTest.setSuccess(0)
> grinder.statistics.delayReports = 0
>
> else:
> print "Test of script fail"
>
> What is the wrong I have done??
>
I don't know - you haven't explained why you think it is not working.
The logic of your script is:
If the response body doesn't contain "SUCCESS", mark the test as failed.
Otherwise print a message that the script failed.
Seems you lose either way?
- Phil
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
grinder-use mailing list
gri...@li...
https://lists.sourceforge.net/lists/listinfo/grinder-use
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
|