Logo QF-Test

Finding valuable answers
in the Mailing List Archive.

 

Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2016 up to now | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2007


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

Re: [QF-Test] Commented lines still effective for the QFT Jython compiler


  • Subject: Re: [QF-Test] Commented lines still effective for the QFT Jython compiler
  • From: "Robert Lahmer, QFS support" <support@?.de>
  • Date: Mon, 21 May 2007 12:57:09 +0200


Hello Hans,

you shouldn't use the syntax

 $(qftest-variable)

in your Jython scripts, because these variables are expanded before the
script is passed to the interpreter. If a variable is not known to QF-Test
(as it seems to be in your example), you will get an error. To be on the
safe side always use

 rc.lookup("qftest-variable").

Best regards,
   Robert


--On Montag, Mai 21, 2007 02:40:44 -0700 Hans Schwaebli
<hans_schwaebli@?.com> wrote:

QFT seems to ignore commented lines in a SUT script sometimes:

  table = rc.getComponent("$(componentId)")
rowCount = table.getRowCount()
# if rowcount < 0:
# firstItemIndex = 0
# lastItemIndex = rowCount - 1
# rc.setLocal("rowCount", rowcount)
# rc.setLocal("firstItemIndex", "0")
# rc.setLocal("lastItemIndex", lastItemIndex)
# print $(rowCount)
# print $(firstItemIndex)
# print $(lastItemIndex)

  I have to remove the lines starting with "#" so that QFT doesn't "see"
them. Why?


---------------------------------
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's
on, when.



--
Robert Lahmer
Quality First Software GmbH                http://www.qfs.de
Tulpenstr. 41                           Tel: +49 8171 919874
DE-82538 Geretsried                     Fax: +49 8171 919876
GF: Gregor Schmid, Karlheinz Kellerer     HRB München 140833




Videos Downloads Documentation Buy Free Trial