The fact that the property function id not being replaced by its value means that the
function is not being recognised.
This also happens if a non-existent variable is used. (Functions and variables are
treated much the same in JMeter).
There are various possibilities:
The function is not present in JMeter (but we know it works elsewhere)
The function name is misspelt (ditto)
JMeter is not processing variables or functions in that particular field for some
reason.
Might be worth trying with a variable instead of the function, but I suspect it would
give the same result.
If it did work, it would be a work-round.
It looks like a bug (or perhaps a feature) - anyone for Bugzilla?
S.
----- Original Message -----
From: "Lee Peterson" <[EMAIL PROTECTED]>
To: "JMeter Users List" <[EMAIL PROTECTED]>
Sent: Thursday, March 18, 2004 8:53 PM
Subject: RE: Placing __property() in a Filename field doesn't work
Hi again,
One mistake in the note, and one info omission.
The JRE parameter is given like :
-DoutputDir=MYOUTPUTDIR
not with the -J as shown below. Also, the result
is that the filenames running the Test Plan yields
look (literally) like the following.
${__property(outputDir)}wdprf001I.jtl
Thanks again.
Lee
> -----Original Message-----
> From: Lee Peterson [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 18, 2004 3:46 PM
> To: [EMAIL PROTECTED]
> Subject: Placing __property() in a Filename field doesn't work
>
>
> Hi all.
>
> I hoped to parameterize the location of output files from my Test
> Plan(s). I'm using non-GUI invocation. On a command line, I
> pass in a
> parameter to the JRE :
>
> -JoutputDir=MYOUTPUTDIR
>
> and in an Assertion Results Listener 'Filename' field I have, e.g. :
>
> ${__property(outputDir)}\AssertionListenerFileName.jtl
>
> Should this work? The documentation says the property() function
> provides :
>
> "values that can populate fields of any Sampler or other
> configuration
> element in a test tree".
>
> and I'm using it successfully in several other areas of the test plan.
>
> When I provide a non-variable file locus in the Filename
> field, a file
> is written as expected. I have JMeter configured to output
> XML rather
> than the default CSV, if that makes any difference.
>
> Any help is appreciated.
>
> Thanks.
>
>
> Lee Peterson
> SAS Institute, Inc.
>
> SAS ... The Power to Know
>
> ---------------------------------------------------------------------
> 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]