Hi Javier,

On Thu, Feb 4, 2010 at 1:35 AM, Javier Collado <javier.coll...@canonical.com
> wrote:

> Hello Nagappan,
>
> I'm doing fine, thanks. Still working on GUI automation.
>
> I tried the GTK_MODULES trick you suggested, but to no avail. At first,
> there
> are no errors, is just that the ldtp script freezes and there's nothing
> else to
> do. However, if you wait long enough you get an 'Invalid response packet'
> error
> (please have a look at ldtp.out).
>
> As I said before the same set of subprocess.Popen invocations work
> correctly if
> the calling script doesn't make use of GTK so there's an interaction
> problem there.
>
> Please see the two files attached as an example:
> - gedit.py: just opens gedit and closes it
> - launcher.py: Launches gedit.py either from console or from gtk. For the
> gtk
> version, please remember to use the '-g' option and to press the 'Launch
> LDTP'
> button to call the gedit.py script.
>
> As you will see when you call 'launcher.py' everything works correctly, but
> when
> using 'launcher.py -g' it doesn't (ldtp.out). Please let me know if you
> have any
> other advice.
>

Will try these today at work.

>
> By the way, I'm using Ubuntu Karmic and LDTP 1.7.1.
>

At work, we are using LDTPv2 in Ubuntu 9.04 without any issues, can you
please give a try with it ?

Thanks
Nagappan

>
> Best regards,
>     Javier
>
> Nagappan Alagappan wrote:
> > Hi Javier,
> >
> > After long time :) How are you doing ?
> >
> > On Wed, Feb 3, 2010 at 3:36 AM, Javier Collado <
> javier.coll...@canonical.com
> >> wrote:
> >
> >> Hello,
> >>
> >> I'm trying to launch an LDTP script from a gtk application written in
> >> python
> >> using subprocess standard module in Ubuntu Karmic.
> >>
> >
> > I think you have unset some environment variables. I think this might
> help
> > http://cgit.freedesktop.org/ldtp/ldtp/tree/python/ldtpeditor#n44
> >
> > Hope the above info helps
> >
> >> I've read that there are some problems with accessibility when threads
> are
> >> being
> >> used. However, my understanding is that I shouldn't have any problem if
> a
> >> launch
> >> a new process. Is that correct?
> >>
> >> According to my experience launching exactly the same command from a
> >> console, or
> >> from a text based application works, but from a gtk application doesn't.
> >> Any
> >> advice would appreciated. Thanks.
> >>
> >
> > Any error message ?
> >
> > Thanks
> > Nagappan
> >
> >> Best regards,
> >>     Javier
> >>
> >>
> >> _______________________________________________
> >> gnome-accessibility-list mailing list
> >> gnome-accessibility-list@gnome.org
> >> http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list
> >>
> >>
> >
> >
>
> GTK Accessibility Module initialized
>
> ** (gedit.py:4606): WARNING **: Trying to register gtype 'WnckWindowState'
> as flags when in fact it is of type 'GEnum'
>
> ** (gedit.py:4606): WARNING **: Trying to register gtype
> 'WnckWindowActions' as flags when in fact it is of type 'GEnum'
>
> ** (gedit.py:4606): WARNING **: Trying to register gtype
> 'WnckWindowMoveResizeMask' as flags when in fact it is of type 'GEnum'
> Traceback (most recent call last):
>  File "gedit.py", line 5, in <module>
>    ldtp.click('frm*-gedit', 'mnuQuit')
>  File "/usr/lib/pymodules/python2.6/ldtp.py", line 569, in click
>    raise LdtpExecutionError (_responseStatus [1])
> ldtplib.ldtplibutils.LdtpExecutionError: 'Invalid response packet'
>
>


-- 
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
_______________________________________________
gnome-accessibility-list mailing list
gnome-accessibility-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list

Reply via email to