jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: user parameters in external filepaths
Date Tue, 24 Apr 2012 17:15:28 GMT
On 24 April 2012 17:58, Peri Stracchino <peri.stracchino@york.ac.uk> wrote:
> I'v just figured the problem out!!!!!!!!!!!
> I specified the path thus
> C:\Jmeter2.5\jakarta-jmeter-2.5.1\bin\${ID}.txt
> The penny suddenly dropped. The path separator was being interpreted as an
> escape character, and the dollar sign was then being treated literally
> rather than as indicating the start of a variable to expand
> So I tried escaping the last path separator like so:
> C:\Jmeter2.5\jakarta-jmeter-2.5.1\bin\\${ID}.txt
>
> and all was well :-), the variable now expands and my files are uploaded

Rats! I should have noticed that; another user had a similar issue a
few months back.
It's unfortunate that the escape character is the same as the Windows
path separator.

BTW, you can use / instead of \ on Windows; Java converts as necessary.
Also, JMeter can use relative path names.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message