25 Jun 2012 11:58
Re: Agents file store
Hi Phil,
yes, i want to access a file.
My directorys looks like this:
C:\grinder\
--> grinder.properties
C:\grinder\scripts\
--> here are the scripts to execute, extra python modules and the files
to access from the workers threads
So that the agents or the worker threads can find the extra modules, i
had to set the following in grinder.properties
"grinder.jvm.arguments = -Dpython.path=C:/grinder/scripts/"
In the Console i set the distribution directory to C:\grinder\scripts. I
start the Grinder in C:\grinder, so that it can find the properties. But
if i want to open the file in code, it will fail, because it does not
find the file.
If i write
file = open("/scripts/" + filename) or
file = open("./scripts/" + filename) or
file = open(filename)
it will not work.
If i set the abosulte path (open("C:/grinder/scripts/" + filename) ) or
if i move the properties to scripts, start the agent there and call
open(filename), it will work.
(Continue reading)
RSS Feed