Re: [Grinder-use] Running Multiple Scripts Concurrently Using Grinder
Distributed load testing framework - Java, Jython, or Clojure scripts.
Brought to you by:
philipa
From: Christine E. <cec...@sa...> - 2015-06-23 23:43:07
|
Hi Ouray, One working example usually goes a long way to help understanding something new. An example would be *very* much appreciated. Thanks again, Chris On Tue, Jun 23, 2015 at 2:58 PM, Ouray Viney <ou...@vi...> wrote: > Hi Christine, > > An approach that you could consider is to have your scripts read this info > from a resource file to allow for easy configuration changes. You could > have the desired virtual user court or threads defined in an external CSV > file. > > You could augment the example of the parallel.py and expand on it a bit. > > An example would be read in the file, create a hash map or python list - > each element being a thread instruction (for lack of a better term). > > In your CSV file, you could have 1 column be the script name followed by > the 2nd column representing the virtual user account. > > While you read in the file if you identify vu=5; that simply means you > need to load up five grinder threads dynamically for the script name > 'sample.py'. > > To run this, you could assign grinder.threads equals to 1 so that the > thread will spawn up the parallel.py. Then, depending on your CSV file > your parallel.py would automatically load up (see Api docs for appropriate > method call) the the required number of threads. > > I prefer this approach to the statically define thread IDs as it resembles > LR's concept of a scenario. > > This approach allows you to define the number of threads and individual > scripts in a CSV file which is easy to edit. > > Let me know, I could proved some simple code samples to help you get a > working sample. > > HTH, > > Ouray Viney > > On Jun 23, 2015, at 5:30 PM, Gary Mulder <fly...@gm...> wrote: > > Hi Christine, > > The filename of the script is usually defined in the Grinder configuration > file. > > Conceptually, all Grinder threads execute the same test program, unlike in > LoadRunner where you assign threads to different test scripts. A simple > Jython solution to this is for each thread to essentially use conditional > logic to execute different code paths as a function of the thread id. > > Regards, > Gary > On 23 Jun 2015 10:15 pm, "Christine Economy" <cec...@sa...> > wrote: > >> Hi Adil, >> >> Thanks for your amazingly quick response - I know now that the Grinder >> network >> does respond! (not all tech networks are that good). >> >> I'm using an environment set-up by someone who is not longer at the >> company. >> I've searched for a parallel.py script in al directories, and nothing >> is/was found. >> Possibly, multi-script runs have not been done in this area.. >> >> Do you have one that has worked for you? How does it relate tho the >> master >> script? I'm hoping you're right when you say it's pretty easy. It IS >> pretty easy >> with Loadrunner and JMeter. >> >> I really appreciate your time and help! >> >> Thanks and regards, >> Chris >> >> >> >> >> On Tue, Jun 23, 2015 at 1:59 PM, Adil qureshi <ad...@gm...> wrote: >> >>> Inside examples go to parallel.py. .I am using the same. .,its quite >>> easy to do that in grinder. .. >>> On 23 Jun 2015 21:55, "Christine Economy" <cec...@sa...> >>> wrote: >>> >>>> Hi Grinder World Members, >>>> >>>> I'm a performance engineer who has used Loadrunner and QTP >>>> for several years, and have used JMeter a few times as well, but >>>> just started using Grinder. I've run some large tests, but have not had >>>> to run multiple scripts concurrently until now, and I'm hoping someone >>>> out >>>> will be kind enough to offer some help/guidance. I have to have this >>>> working >>>> for a super high visibility project in the next one and a half. >>>> >>>> I'm basically looking for an equivalent to Loadrunner's multiple >>>> scripts in a >>>> scenario, or HTTP requests with JMeter. >>>> >>>> I did some homework/Googling before reaching out to you - >>>> and found this helpful link: >>>> >>>> http://osdir.com/ml/java.grinder.user/2004-05/msg00014.html >>>> >>>> Apologies if I'm being dense on this, but I'm not seeing the step by >>>> step >>>> thought process; for example, where/how is the divisor (4 in most cases >>>> in the doc >>>> at the link) is being arrived at. I think just a bit of input from >>>> someone who has done >>>> this will make it clear. >>>> >>>> Also, is anything additional needed along with the master script? >>>> >>>> Thanks very much for your time and help. >>>> >>>> Best regards, >>>> Chris >>>> >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Monitor 25 network devices or servers for free with OpManager! >>>> OpManager is web-based network management software that monitors >>>> network devices and physical & virtual servers, alerts via email & sms >>>> for fault. Monitor 25 devices for free with no restriction. Download now >>>> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o >>>> _______________________________________________ >>>> grinder-use mailing list >>>> gri...@li... >>>> https://lists.sourceforge.net/lists/listinfo/grinder-use >>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> Monitor 25 network devices or servers for free with OpManager! >>> OpManager is web-based network management software that monitors >>> network devices and physical & virtual servers, alerts via email & sms >>> for fault. Monitor 25 devices for free with no restriction. Download now >>> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o >>> _______________________________________________ >>> grinder-use mailing list >>> gri...@li... >>> https://lists.sourceforge.net/lists/listinfo/grinder-use >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Monitor 25 network devices or servers for free with OpManager! >> OpManager is web-based network management software that monitors >> network devices and physical & virtual servers, alerts via email & sms >> for fault. Monitor 25 devices for free with no restriction. Download now >> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o >> _______________________________________________ >> grinder-use mailing list >> gri...@li... >> https://lists.sourceforge.net/lists/listinfo/grinder-use >> >> > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > > _______________________________________________ > grinder-use mailing list > gri...@li... > https://lists.sourceforge.net/lists/listinfo/grinder-use > > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > grinder-use mailing list > gri...@li... > https://lists.sourceforge.net/lists/listinfo/grinder-use > > |