Re: grinder script parameter

Gang Yan <[email protected]> Mon, 20 Apr 2015 00:44:02 -0700 (PDT)
Newsgroups gmane.comp.java.grinder.user
Message-ID <674137cf-a4d1-4194-9c64-ea5254ab5840@default>
 

Thank you reply!

 

In my script:  

 

headers0= \

  [ NVPair('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'),

    NVPair('Referer', 'http://bej301543.cn.oracle.com:7777/'), ]

 

headers1= \

  [ NVPair('Accept', 'text/css,*/*;q=0.1'),

    NVPair('Referer', 'http://bej301543.cn.oracle.com:7777/'), ]

 

headers2= \

  [ NVPair('Accept', 'image/png,image/*;q=0.8,*/*;q=0.5'),

    NVPair('Referer', 'http://bej301543.cn.oracle.com:7777/'), ]

 

url0 = 'http://bej301543.cn.oracle.com:7777'

 

I set grinder.threads=50

 

Script Should modify:

 

'http://bej301543.cn.oracle.com:' % (7777 + grinder.getThreadNumber() % 50)  ????

 

If need to replaced all url in this script ?

 

 

Thank!

 

 

 

 

From: Gary Mulder [mailto:[email protected]] 
Sent: 2015年4月18日 0:49
To: grinder-use
Subject: Re: [Grinder-use] grinder script parameter

 

On 17 April 2015 at 17:14, Gang Yan <HYPERLINK "mailto:[email protected]" \[email protected]> wrote:

Hi all

 

I use grinder test http stress test. URL: http://192.168.0.254:7001/app

 

My server Deploy multi app:   7001,7002,7003,7004…….7010.

 

How to parameter web port  in script ?

 

'http://192.168.0.254:%d/app' % (7001 + grinder.getThreadNumber() % 10) 

 

 https://mailtrack.io/trace/mail/b10d5d68a31a77e82b0647584119a4caabdb7afa.png

------------------------------------------------------------------------------
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