[LDTP-Dev] LDTP 1.7.1 on Ubuntu 8.10?
Nagappan A
nalagappan at vmware.com
Fri Dec 4 17:01:32 PST 2009
Hi Scott,
I remember now, in VMware, we manually applied this patch
https://bugzilla.gnome.org/show_bug.cgi?id=561631 to GTK/GAIL system in
Ubuntu 8.10. You may need to apply this and test it. We just copied
libgail.so. Get GTK source package from Ubuntu, apply respective patches
in the downloaded folder and then at end apply the patch from this bug.
The patch may not apply cleanly, you may need to manually apply, I think.
On 9.04 with LDTPv2, we applied this patch
https://bugs.launchpad.net/ubuntu/+source/pygtk/+bug/363245 and just
copied _gtk.so to respective pygtk folder. Same as above, get pygtk
source from Ubuntu 9.04 branch, apply this patch and just compile, copy
_gtk.so by replacing existing file.
In first case logout / login is required.
Thanks
Nagappan
Wang Qi, Scott wrote:
> Hi Nagappan,
>
> I installed LDTP 1.7.1 (below URL) on Ubuntu 8.10 .
>
> http://download.opensuse.org/repositories/home:/anagappan/xUbuntu_8.10/
>
> I tried to run the below scripts on U8.10 after installation. I always
> found a exception after runing the smoke_ldtp() after the first round.
> Is the LDTP 1.7.1 tested intensively on U8.10?
>
> Thanks
> Scott
>
> ~$ python ldtp_smoke_with_gedit.py
> i is 0
> GTK Accessibility Module initialized
> i is 1
> GTK Accessibility Module initialized
>
> (gedit:16481): Gtk-CRITICAL **: gtk_button_leave: assertion
> `GTK_IS_BUTTON (button)' failed
> Traceback (most recent call last):
> File "ldtp_smoke_with_gedit.py", line 30, in <module>
> smoke_ldtp()
> File "ldtp_smoke_with_gedit.py", line 20, in smoke_ldtp
> settextvalue(WNAME, 'txt1', 'hello world')
> File "/var/lib/python-support/python2.5/ldtp.py", line 858, in
> settextvalue
> raise LdtpExecutionError (_responseStatus [1])
> ldtplib.ldtplibutils.LdtpExecutionError: u'Window does not exist'
>
>
>
>
>
>
> # Below is the content for ldtp_smoke_with_gedit.py
> # This script will simply test the installation of LDTP and all
> # necessary components on a newly installed system.
> # 1) Close all all instances of gedit before calling this script
> # 2) This scripts works on Ubuntu 9.0.4.
>
> from ldtp import *
>
> # Sometimes, '*gedit*' does not works.
> WNAME = '*gedit'
>
> def smoke_ldtp():
>
> launchapp('gedit')
> waittillguiexist(WNAME, guiTimeOut=3)
>
> # On Ubuntu 9.0.4, the text area is named as 'txt1'.
> # It could be 'txt0' or other value on other platform.
> # Please use the inspection tool such as "accerciser"
> # to check out.
> settextvalue(WNAME, 'txt1', 'hello world')
>
> selectmenuitem(WNAME, 'mnuFile;mnuQuit')
>
> waittillguiexist('dlgQuestion')
>
> click('dlgQuestion', 'btnClosewithoutSaving')
>
> for i in xrange(10):
> print "i is %d" %i
> smoke_ldtp()
>
>
--
Linux Desktop Testing Project - http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
More information about the LDTP-dev
mailing list