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
Beeston
Nottingham
UK

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

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

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

Thank you in advance for your help
Kind Regards
Adrian


 1: from javax.swing import JTree
 2: from com.marconi.on.gui.standard import MarconiTree
 3: from com.marconi.on.gui.adapter import TreeNodeAdapter
 4:
 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.
/Network/BPS.1
              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/qfclient.py", line 84, in
runscript
  File "/opt/qftest/qftest-1.99.0/jython/Lib/qfcommon.py", line 360, in
runscript
  File "/home/nmcman/.qftest/_script12088.py", line 5, in ?
  File "/opt/qftest/qftest-1.99.0/jython/Lib/qfclient.py", line 143, in
getComponent
AttributeError: getHelper




Videos Downloads Documentation Buy Free Trial