• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Issues with distributed JMeter and ${_StringFromFile()} function

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 =85
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 slav=
e
jmeter log file says =85 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 =3D 1.
2007/07/02 09:19:50 INFO - jmeter.engine.StandardJMeterEngine : Continue o=
n
error
2007/07/02 09:19:50 INFO - jmeter.threads.JMeterThread: Thread Thread Grou=
p
1-1 started
2007/07/02 09:19:50 INFO
 
reply
    Bookmark Topic Watch Topic
  • New Topic