On 28/04/06, amelaao <[EMAIL PROTECTED]> wrote:
Well, it didn't do what I wanted it to. If I comment out user.dir in properties file, then user.dir is "C:\Program Files\jakarta-jmeter-2.1.1\bin".
Yes, because JMeter currently starts in the bin directory. [Probably user.dir should not be set in jmeter.properties ...]
It worked for me before because user.,dir was set to the directory where my test scripts are, but in production we are not going to have this property set on our servers, because we are going to have many directories with different scripts. These scripts are executed from Ant, but also manually on tester's local machines. If it was run only from Ant I could have this easily taken care of, but since the same script testers will download and execute on their machines I have to figure out different way of solving this. I probably need to rephrase the question - I need the directory of the current test script that is being run.
I've updated the JMeter Windows scripts (.bat and .cmd) in the current 2.1 branch to allow JMeter to be run from anywhere, not just the bin directory. [Sorry, this does not yet apply to the jmeter server script] If you drop a jmx file on jmeter-n.cmd, it will now change the default directory to the same as that containing the JMX file. So if you always put the data files in the same place relative to the JMX files, there should be no need to know the current directory. Or is there something else you need the current location for? You could always create your own script file to create a property containg %CD% [I assume you are running Win2K, not Win9x or ME] S. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

