The scripts are not running in parallel, group 1 runs and then stops running and then group 2 starts running. Using the example scripts from building a new project I added a print statement with the script name:
def run(self):
r = random.uniform(1, 2)
time.sleep(r)
print "script 1"
self.custom_timers['Example_Timer'] = r
then did the same but changed print "script 1" to print "script 2" and saved this as v_user2.py. in the config I have 2 groups:
[global]
run_time = 30
rampup = 0
results_ts_interval = 10
progress_bar = on
console_logging = off
xml_report = off
[user_group-1]
threads = 3
script = v_user.py
[user_group-2]
threads = 3
script = v_user2.py
the output when I run the scripts as follows:
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 2
script 2
script 2
user_groups: 2
threads: 6
A you can see Script is only ran 3 times and that is after script 1 stops. This is running on Windows 7 and can not figure out why they will not run in parallel.
On Monday, October 21, 2013 11:05:44 AM UTC-5,
odell_w...@hotmail.com wrote:
When running the example, the groups run 1 after the other. Should they not be running at the same time? In the csv file it show that group 1 runs the first 59 transactions ad group 2 ran the last 3 transactions. How do I get them to run at the same time?