Hi Kornelis:

> 1. File paths are relative to the JMeter\bin directory 
I think the file paths are relative to the current directory rather than
to Jmeter\bin. 

So when I run JMeter - in Cygwin/Windows - from whatever current
directory I am in, as in the following:
        ../support/jakarta-jmeter-2.1.1/bin/jmeter  -t j.jmx -l jj.log
-n      

...the jj.log file is written to the current directory. 

Another idea: use Cygwin to simulate UNIX on windows. 


> 2. Javascript in the file name is not processed, so I can't enter 
> "${__P(user.dir)}\foo.bar" as a file name, if I do I get a new
directory 
> under my bin directory called "${__P(user.dir)}" :-/

I was having a look at just this right now... while this is true for the
filename field in the 'View Results Tree' listener, you can use a JMeter
variable (eg: 'debug_directory/${__P(my_test_id)' ) in the Filename
prefix for 'Save Responses To File' post-processor. The example above
saves files like this:
        debug_directory/xyz1.xml
        debug_directory/xyz2.xml
        debug_directory/xyz3.xml

However, there does not seem a way to correlate these responses to log
entries -- ie. to actual samplers.

Sincerely,
Sonam Chauhan
-- 
Corporate Express Australia Ltd.
Phone: +61-2-9335-0725, Email: [EMAIL PROTECTED]

-----Original Message-----
From: Kornelis Sietsma [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 6 April 2006 12:57 PM
To: JMeter Users List
Subject: javascript in file names? Or changing default directory?

Hi all,

I'm trying to write data using a Simple Data Writer, the basic 
functionality works but I have two problems:
1. File paths are relative to the JMeter\bin directory, not the 
"user.dir" setting or any other configurable setting I can find
2. Javascript in the file name is not processed, so I can't enter 
"${__P(user.dir)}\foo.bar" as a file name, if I do I get a new directory

under my bin directory called "${__P(user.dir)}" :-/

Does anyone know a way around this?  I'm trying to write tests that I 
can use on both a Windows and a Unix system so I don't want to use 
absolute paths, and I'd prefer not to have my log files written to the 
bin directory - especially if more than one user is running the same 
test on the same machine!

- Korny

-- 
Kornelis Sietsma e-mail: korny at my surname dot com


---------------------------------------------------------------------
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]

Reply via email to