On 10 January 2012 12:52, waseemfa <[email protected]> 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: [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