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 574127 - Source of ambiguity
Source of ambiguity
Status: RESOLVED WONTFIX
Product: LDTP
Classification: Other
Component: ldtp
1.5.0
Other All
: Normal minor
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2009-03-04 17:04 UTC by Sandro Millien
Modified: 2018-09-11 19:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sandro Millien 2009-03-04 17:04:23 UTC
Please describe the problem:
Using the command ldtp.selectmenuitem('frm*Anjuta*', 'mnuNew') , I am able to select the menuitem 'File->New'.
This should not be possible, because it constitutes a 'source of ambiguity' and ambiguity sources makes programs weak, and complex. Complex to write, complex to maintain. Prone to failures in cases of environmental changes.

Also the menuitem 'File->New' is not accessible to the user without first having selected menu 'File'.
In doing so, LDTP is doing something the user couldn't have possibly done.

Steps to reproduce:
#!/usr/bin/env python
from ldtp import *

program_name = 'anjuta'
window_title = 'frm*Anjuta*'

appundertest(program_name)
launchapp(program_name)
waittillguiexist(window_title)
selectmenuitem(window_title, 'mnuNew')

Actual results:
File->New is selected.

Expected results:
LDTP should throw an exception saying that the path to the "objet" is either inexistent or not fully qualified.

Does this happen every time?
Yes.

Other information:
Comment 1 André Klapper 2018-09-11 19:53:18 UTC
LDTP has moved to Github. If the problem reported in this GNOME Bugzilla ticket still exists in a recent LDTP version, please feel free to report the issue at 
  https://github.com/ldtp/ldtp2/issues

Thanks for your understanding and we apologize for the inconvenience!