[prev in list] [next in list] [prev in thread] [next in thread]
List: grinder-use
Subject: [Grinder-use] can't make parallel script work
From: Eliseo Arias <jarias () cait ! org>
Date: 2007-07-30 21:24:59
Message-ID: 46AE572B.9040005 () cait ! org
[Download RAW message or body]
hi there
i've searched high and low in the mailings list, the FAQ, the docs, and
even in the wide web, yet i cannot make my parallel script work. im
pulling my hair now, can someone help me?
here's my script, it's called parallel-run.py (and yes, it's based on
the example from the grinder script gallery)
parallel-run.py
---------------
from net.grinder.script.Grinder import grinder
scripts = ["script1", "script2", "script3", "script4"]
# Ensure modules are initialised in the process thread.
for script in scripts: exec("import %s" % script)
def createTestRunner(script):
exec("x = %s.TestRunner()" % script)
return x
class TestRunner:
def __init__(self):
script = scripts[grinder.threadID % len(scripts)]
self.testRunner = createTestRunner(script)
# This method is called for every run.
def __call__(self):
self.testRunner()
grinder.properties
------------------
#
# Example grinder.properties
#
grinder.processes=1
grinder.threads=50
grinder.runs=5
grinder.useConsole=false
grinder.logDirectory=C:\grinder\logs
grinder.numberOfOldLogs=0
grinder.script=C:\grinder\projects\GED-i\parallel-run.py
script1=C:\grinder\projects\GED-i\gedi-W-localhost-p1.py
script2=C:\grinder\projects\GED-i\gedi-W-localhost-p2.py
script3=C:\grinder\projects\GED-i\gedi-W-localhost-p3.py
script4=C:\grinder\projects\GED-i\gedi-TT-localhost.py
#grinder.jvm.arguments=-ms300m -mx512m
startAgent.cmd
----------------
call setGrinderEnv.cmd
%JAVA_HOME%\bin\java -cp %CLASSPATH% net.grinder.Grinder %GRINDERPROPERTIES%
setGrinderEnv.cmd
-------------------
set GRINDERPATH=C:\grinder
set ENGINE=grinder-3.0-beta33
set JAVA_HOME=C:\java\j2sdk1.4.2_09
set GRINDERPROPERTIES=%GRINDERPATH%\etc\grinder.properties
set
CLASSPATH=%GRINDERPATH%\engine\%ENGINE%\lib\grinder.jar;%GRINDERPATH%\engine\%ENGINE%\lib\jython.jar;
when i execute startAgent.cmd it i get this error message:
7/30/07 4:13:01 PM (agent): worker ELISEO-DELL-0 started
7/30/07 4:13:02 PM (process ELISEO-DELL-0): Error running worker process
(Import
Error: no module named script1
File "<string>", line 1, in ?
File "C:\grinder\projects\GED-i\parallel-run.py", line 9, in ?)
7/30/07 4:13:02 PM (agent): finished
this is what i have tried so far, unsuccessfully:
1) removing the read-only attribute in C:\grinder\lib\cachedir &
C:\grinder\engine\grinder-3.0-beta33\lib
2) removing the extension from the script filenames (e.g.
script1=C:\grinder\projects\GED-i\gedi-W-localhost-p1)
3) using grinder.script with different filenames as mentioned here:
http://www.nabble.com/Multiple-scripts-in-grinder.properties--tf196639.html#a548759
(e.g. grinder.script=C:\grinder\projects\GED-i\gedi-W-localhost-p1
grinder.script=C:\grinder\projects\GED-i\gedi-W-localhost-p2, and so on
[tried with no extension and with .py])
4) removing the path from the script values, leaving just the name,
after placing the scripts in C:\grinder\bin (e.g.
script1=gedi-W-localhost-p1.py
script2=gedi-W-localhost-p2.py)
im using grinder 3 beta 33, jvm v1.4.2_09 on windows xp sp2. does anyone
know what am i missing? any help will be appreciated, thanks
-E
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
grinder-use mailing list
grinder-use@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic