Mailingliste - Einträge 2006


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

Re: [qftestJUI] SUT script failure when using qftest 1.99.0


  • Subject: Re: [qftestJUI] SUT script failure when using qftest 1.99.0
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 18 Oct 2006 21:31:49 +0200

Hi Adrian,

that's a genuine QF-Test bug. Found and fixed for the next release.
Thanks for reporting it.

If you need a temporary workaoround, change qfclient.py:line143 to

            if engine.getElementHelper().a(com, "javax.swing.table.JTableHeader"):

Best regards,
    Greg

"Adrian Chamberlain" <Adrian.Chamberlain@?.com> writes:

> 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

-- 
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 Dokumentation Kaufen Gratis Testen