[LDTP-Dev] [Bug 574127] New: Source of ambiguity

LDTP (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Mar 4 09:03:55 PST 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=574127

  LDTP | ldtp | Ver: 1.5.0
           Summary: Source of ambiguity
           Product: LDTP
           Version: 1.5.0
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: ldtp
        AssignedTo: ldtp-maint at gnome.bugs
        ReportedBy: msp at lloedy.com
         QAContact: ldtp-dev at lists.freedesktop.org
     GNOME version: Unspecified
   GNOME milestone: Unspecified


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:


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=574127.


More information about the LDTP-dev mailing list