jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajit Wagh" <aji...@gmail.com>
Subject Issues with distributed JMeter and ${_StringFromFile()} function
Date Mon, 02 Jul 2007 16:27:04 GMT
Hello Guys,

I have setup Jmeter in distributed mode.
In mater jmeter test plan - the file contining url is provided using
function ${_StringFromFile(FILE)}.
Location for FILE is JMeters bin directory.

On local machine JMeter could read FILE and request ads mentioned in FILE,
but on remote machine I could see file not found error. This error was
resolved by copying FILE in slave Jmeters \bin directory.
But on some remote machines...  I could see file not found error in
jmeter.log even though FILE was available in jmeters \bin directory - I
further dig down the issue and I found that.

After further digging the issue - I found
1.    Master jmeter location is C:\JmeterServer
2.    The slave jmeters where problem encountered -  the Jmeter location is
D:\JMeterServer

If I change Jmeter slave location to C:\JmeterServer the problem solved …
but I need to do it on more than 20 machines... and some machines are unix
machines and its impossible to arrange C:\JmeterServer path in unix.

Another solution I tried is hardcode path in ${_StringFromFile(FILE)}
function
e.g. ${_StringFromFile(C:\\FILE)} and ${_StringFromFile(C:/FILE)}, but slave
jmeter log file says … C:\\FILE not found.

Can anybody help me in solving this problem?

JMeter.log file error is :---

INFO  - jmeter.engine.StandardJMeterEngine: Running the test!
2007/07/02 09:19:49 INFO  - jmeter.functions.StringFromFile:
setParameters(C:\\FILE)
2007/07/02 09:19:49 INFO  - jmeter.functions.StringFromFile: Thread-119
opening file C:\FILE
2007/07/02 09:19:49 ERROR - jmeter.functions.StringFromFile: openFile()
error: java.io.FileNotFoundException: C:\FILE (The system cannot find the
file specified)
2007/07/02 09:19:49 INFO  -
jmeter.samplers.RemoteListenerWrapper: Test Started on 10.25.16.181
2007/07/02 09:19:49 INFO  - jmeter.samplers.RemoteListenerWrapper: Test
Started on 10.25.16.181
2007/07/02 09:19:49 INFO  - jmeter.samplers.RemoteListenerWrapper: Test
Started on 10.25.16.181
2007/07/02 09:19:50 INFO  - jmeter.engine.StandardJMeterEngine: Starting 10
threads for group Thread Group. Ramp up = 1.
2007/07/02 09:19:50 INFO  - jmeter.engine.StandardJMeterEngine : Continue on
error
2007/07/02 09:19:50 INFO  - jmeter.threads.JMeterThread: Thread Thread Group
1-1 started
2007/07/02 09:19:50 INFO

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message