First, we use POSIX path conventions (e.g., '/' instead of '\' - which works even on Windows).
Second, in our scripts, we use 'relative' paths (e.g., './path/to/file') instead of fully qualified path (/path/to/file - the '.' makes all the difference). Third, in our 'user.properties' file (in the JMeter './bin' folder), we add this (Windows style): includecontroller.prefix=X:/Tests/JMeter/controllers/ Or (Unix style): includecontroller.prefix=/mnt/Tests/JMeter/controllers/ This tells JMeter where to start looking for included controllers. You also might be able to configure some variables, and use those (I haven't tried this) in your path names... -- Robin D. Wilson Sr. Director of Web Development KingsIsle Entertainment, Inc. VOICE: 512-777-1861 www.KingsIsle.com -----Original Message----- From: Marcelo Jara [mailto:marceloj...@hotmail.com] Sent: Friday, January 25, 2013 12:24 PM To: user@jmeter.apache.org Subject: Using Jmeter in heterogeneous environment This may be a unique situation. I currently develop my test plans on my desktop which is running Microsoft Windows. The load agents that are responsible for the stress tests, however, are on Linux servers. Is there a way Jmeter can detect which OS it's running on? The one case where this is needed is when defining the location of the data files. From my desktop, I define the path to a network share (e.g. \\netshare\jmeter\data). On the Linux agents, we mounted that network share to /mnt. So when the test plan runs on the Linux agent, it needs to get the data files from /mnt/jmeter/data. For now, I've made the data file path a parameter that I can pass in to the test plan, but was hoping a I can define both paths and have Jmeter decide which one to use depending on which OS it's running on. One way is to use an OS sampler in the setUp thread and try to perform a Windows only command (dir ?) and see if it returns and error. I can then assume we're on a Linux server. Thanks, Marcelo --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org