[LDTP-Dev] settextvalue of LDTP 1.5.1 on Ubuntu system.

Nagappan Alagappan nagappan at gmail.com
Wed Aug 19 12:54:27 PDT 2009


Hello Wang,

Can you please give a try with LDTP 1.7.1 ?

I think, in the new gedit first open tab text is referred with txt1. Could
you please try with the same ?

Thanks
Nagappan

On Tue, Aug 18, 2009 at 7:02 PM, Wang Qi, Scott <wangqi.s at gmail.com> wrote:

> Hi,Nagappan,
>
> I am running ldtp installed from the standard Ubuntu 9.0.4 distributation
> (on a IA32 box). It seems I am having a issue to run a simple script with
> ldtp.
>
> Here is the script I run:
>
> In [2]: from ldtp import *
>
> In [3]: launchapp('gedit')
> GTK Accessibility Module initialized
>
> In [4]: guiexist('*gedit')
> Out[4]: 1
>
> In [5]: selectmenuitem('*gedit', 'mnuFile;mnuQuit')
> Out[5]: 1
>
> In [6]: launchapp('gedit')
> GTK Accessibility Module initialized
>
> In [7]: settextvalue('*gedit', 'txt0', 'hello world')
>
> (gedit:27846): Gdk-CRITICAL **: gdk_x11_get_server_time: assertion
> `GDK_IS_WINDOW (window)' failed
> Out[7]: 1
>
> In [8]:
>
>
> 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.
>
>
> Thank you
>
> Scott Wang
>
> Reference:
> 1) Here is the installation details
>
> qwang12 at qwang12-desktop:~$ dpkg-query -s ldtp
> Package: ldtp
> Status: install ok installed
> Priority: optional
> Section: devel
> Installed-Size: 440
> Maintainer: Ubuntu MOTU Developers <ubuntu-motu at lists.ubuntu.com>
> Architecture: i386
> Version: 1.5.1-0ubuntu2
> 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
> Recommends: python-imaging, python-statgrab
> Description: GNU/Linux Desktop Testing Project (GNU/LDTP)
>  GNU/LDTP is aimed at producing high quality test automation framework and
>  cutting-edge tools that can be used to test GNU/Linux Desktop and improve
> it.
>  It uses the "Accessibility" libraries to poke through the application's
> user
>  interface. The framework has tools to generate "AppMap" by reading through
> the
>  user interface components of an application. The framework also has tools
> to
>  record test-cases based on user-selection on the application.
>  .
>  GNU/LDTP core framework uses "AppMap" and the recorded "test-cases" to
> test an
>  application and gives the status of each test-case as output.
> Homepage: http://ldtp.freedesktop.org
> Original-Maintainer: Kartik Mistry <kartik at debian.org>
>
>
>
> _______________________________________________
> LDTP-dev mailing list
> LDTP-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
>
>


-- 
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/ldtp-dev/attachments/20090819/36499aaa/attachment.htm 


More information about the LDTP-dev mailing list