[LDTP-Dev] [Bug 555368] New: cannot get objectlist in next same window.

LDTP (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Oct 7 02:49:11 PDT 2008


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=555368

  LDTP | ldtp | Ver: 1.3.0
           Summary: cannot get objectlist in next same window.
           Product: LDTP
           Version: 1.3.0
          Platform: Other
        OS/Version: Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ldtp
        AssignedTo: ldtp-maint at gnome.bugs
        ReportedBy: xygwf at hotmail.com
         QAContact: ldtp-dev at lists.freedesktop.org
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Precondition:
launch an application twice which does not have lable on it.

Steps to Reproduce:
>>> from ldtp import * 
>>> getwindowlist()    
125 ()
[u'frmwindow1', u'frm0', u'frm1']
>>> getobjectlist('frm0')
126 ('frm0')
[u'flr3', u'flr4', u'ukn0', u'ukn1', u'ukn2', u'flr0', u'frm0', u'flr1',
u'flr2']
>>> getobjectlist('frm1') 
126 ('frm1')
getresponse: Window does not exist
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/ldtp.py", line 2934, in getobjectlist
    raise LdtpExecutionError ('getobjectlist failed: ' + _responseStatus [1])
ldtplib.ldtplibutils.LdtpExecutionError: u'getobjectlist failed: Window does
not exist'
>>> getobjectlist('frm#1')
126 ('frm#1')
getresponse: Window does not exist
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/ldtp.py", line 2934, in getobjectlist
    raise LdtpExecutionError ('getobjectlist failed: ' + _responseStatus [1])
ldtplib.ldtplibutils.LdtpExecutionError: u'getobjectlist failed: Window does
not exist'
>>> getobjectlist('frm#0') 
126 ('frm#0')
getresponse: Window does not exist
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/ldtp.py", line 2934, in getobjectlist
    raise LdtpExecutionError ('getobjectlist failed: ' + _responseStatus [1])
ldtplib.ldtplibutils.LdtpExecutionError: u'getobjectlist failed: Window does
not exist'

Expected Result:
Get objectlist for later one.

Test Notes:
1. frm0 is the previous one that did not have label (xxx_set_name), frm1 is the
later one.
2. searching widget by index seems just works within one application, isn't it?
3. From the log by ldtp, it search frm1 on next application which it reported
it's a frm0.
4. Here I have one question, why did ldtp not search hash table first instead
of searching all existed applications which it have got by getwindowlist
previously?


-- 
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=555368.


More information about the LDTP-dev mailing list