After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 412965 - The setcontext worked incomplete.
The setcontext worked incomplete.
Status: RESOLVED NOTABUG
Product: LDTP
Classification: Other
Component: ldtp
0.8.x
Other Linux
: Normal normal
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2007-02-28 06:13 UTC by lavi
Modified: 2008-02-23 04:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description lavi 2007-02-28 06:13:44 UTC
Step to Reproduced:
>>> ================================ RESTART ================================
>>> import ldtp
>>> ldtp.guiexist('frmUnsavedDocument1-gedit')
1
>>> ldtp.click('frmUnsavedDocument1-gedit', 'btnNew')
1
>>> ldtp.setcontext('Unsaved Document 1 - gedit', 'Unsaved Document 2 - gedit')
1
>>> ldtp.click('frmUnsavedDocument1-gedit', 'btnNew')
1
>>> ldtp.setcontext('Unsaved Document 2 - gedit', 'Unsaved Document 3 - gedit')
1
>>> ldtp.click('frmUnsavedDocument1-gedit', 'btnNew')

Traceback (most recent call last):
  • File "<pyshell#52>", line 1 in <module>
    ldtp.click('frmUnsavedDocument1-gedit', 'btnNew')
  • File "/usr/local/lib/python2.6/site-packages/ldtp.py", line 1010 in click
    raise LdtpExecutionError (str (msg))
LdtpExecutionError: "u'click failed: Window does not exist'"
>>> ldtp.setcontext('Unsaved Document 1 - gedit', 'Unsaved Document 3 - gedit')
1
>>> ldtp.click('frmUnsavedDocument1-gedit', 'btnNew')
1
>>> 


Actual Result:
See the output info above

Expected Result:
Third click command should be OK and fourth should not be OK.
Comment 1 Nagappan Alagappan 2008-01-17 23:14:56 UTC
setcontext works based on the window information available in our appmap table. So, as of now it has, just the first window (Unsaved Document 1 - gedit) is available. So whenever you need to use (in this scenario), you need to use 'Unsaved Document 1 - gedit' as first argument and the 'Unsaved Document 3 - gedit' as second argument. It has been designed that way.
Comment 2 lavi 2008-02-23 04:45:25 UTC
okay.