Re: [Grinder-use] grinder-use Digest, Vol 75, Issue 12
Distributed load testing framework - Java, Jython, or Clojure scripts.
Brought to you by:
philipa
From: Arun S. <aru...@gm...> - 2012-08-24 13:14:55
|
I dont know how can i debug am not using any IDE tool Am using Command prompt for loading script files Ouray On Fri, Aug 24, 2012 at 6:41 PM, <gri...@li...>wrote: > Send grinder-use mailing list submissions to > gri...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/grinder-use > or, via email, send a message with subject or body 'help' to > gri...@li... > > You can reach the person managing the list at > gri...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of grinder-use digest..." > > > Today's Topics: > > 1. Re: grinder-use Digest, Vol 75, Issue 10 (Ouray Viney) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 24 Aug 2012 09:11:04 -0400 > From: Ouray Viney <ou...@vi...> > Subject: Re: [Grinder-use] grinder-use Digest, Vol 75, Issue 10 > To: grinder-use <gri...@li...> > Message-ID: > < > CAM...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Seriously! I suggest you debug that code. The solution lies in exception > message. > > IMHO, you should read the following: > > http://www.catb.org/esr/faqs/smart-questions.html > > On Fri, Aug 24, 2012 at 8:40 AM, Arun Shankar <aru...@gm... > >wrote: > > > HI Ouray, > > > > Could you help me to fix my issue . Am waiting for your reply eagerly > > > > On Fri, Aug 24, 2012 at 5:49 PM, < > > gri...@li...> wrote: > > > >> Send grinder-use mailing list submissions to > >> gri...@li... > >> > >> To subscribe or unsubscribe via the World Wide Web, visit > >> https://lists.sourceforge.net/lists/listinfo/grinder-use > >> or, via email, send a message with subject or body 'help' to > >> gri...@li... > >> > >> You can reach the person managing the list at > >> gri...@li... > >> > >> When replying, please edit your Subject line so it is more specific > >> than "Re: Contents of grinder-use digest..." > >> > >> > >> Today's Topics: > >> > >> 1. Re: Requesting Information for LoadTesting (Ouray Viney) > >> 2. Re: grinder-use Digest, Vol 75, Issue 8 (Ouray Viney) > >> > >> > >> ---------------------------------------------------------------------- > >> > >> Message: 1 > >> Date: Fri, 24 Aug 2012 08:16:13 -0400 > >> From: Ouray Viney <ou...@vi...> > >> Subject: Re: [Grinder-use] Requesting Information for LoadTesting > >> To: grinder-use <gri...@li...> > >> Message-ID: <2480798295627352575@unknownmsgid> > >> Content-Type: text/plain; charset="iso-8859-1" > >> > >> Have you looked at the website? > >> > >> http://grinder.sourceforge.net/ > >> > >> On 2012-08-24, at 6:16, samavedam bharadwaj < > >> bha...@gm...> > >> wrote: > >> > >> Hi team,**** > >> > >> ** ** > >> > >> Greetings for the day!.**** > >> > >> ** ** > >> > >> We are happy with grinder 3 .We are planning to use grinder for or > >> application load testing purpose.**** > >> > >> ** ** > >> > >> Kindly could you please share any kind of documents/information > regarding > >> below mentioned topics if any.**** > >> > >> ** ** > >> > >> Parameterization.**** > >> > >> Correlation.**** > >> > >> Text check**** > >> > >> Transaction naming**** > >> > >> How may protocols it supports.**** > >> > >> ** ** > >> > >> Should you require any additional information .Please let me know.**** > >> > >> ** ** > >> > >> Your help is much appreciated .Thanking you in anticipation.**** > >> > >> ** ** > >> > >> *Best Regards* > >> > >> Bharadwaj.samavedam**** > >> > >> ** > >> > >> > >> > ------------------------------------------------------------------------------ > >> Live Security Virtual Conference > >> Exclusive live event will cover all the ways today's security and > >> threat landscape has changed and how IT managers can respond. > Discussions > >> will include endpoint security, mobile security and the latest in > malware > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > >> _______________________________________________ > >> grinder-use mailing list > >> gri...@li... > >> https://lists.sourceforge.net/lists/listinfo/grinder-use > >> -------------- next part -------------- > >> An HTML attachment was scrubbed... > >> > >> ------------------------------ > >> > >> Message: 2 > >> Date: Fri, 24 Aug 2012 08:19:25 -0400 > >> From: Ouray Viney <ou...@vi...> > >> Subject: Re: [Grinder-use] grinder-use Digest, Vol 75, Issue 8 > >> To: grinder-use <gri...@li...> > >> Message-ID: <-1020953713287758345@unknownmsgid> > >> Content-Type: text/plain; charset="iso-8859-1" > >> > >> Seriously! I suggest you debug that code. The solution lies in > exception > >> message. > >> > >> IMHO, you should read the following: > >> > >> http://www.catb.org/esr/faqs/smart-questions.html > >> > >> Kind Rgds, > >> > >> Ouray Viney > >> > >> Sent from my iPhone > >> > >> On 2012-08-24, at 6:24, Arun Shankar <aru...@gm...> wrote: > >> > >> Hi Anyone knows the solution for the below error! > >> > >> Error: ('inconsistent dedent', ('C:\\mygrinder\\.\\optisol- > >> 128-file-store\\curre > >> nt\\new_file.py', 247, 2, ' def __init__(self):')) > >> (no code object) at line 0) > >> 8/22/12 8:57:13 PM (agent): finished, waiting for console signal > >> > >> > >> On Fri, Aug 24, 2012 at 3:46 PM, > >> <gri...@li...>wrote: > >> > >> > Send grinder-use mailing list submissions to > >> > gri...@li... > >> > > >> > To subscribe or unsubscribe via the World Wide Web, visit > >> > https://lists.sourceforge.net/lists/listinfo/grinder-use > >> > or, via email, send a message with subject or body 'help' to > >> > gri...@li... > >> > > >> > You can reach the person managing the list at > >> > gri...@li... > >> > > >> > When replying, please edit your Subject line so it is more specific > >> > than "Re: Contents of grinder-use digest..." > >> > > >> > > >> > Today's Topics: > >> > > >> > 1. Re: Using automatic redirects (Philip Aston) > >> > 2. Re: nested request in Java (Philip Aston) > >> > 3. Get Latest Sample through REST API (Marc Holden) > >> > 4. Re: Page grouping in TCPProxy generated script (Philip Aston) > >> > 5. Requesting Information for LoadTesting (samavedam bharadwaj) > >> > > >> > > >> > ---------------------------------------------------------------------- > >> > > >> > Message: 1 > >> > Date: Wed, 22 Aug 2012 19:01:50 +0100 > >> > From: Philip Aston <ph...@ma...> > >> > Subject: Re: [Grinder-use] Using automatic redirects > >> > To: Ouray Viney <ou...@vi...> > >> > Cc: grinder-use <gri...@li...> > >> > Message-ID: <503...@ma...> > >> > Content-Type: text/plain; charset="utf-8" > >> > > >> > Hi Ouray, > >> > > >> > There's no support in the TCPProxy. You could probably achieve this > with > >> > a custom stylesheet that filters out the next request after a 302 > where > >> > the URI matches. > >> > > >> > But its probably just as easy to edit the script. IIRC, there's a > script > >> > comment added to the 302 request which should make it possible to > >> > identify where the edits need to be made. > >> > > >> > - Phil > >> > > >> > > >> > > >> > On 22/08/12 14:47, Ouray Viney wrote: > >> > > Hi Phillip, > >> > > > >> > > Any ideas? > >> > > > >> > > On Fri, Aug 17, 2012 at 2:57 PM, Ouray Viney <ou...@vi... > >> > > <mailto:ou...@vi...>> wrote: > >> > > > >> > > Hi All: > >> > > > >> > > It is nice to have the feature, to allow you to adjust your > >> > > recorded script to handle various scenarios that a script may > >> take. > >> > > > >> > > For those not familiar with this setting, the code looks like > >> this: > >> > > > >> > > connectionDefaults = HTTPPluginControl.getConnectionDefaults() > >> > > connectionDefaults.setFollowRedirects(True) > >> > > > >> > > My question is how does one record a script to NOT > >> > > include statistically recorded redirects? If you simply record > a > >> > > script, then set the automatic redirects to TRUE, then you > script > >> > > will not behave correctly. You are forced to edit the recording > >> > > to remove the 302 redirect requests. Is there a way to force > the > >> > > TCP Proxy to not record the redirects? > >> > > > >> > > Thanks, > >> > > > >> > > -- > >> > > Ouray Viney > >> > > http://www.viney.ca > >> > > > >> > > > >> > > > >> > > > >> > > -- > >> > > Ouray Viney > >> > > http://www.viney.ca > >> > > >> > -------------- next part -------------- > >> > An HTML attachment was scrubbed... > >> > > >> > ------------------------------ > >> > > >> > Message: 2 > >> > Date: Wed, 22 Aug 2012 19:35:16 +0100 > >> > From: Philip Aston <ph...@ma...> > >> > Subject: Re: [Grinder-use] nested request in Java > >> > To: grinder-use <gri...@li...> > >> > Message-ID: <503...@ma...> > >> > Content-Type: text/plain; charset=UTF-8 > >> > > >> > The problem is that you are instrumenting the result of the page1() > >> > function (the HTTPRequest instance you've just used), not the function > >> > itself. > >> > > >> > I think something like the following will work (untested): > >> > > >> > public class MyTest1 { > >> > static { > >> > // Instrument the whole class. > >> > new Test(1, "page1").record(MyTest1); > >> > } > >> > > >> > public void call() throws Exception { > >> > HTTPRequest request = new HTTPRequest(); > >> > request.setUrl("http://www.google.com:80"); > >> > > >> > request.GET("/images/srpr/logo3w.png"); > >> > request.GET("/images/icons/product/chrome-48.png"); > >> > > >> > return request; > >> > } > >> > } > >> > > >> > > >> > This crudely instruments all the methods for a class, so I've put > >> > everything in one call() method. If you want to instrument just a > single > >> > method, you can use selective instrumentation, see > >> > http://grinder.sourceforge.net/g3/instrumentation.html#record-api > >> > > >> > - Phil > >> > > >> > > >> > On 26/07/12 22:31, zhangc82 wrote: > >> > > Can someone shed some lights on how to nested requests in java? I > >> have a > >> > > jython file calls into a java class, basically i wanted to record > the > >> > total > >> > > time of getting both png files. The log file shows the requests had > >> been > >> > > sent, but the response time was not recorded. Any help is > >> appreciated. > >> > > thanks. > >> > > > >> > > --------------------------------- > >> > > 012-07-26 17:17:17,266 INFO local-0 thread-0 [ run-0 ]: > >> > > http://www.google.com/images/srpr/logo3w.png< > >> > http://www.gophoto.it/view.php?i=http://www.gophoto.it/view.php?i=http://www.google.com/images/srpr/logo3w.png > >-> > >> 200 OK, 7007 bytes > >> > > 2012-07-26 17:17:17,376 INFO local-0 thread-0 [ run-0 ]: > >> > > http://www.google.com/images/icons/product/chrome-48.png< > >> > http://www.gophoto.it/view.php?i=http://www.gophoto.it/view.php?i=http://www.google.com/images/icons/product/chrome-48.png > >-> > >> 200 OK, 1834 > >> > > bytes > >> > > 2012-07-26 17:17:17,786 INFO local-0 thread-0: finished 1 run > >> > > 2012-07-26 17:17:17,787 INFO local-0 : elapsed time is 7688 ms > >> > > 2012-07-26 17:17:17,788 INFO local-0 : Final statistics for this > >> > process: > >> > > 2012-07-26 17:17:17,902 INFO local-0 : > >> > > Tests Errors Mean Test Test Time TPS > >> > > Mean Response Response Mean time to Mean time to > Mean > >> > time > >> > > to > >> > > Time (ms) Standard > >> > > response bytes per errors resolve host establish > first > >> > byte > >> > > Deviation > >> > > length second connection > >> > > (ms) > >> > > > >> > > > >> > > Totals 0 0 ? 0.00 > 0.00 > >> > > ? 0.00 0 ? ? ? > >> > > ----------------------------------- > >> > > > >> > > > >> > > Code snippet of jython: basically it just calls into the java > MyTest1 > >> > call > >> > > method > >> > > test_runner = load_class('mytest.MyTest1') > >> > > > >> > > class TestRunner: > >> > > def __init__(self): > >> > > self.runner = test_runner() > >> > > > >> > > def __call__(self): > >> > > self.runner.call() > >> > > > >> > > > >> > > The java code: > >> > > public class MyTest1 { > >> > > > >> > > public void call() throws Exception { > >> > > new Test(1, "page1").record(page1()); > >> > > > >> > > } > >> > > > >> > > public HTTPRequest page1() throws Exception { > >> > > > >> > > HTTPRequest request = new HTTPRequest(); > >> > > request.setUrl("http://www.google.com:80"); > >> > > > >> > > request.GET("/images/srpr/logo3w.png"); > >> > > request.GET("/images/icons/product/chrome-48.png"); > >> > > > >> > > return request; > >> > > } > >> > > } > >> > > > >> > > >> > > >> > > >> > > >> > ------------------------------ > >> > > >> > Message: 3 > >> > Date: Thu, 23 Aug 2012 13:24:12 -0400 > >> > From: Marc Holden <mho...@gm...> > >> > Subject: [Grinder-use] Get Latest Sample through REST API > >> > To: gri...@li... > >> > Message-ID: > >> > < > >> > CAD...@ma...> > >> > Content-Type: text/plain; charset="iso-8859-1" > >> > > >> > Hello, > >> > > >> > Is it possible to the get the statistics for the latest sample through > >> the > >> > 3.10 REST API? Getting the accumulated test statistics of a running > >> test > >> > does not always accurately reflect how the application is performing > >> when > >> > the statistics are requested. > >> > > >> > Thanks, > >> > > >> > -Marc > >> > -------------- next part -------------- > >> > An HTML attachment was scrubbed... > >> > > >> > ------------------------------ > >> > > >> > Message: 4 > >> > Date: Thu, 23 Aug 2012 18:56:11 +0100 > >> > From: Philip Aston <ph...@ma...> > >> > Subject: Re: [Grinder-use] Page grouping in TCPProxy generated script > >> > To: grinder-use <gri...@li...> > >> > Cc: Phil Evans <ph...@ev...> > >> > Message-ID: <503...@ma...> > >> > Content-Type: text/plain; charset="utf-8" > >> > > >> > On 26/07/12 23:04, Phil Evans wrote: > >> > > > >> > > Hi > >> > > > >> > > What determines how requests are grouped into pages in a generated > >> > script? > >> > > > >> > > And is there any (simple) control over this. > >> > > > >> > > >> > It's hard coded: > >> > > >> > // Crude but effective pagination heuristics. > >> > if (!request.getUri().getExtends().equals(lastBaseURI) || > >> > request.isSetBody() || > >> > > >> > !(m_resourcePathPattern.matcher(request.getUri().getUnparsed()) > >> > .matches() || > >> > lastResponseWasRedirect) || > >> > currentPage == null) { > >> > currentPage = httpRecording.addNewPage(); > >> > } > >> > > >> > > >> > A new page is started for a new request if: > >> > > >> > * The base part of the URI is different (server, port, protocol) > >> > * The request has a body (i.e., its a POST or PUT) > >> > * The request does not follow a redirect and does not appear to be a > >> > resource (.css, .gif, .ico, .jpg, .jpeg, .js, .png) > >> > > >> > > >> > > I thought they might have been concurrent requests, but that doesn?t > >> > > appear to be so. > >> > > > >> > > >> > > On that note, does Grinder support concurrent requests? > >> > > > >> > > >> > If you're talking about simulating a web browsers use of concurrent > >> > connections to retrieve resources for a given page, no - > >> > http://grinder.sourceforge.net/faq.html#browserVsgrinder > >> > > >> > The TCPProxy filter for HTTP flattens information received from all > >> > concurrent connections into an ordered sequence, and then into a > script > >> > that can be replayed by a single worker thread. Of course, its easy to > >> > run multiple worker threads, but that's not the same as concurrent > >> > requests for the same page. > >> > > >> > - Phil > >> > -------------- next part -------------- > >> > An HTML attachment was scrubbed... > >> > > >> > ------------------------------ > >> > > >> > Message: 5 > >> > Date: Fri, 24 Aug 2012 15:45:59 +0530 > >> > From: samavedam bharadwaj <bha...@gm...> > >> > Subject: [Grinder-use] Requesting Information for LoadTesting > >> > To: gri...@li... > >> > Message-ID: > >> > < > >> > CAC...@ma...> > >> > Content-Type: text/plain; charset="iso-8859-1" > >> > > >> > Hi team,**** > >> > > >> > ** ** > >> > > >> > Greetings for the day!.**** > >> > > >> > ** ** > >> > > >> > We are happy with grinder 3 .We are planning to use grinder for or > >> > application load testing purpose.**** > >> > > >> > ** ** > >> > > >> > Kindly could you please share any kind of documents/information > >> regarding > >> > below mentioned topics if any.**** > >> > > >> > ** ** > >> > > >> > Parameterization.**** > >> > > >> > Correlation.**** > >> > > >> > Text check**** > >> > > >> > Transaction naming**** > >> > > >> > How may protocols it supports.**** > >> > > >> > ** ** > >> > > >> > Should you require any additional information .Please let me know.**** > >> > > >> > ** ** > >> > > >> > Your help is much appreciated .Thanking you in anticipation.**** > >> > > >> > ** ** > >> > > >> > *Best Regards* > >> > > >> > Bharadwaj.samavedam**** > >> > > >> > ** > >> > -------------- next part -------------- > >> > An HTML attachment was scrubbed... > >> > > >> > ------------------------------ > >> > > >> > > >> > > >> > ------------------------------------------------------------------------------ > >> > Live Security Virtual Conference > >> > Exclusive live event will cover all the ways today's security and > >> > threat landscape has changed and how IT managers can respond. > >> Discussions > >> > will include endpoint security, mobile security and the latest in > >> malware > >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > > >> > ------------------------------ > >> > > >> > _______________________________________________ > >> > grinder-use mailing list > >> > gri...@li... > >> > https://lists.sourceforge.net/lists/listinfo/grinder-use > >> > > >> > > >> > End of grinder-use Digest, Vol 75, Issue 8 > >> > ****************************************** > >> > > >> > >> > >> > >> -- > >> Thanks & Regards > >> > >> *Arun Shankar K* > >> > >> > >> > ------------------------------------------------------------------------------ > >> Live Security Virtual Conference > >> Exclusive live event will cover all the ways today's security and > >> threat landscape has changed and how IT managers can respond. > Discussions > >> will include endpoint security, mobile security and the latest in > malware > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > >> _______________________________________________ > >> grinder-use mailing list > >> gri...@li... > >> https://lists.sourceforge.net/lists/listinfo/grinder-use > >> -------------- next part -------------- > >> An HTML attachment was scrubbed... > >> > >> ------------------------------ > >> > >> > >> > ------------------------------------------------------------------------------ > >> Live Security Virtual Conference > >> Exclusive live event will cover all the ways today's security and > >> threat landscape has changed and how IT managers can respond. > Discussions > >> will include endpoint security, mobile security and the latest in > malware > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > >> ------------------------------ > >> > >> _______________________________________________ > >> grinder-use mailing list > >> gri...@li... > >> https://lists.sourceforge.net/lists/listinfo/grinder-use > >> > >> > >> End of grinder-use Digest, Vol 75, Issue 10 > >> ******************************************* > >> > > > > > > > > -- > > Thanks & Regards > > > > *Arun Shankar K* > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > grinder-use mailing list > > gri...@li... > > https://lists.sourceforge.net/lists/listinfo/grinder-use > > > > > > > -- > Ouray Viney > http://www.viney.ca > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > ------------------------------ > > _______________________________________________ > grinder-use mailing list > gri...@li... > https://lists.sourceforge.net/lists/listinfo/grinder-use > > > End of grinder-use Digest, Vol 75, Issue 12 > ******************************************* > -- Thanks & Regards *Arun Shankar K* |