There is no way currently to get the file name in all circumstances.

In GUI mode one can use:

GuiPackage.*getInstance*().getTestPlanFile();

A work-round is to use a shell script to provide both the file name and
define a property, e.g.

jmeter -Jfilename=xyz.jmx -t xyz.jmx  etc.


On 19/09/2007, Andrei Jucan <[EMAIL PROTECTED]> wrote:
>
> Yes, i know, but i want to use this in my testplan, so for example to
> create a folder from beanshell with name like current test plan name ....
> :-?...
>
> Thank you again,
> AJ
>
> ----- Original Message ----
> From: sebb <[EMAIL PROTECTED]>
> To: JMeter Users List <[email protected]>
> Sent: Wednesday, September 19, 2007 2:42:42 AM
> Subject: Re: beanshell: how to find out the name of current running .jmx
> testplan(file name or test plan name)
>
> It's already logged ...
>
> On 17/09/2007, Andrei Jucan <[EMAIL PROTECTED]> wrote:
> > Hi all,
> > how can i find out the name of current loaded test plan file name from
> beanshell? (e.g. log.info("Current running test plan file name is : " +
> my_var));
> > my_var = ....get? or how? :)
> >
> > Thanks in advance,
> > AJ
> >
> >
> >
> >
>
> >      
> > ____________________________________________________________________________________
> > Luggage? GPS? Comic books?
> > Check out fitting gifts for grads at Yahoo! Search
> > http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Tonight's top picks. What will you watch tonight? Preview the hottest
> shows on Yahoo! TV.
> http://tv.yahoo.com/
>

Reply via email to