JMeter must always be started in the bin directory, otherwise it cannot find the jars it needs.
So if you can put your test plans and data files in the same place relative to bin, that should work on all systems. S. On 24/11/05, Eric Du <[EMAIL PROTECTED]> wrote: > No. If you put both test scripts and data files in "bin", it will work for > both local and remote testing. In this specific case, jmeter-server and test > scripts are in the same folder. > > In one of our project, we have many test scripts and need multiple level > directory structure, in this case, the test scripts are not in the "bin" > folder where jmeter-server sits. My solution is: > 1.pass the base directory of the test scripts to scripts through property > 2.use "/" as path seperator in scripts for the relative path of the data > files from the base directory. Jmeter will take care of the difference > between windows and unix platform. > > -Eric > > On 11/24/05, Christensen, Alan <[EMAIL PROTECTED]> wrote: > > > > Are you saying that if the test script is located in "bin" and the data > > file is also in "bin", that you cannot make this work both locally and > > remotely without making the entire directory structure the same? This > > would seem to make it very difficult to test locally with a PC and > > remotely with a Unix machine as the directory structures aren't going to > > be the same. I'm also curious how to handle the difference between "/" > > in the path in a Unix machine and "\" in the path on a PC. How does > > Jmeter deal with this? > > > > -----Original Message----- > > From: Eric Du [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, November 23, 2005 7:41 PM > > To: JMeter Users List > > Subject: Re: How does remote test method deal with file locations? > > > > In non-remote testing, the files referred by the test script is relative > > to the test script, but in remote tesing, it is relative to the folder > > which jmeter-server locates. Thus, if you want a test script to run > > under both modes without any modification, you need use the same > > directory structure and absolute path. > > > > I tried with version 2.1.1. > > > > -Eric > > > > On 11/24/05, sebb <[EMAIL PROTECTED]> wrote: > > > > > > On 23/11/05, Christensen, Alan <[EMAIL PROTECTED]> wrote: > > > > > > > > If you are using remote test machines, do the files that you use in > > > > your script need to be on the remote machine already, and if so, do > > > > you need > > > > > > Yes, apart from the test script. > > > > > > > to use relative addressing to file locations to ensure that the > > > > files are found? > > > > > > Yes, unless the remote machine has the same directory structure. > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

