Hi Scott,<br><br>Now its fixed, thanks letting us know :)<br><br>Thanks<br>Nagappan<br><br><div class="gmail_quote">On Fri, Aug 21, 2009 at 12:31 AM, Wang Qi, Scott <span dir="ltr"><<a href="mailto:wangqi.s@gmail.com">wangqi.s@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, Nagappan,<br><br>You are right. I tried to 'txt1'. It works as expected.<br><br>
BTW, it seems the LDTP download service only offer pre-built image for LDTP 1.60. When will we get the 1.7.1 :).<br><br><a href="http://download.opensuse.org/repositories/home:/anagappan/xUbuntu_9.04/i386/ldtp_1.6.0-0ubuntu2_i386.deb" target="_blank">http://download.opensuse.org/repositories/home:/anagappan/xUbuntu_9.04/i386/ldtp_1.6.0-0ubuntu2_i386.deb</a><br>
<br><br>Thanks<br><font color="#888888">Scott Wang</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Aug 20, 2009 at 3:54 AM, Nagappan Alagappan <span dir="ltr"><<a href="mailto:nagappan@gmail.com" target="_blank">nagappan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Wang,<br><br>Can you please give a try with LDTP 1.7.1 ?<br><br>I think, in the new gedit first open tab text is referred with txt1. Could you please try with the same ?<br><br>Thanks<br>Nagappan<br><br><div class="gmail_quote">
<div><div></div><div>
On Tue, Aug 18, 2009 at 7:02 PM, Wang Qi, Scott <span dir="ltr"><<a href="mailto:wangqi.s@gmail.com" target="_blank">wangqi.s@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div>
<span style="font-family: courier new,monospace;">Hi,Nagappan, </span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">I am running ldtp installed from the standard Ubuntu 9.0.4 distributation (on a IA32 box).</span> <span style="font-family: courier new,monospace;">It seems I am having a issue to run a simple script with ldtp.<br>
<br>Here is the script I run:<br><br style="font-family: courier new,monospace;"><span style="color: rgb(0, 0, 153);">In [2]: from ldtp import *</span></span><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);">
<br style="font-family: courier new,monospace; color: rgb(0, 0, 153);"><span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">In [3]: launchapp('gedit')</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);">
<span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">GTK Accessibility Module initialized</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);"><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);">
<span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">In [4]: guiexist('*gedit')</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);"><span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">Out[4]: 1</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);">
<br style="font-family: courier new,monospace; color: rgb(0, 0, 153);"><span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">In [5]: selectmenuitem('*gedit', 'mnuFile;mnuQuit')</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);">
<span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">Out[5]: 1</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);"><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);">
<span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">In [6]: launchapp('gedit')</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);"><span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">GTK Accessibility Module initialized</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);">
<br style="font-family: courier new,monospace; color: rgb(0, 0, 153);"><span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">In [7]: settextvalue('*gedit', 'txt0', 'hello world')</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);">
<br style="font-family: courier new,monospace; color: rgb(0, 0, 153);"><span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">(gedit:27846): Gdk-CRITICAL **: gdk_x11_get_server_time: assertion `GDK_IS_WINDOW (window)' failed</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);">
<span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">Out[7]: 1</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);"><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);">
<span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">In [8]: </span><br style="font-family: courier new,monospace; color: rgb(0, 0, 153);"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"><br>
As a sanity check, I do step (5). It seems LDTP is able to close gedit from menu operation: File->Quit. But in step 7, the settextvalue function failed to set text in the 'txt0' region. I have also included in the email a debug message dumped by a ldtp daemon in another console. It seems in the report (line 11390) that the text is sent successfully to the gedit text control.<br>
<br><br>Thank you<br><br>Scott Wang<br><br>Reference:<br>1) Here is the installation details</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">qwang12@qwang12-desktop:~$ dpkg-query -s ldtp</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Package: ldtp</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Status: install ok installed</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Priority: optional</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Section: devel</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Installed-Size: 440</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Maintainer: Ubuntu MOTU Developers <<a href="mailto:ubuntu-motu@lists.ubuntu.com" target="_blank">ubuntu-motu@lists.ubuntu.com</a>></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Architecture: i386</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Version: 1.5.1-0ubuntu2</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Depends: python (>= 2.4), libatk1.0-0 (>= 1.20.0), libatspi1.0-0 (>= 1.25.92), libbonobo2-0 (>= 2.15.0), libc6 (>= 2.4), libglib2.0-0 (>= 2.12.0), liborbit2 (>= 1:2.14.10), libxml2 (>= 2.6.27), python-pyatspi</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Recommends: python-imaging, python-statgrab</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Description: GNU/Linux Desktop Testing Project (GNU/LDTP)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> GNU/LDTP is aimed at producing high quality test automation framework and</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> cutting-edge tools that can be used to test GNU/Linux Desktop and improve it.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> It uses the "Accessibility" libraries to poke through the application's user</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> interface. The framework has tools to generate "AppMap" by reading through the</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> user interface components of an application. The framework also has tools to</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> record test-cases based on user-selection on the application.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> .</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> GNU/LDTP core framework uses "AppMap" and the recorded "test-cases" to test an</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> application and gives the status of each test-case as output.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Homepage: <a href="http://ldtp.freedesktop.org" target="_blank">http://ldtp.freedesktop.org</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Original-Maintainer: Kartik Mistry <<a href="mailto:kartik@debian.org" target="_blank">kartik@debian.org</a>></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"></span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;">
<br></div></div>_______________________________________________<br>
LDTP-dev mailing list<br>
<a href="mailto:LDTP-dev@lists.freedesktop.org" target="_blank">LDTP-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br>
<br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org" target="_blank">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com" target="_blank">http://nagappanal.blogspot.com</a><br>
</font></blockquote></div><br>
</div></div><br>_______________________________________________<br>
LDTP-dev mailing list<br>
<a href="mailto:LDTP-dev@lists.freedesktop.org">LDTP-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com">http://nagappanal.blogspot.com</a><br>