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 573108 - LDTP throws an exception even though it actually performed the action.
LDTP throws an exception even though it actually performed the action.
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: ldtp
1.5.0
Other All
: Normal normal
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2009-02-25 12:51 UTC by Sandro Millien
Modified: 2009-03-03 19:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This makes anjuta close (crash) though it shouldn't. (470 bytes, text/x-python)
2009-03-02 11:39 UTC, Sandro Millien
Details

Description Sandro Millien 2009-02-25 12:51:04 UTC
Please describe the problem:
The script given in "Steps to reproduce" should end up quietly and peacefully.
However it ends up in an exception, even though all requested actions were indeed performed.
It ends up in an exception most of the time, but not always.

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

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

launchapp(program_name, env=1)
if not waittillguiexist(window_title):
	msg = 'Window does not exist'
	log(msg, error)
	raise LdtpExecutionError(msg)
#print window_title #debug	
selectmenuitem(window_title, 'mnuEdit;mnuPreferences')
wait(1) #In case the messages are not yet received

uncheck(dlgAnjutaPreferences, 'chkDonotloadlastsessiononstartup')
check(dlgAnjutaPreferences, 'chkDonotloadlastsessiononstartup')
uncheck(dlgAnjutaPreferences, 'chkDonotloadlastprojectandfilesonstartup')
check(dlgAnjutaPreferences, 'chkDonotloadlastprojectandfilesonstartup')
click(dlgAnjutaPreferences, 'btnClose')

#Quiting Anjuta...
selectmenuitem(window_title, 'mnuFile;mnuQuit')

Actual results:
GTK Accessibility Module initialized
Bonobo accessibility support initialized

(anjuta:8476): Gtk-CRITICAL **: gtk_button_leave: assertion `GTK_IS_BUTTON (button)' failed
Traceback (most recent call last):
  • File "<stdin>", line 27 in <module>
  • File "/usr/lib/python2.5/site-packages/ldtp.py", line 641 in selectmenuitem
    raise LdtpExecutionError (_responseStatus [1])
ldtplib.ldtplibutils.LdtpExecutionError: u'Select menu item failed'

Expected results:
No messages on stderr.

Does this happen every time?
Most of the time, but not always.

Other information:
Comment 1 Nagappan Alagappan 2009-02-25 23:30:02 UTC
You have to use:

click(dlgAnjutaPreferences, 'btnClose')
waittillguinotexist (dlgAnjutaPreferences) # <======= HERE

#Quiting Anjuta...
selectmenuitem(window_title, 'mnuFile;mnuQuit')

Could you please try with this ?
Comment 2 Sandro Millien 2009-03-02 11:39:25 UTC
Created attachment 129844 [details]
This makes anjuta close (crash) though it shouldn't.

This script makes anjuta crash (most of the time but not always).
Observe:
When the application accerciser is running, this script never makes anjuta crash.
Comment 3 Sandro Millien 2009-03-02 11:43:30 UTC
I must reopen this bug because :
* I observed failures even with a "wait(30)", more than 30 is unacceptable.
* The testcase makes anjuta actually crash and not close.
(anjuta:4965): Gtk-CRITICAL **: gtk_button_leave: assertion `GTK_IS_BUTTON (button)' failed
* The failure comes from the "click(dlgAnjutaPreferences, 'btnClose')".
I attach a testcase (dnlllsnlp3.py ) to demonstrate this.
*Scripts never fails when accerciser is running.
Comment 4 Nagappan Alagappan 2009-03-02 13:41:47 UTC
Its because of this bug #561631 :)
Comment 5 Sandro Millien 2009-03-03 19:18:31 UTC
Ok, I upgraded to the newest gail and atk in Ubuntu jaunty, and the issue disappeared. For me this bug is solved, so I am closing it.

Thanks guys,
Sandro