Mailing list - Entries of 2006

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

[qftestJUI] SUT script failure when using qftest 1.99.0

  • Subject: [qftestJUI] SUT script failure when using qftest 1.99.0
  • From: "Adrian Chamberlain" <Adrian.Chamberlain@?.com>
  • Date: Wed, 18 Oct 2006 16:38:59 +0100

Adrian Chamberlain
Ericsson Communications

The following SUT script works  fine with qftestJUI 1.08.6 (and earlier

However, line 5 ( i.e. rc.getComponent(....) ) results in a script failure
exception (see further down for details) when using the latest qftest

Could you throw any light onto what might be the cause of this problem ?

Thank you in advance for your help
Kind Regards

 1: from javax.swing import JTree
 2: from com.marconi.on.gui.standard import MarconiTree
 3: from com.marconi.on.gui.adapter import TreeNodeAdapter
 5: tree, row = rc.getComponent(rc.lookup("treeComId") +
rc.lookup("indexFormat") + rc.lookup("nodePath"))
 6: if not tree == None:
 7:     if isinstance(tree, MarconiTree):
 8:         treePath = tree.getPathForRow(row)
 9:         treeNode = treePath.getLastPathComponent()
10:         if treeNode.isSelected() == true:
11:             raise ReturnException("true")

Where parameter  'indexFormat' = @
              parameter  'nodePath' = path of tree node  i.e.
              parameter  'treeComId' is component id for JTree object

Script failure:

The script failed with the following message:
Traceback (innermost last):
Traceback (innermost last):
  File "<string>", line 1 , in ?
  File "/opt/qftest/qftest-1.99.0/jython/Lib/", line 84, in
  File "/opt/qftest/qftest-1.99.0/jython/Lib/", line 360, in
  File "/home/nmcman/.qftest/", line 5, in ?
  File "/opt/qftest/qftest-1.99.0/jython/Lib/", line 143, in
AttributeError: getHelper

Videos Downloads Documentation Buy Free Trial