GNOME Bugzilla – Bug 573108
LDTP throws an exception even though it actually performed the action.
Last modified: 2009-03-03 19:18:31 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):
+ Trace 212888
raise LdtpExecutionError (_responseStatus [1])
Expected results: No messages on stderr. Does this happen every time? Most of the time, but not always. Other information:
You have to use: click(dlgAnjutaPreferences, 'btnClose') waittillguinotexist (dlgAnjutaPreferences) # <======= HERE #Quiting Anjuta... selectmenuitem(window_title, 'mnuFile;mnuQuit') Could you please try with this ?
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.
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.
Its because of this bug #561631 :)
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