Re: grinder script parameter

Gary Mulder <[email protected]> Mon, 20 Apr 2015 14:33:32 +0100
Newsgroups gmane.comp.java.grinder.user
Message-ID <CAKy9zTCPZBhO=dQdPGSzp3FPLRn97Tv-30OgEqpcTZGpGYMy7g@mail.gmail.com>
On 20 April 2015 at 08:44, Gang Yan <[email protected]> wrote:
>
> url0 = 'http://bej301543.cn.oracle.com:7777'
>
> I set grinder.threads=50
>
> Script Should modify:
>>
> 'http://bej301543.cn.oracle.com:' % (7777 + grinder.getThreadNumber() %
50)  ????

url0 =  'http://bej301543.cn.oracle.com:%d' % (7777 +
grinder.getThreadNumber() % numPorts)

The '%d' in the string is required to identify where the port number should
be inserted.

The idea is that you want to map your grinder thread number to the range of
ports you said your app was listening on. So if you have say 5 ports (7777,
7778, 7779, 7780, 7781), numPorts = 5.

Gary

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF

_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use