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 402353 - Remap does not work fine with 2 * wildcard.
Remap does not work fine with 2 * wildcard.
Status: VERIFIED FIXED
Product: LDTP
Classification: Other
Component: ldtp
unspecified
Other Linux
: Normal normal
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2007-01-30 05:38 UTC by lavi
Modified: 2007-02-27 07:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description lavi 2007-01-30 05:38:05 UTC
Step to reproduce:
1. Open gedit, pick the Open... menu-item.
2. ldtp.getobjectinfo('dlg*OpenFile*', 'cboAllFiles*')
3. select 'All Text Files' to change the content of All File combobox.
4. ldtp.getobjectinfo('dlg*OpenFile*', 'cboAllText*')

Actual Result:
  Got error msg: Unable to get the handle of component


Expected Result:
  Do a remap action then returns the valid info for this combox
Comment 1 Nagappan Alagappan 2007-01-30 12:43:56 UTC
Object cboAllText (as mentioned in step 4) does not exist in 'Open dialog'. Maybe provide some other steps ? And reopen this bug ?
Comment 2 lavi 2007-02-01 00:23:58 UTC
Step to reproduce:
1. Open gedit, pick the Edit | Preferences ... menu-item.
2. Roll to 'Font & Color' pagetable.
3. ldtp.getobjectinfo('dlggedit*', 'lblMonosapce*') # To get the label of 'Editor Font' button, it return "Monosapce".
4. Change any font name by click above button.
5. -->
  a. ldtp.getobjectinfo('dlggedit*', 'lblMonosapce*')
  b. ldtp.getobjectinfo('dlggedit*', 'lblChangedFont') 

Actual Result:
 a. # It returned old label
 b. # Got 'Unable to get component handle' error.

Expected Result:
Either a or b will take the refracted changing of label for returning.
Comment 3 lavi 2007-02-09 04:26:26 UTC
It seems did not fix! here the process of verification(I'm sure ldtp by was new by your upgrade package:)-->

Type "copyright", "credits" or "license()" for more information.

    ****************************************************************
    Personal firewall software may warn about the connection IDLE
    makes to its subprocess using this computer's internal loopback
    interface.  This connection is not visible on any external
    interface and no data is sent to or received from the Internet.
    ****************************************************************
    
IDLE 2.6a0      ==== No Subprocess ====
>>> import ldtp
>>> ldtp.getobjectproperty('dlggeditPreferences', 'lblNorasi', 'label')
'Norasi'
>>> print 'Now I change the font by hand'
Now I change the font by hand
>>> print 'To get the label now again after changed'
To get the label now again after changed
>>> ldtp.getobjectproperty('dlggeditPreferences', 'lblMonospace', 'label')
Traceback (most recent call last):
  • File "<pyshell#4>", line 1 in <module>
    ldtp.getobjectproperty('dlggeditPreferences', 'lblMonospace', 'label')
  • File "/usr/local/lib/python2.6/site-packages/ldtp.py", line 3465 in getobjectproperty
    raise LdtpExecutionError (str (msg))
LdtpExecutionError: "u'getobjectproperty failed: Unable to get component handle'"
>>> print 'Error? not fixed. okay, try another'
Error? not fixed. okay, try another
>>> ldtp.getobjectproperty('dlggeditPreferences', 'lblNorasi', 'label')
Traceback (most recent call last):
  File "<pyshell#6>", line 1, in <module>
    ldtp.getobjectproperty('dlggeditPreferences', 'lblNorasi', 'label')
  File "/usr/local/lib/python2.6/site-packages/ldtp.py", line 3465, in getobjectproperty
    raise LdtpExecutionError (str (msg))
LdtpExecutionError: "u'getobjectproperty failed: Unable to get component handle'"
>>> print 'uh....'
uh....
Comment 4 lavi 2007-02-09 06:08:04 UTC
Very tnx for your fixed.