jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Create custom log files
Date Tue, 10 Jan 2012 13:33:24 GMT
On 10 January 2012 12:52, waseemfa <fazal.waseem@gmail.com> wrote:
> Sebb,
>
> My thread group had the first sampler as BSF sampler where i initialize the
> variable and then have two HTTP Request sampler followed by a Result
> sampler.  I use the filename as "${test}.jtl" but it creates a jtl file as
> ${test}.jtl
>
> Not sure where the problem is.

"The variable has to be defined at the start of the test"
That was ambiguous, it means:

At the start of the test, the variable already needs to be set.

So use a Test Plan variable or Property.

> This is how my BSF sampler code looks like
>
> ${__setProperty(test,"C:\test\Result")};

That sets the property too late.

> OUT.println("Value is " + ${__property(test)});
>
> vars.put("test",${__property(test)});
>
>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Create-custom-log-files-tp5067691p5134008.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

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


Mime
View raw message