Mailing list - Entries of 2006


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [qftestJUI] probably a silly newbie question


  • Subject: Re: [qftestJUI] probably a silly newbie question
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 15 Jun 2006 20:53:24 +0200

Hello Venkat,

this questions not silly at all. The problem is that all qftestJUI
variables are currently expanded lazily, i.e. ${qftestJUI:suite.file}
is not expanded in the procedure call, but only during lookup in the
procedure, so you always get common.qft.

We have plans for offering immediate expansion as an alternative for
each individual variable in a procedure call in some future version,
but for now you'll have to resort to the following workaround:

Use a setVariable node to set the local variable tmp to the value
${qftestJUI:suite.file}. This will force expansion in the local suite.
Then call the procedure with $(tmp) as the value instead.

Unfortunately, this still means you have to touch all the places where
you call that procedure. There's no way to find out within a script
which suites are on the calling stack.

Best regards,
    Greg

Venkatesh Madurai-Subramanian <vmadurai@?.com> writes:

>    Greetings!
>    Looking at the jython code at
>    http://www.qfs.de/archive/qftest-list/2004/msg00420.html , I have
>    included this in a "common.qft" so that  mytest.qft  and many other
>    files will call procedures from this file and run the jython code in
>    common.qft.
>    What i would like to do is have the filename dynamic so that the
>    filename for the .png file is mytest.qft and so on. If i use
>    ${qftestJUI:suite.file} for the filename in common.qft, then this
>    variable always expands as common.qft and not mytest.qft.
>    I realise that within mytest.qft, i could pass in a variable to
>    common.qft but then i will have to update all my qft files that call
>    common.qft
>    Is there anyway to access the filename directly please, something
>    similar to ${qftestJUI:suite.file} ?
>    Regards and many thanks
>    Venkat

-- 
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876


Videos Downloads Documentation Buy Free Trial