[maemo-developers] Not able to install Hildon Test Automation Framework on N900

From: praveen koduru prawin1111 at gmail.com
Date: Wed Apr 7 13:18:22 EEST 2010
Thanks for the quick response Piñeiro.
I tried your 2 steps. Please find the results below.

Step 1:
Nokia-N900-42-11:/home/opt# python
Python 2.5.1 (r251:54863, May 23 2007, 17:32:51)
[GCC 3.4.4 (release) (CodeSourcery ARM 2005q3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from dogtail import tree
Creating logfile at /tmp/dogtail/logs/log_20100407-130759_debug ...
Detecting distribution: Debian (or derived distribution)
Warning: AT-SPI's desktop is visible but it has no children. Are you running
any AT-SPI-aware applications?
>>> tree.root.dump ()
{root}
(I have opened "contacts" and then did tree.root.dump(). but stilll giving
{root} only)

Step 2:
>>> import atspi
works fine; I tried the script you have given. script executed but with no
prints
Nokia-N900-42-11:/home/opt# ./Piñeiro.py
Nokia-N900-42-11:/home/opt#

-Praveen

On Wed, Apr 7, 2010 at 3:14 PM, Piñeiro <apinheiro at igalia.com> wrote:

> From: praveen koduru <prawin1111 at gmail.com>
>
> >  Hi ,
> > I tried the steps suggested in the following link.
> > http://hildon-test-aut.garage.maemo.org/installation.html
>
> This is a really old guide. The target were the Nokia 770/810, not
> sure if works fine on N900.
>
> > Steps I have tried:
> >
> > 1. Installed all .deb packages as pointed by the above link.
> >
> > 2. "arm_for_testing on". executed the command & rebooted
> >
> > 3. Install Dogtail from the above link
> >
> >                cd dogtail; ./setup.py install
> > 4.  Then tested an example application "sniff", which is present in the
> > dogtail.
> >                 - sniff not working
> >                 - It throws error
> >                   ImportError: cannot import name
> checkForA11yInteractively
>
> AFAIK, sniff have never worked.
>
> Have you tried to use directly dogtail? Something like:
>
>  >>> from dogtail import tree
>  >>> tree.root.dump ()
>
>
> > I enabled Accessibility through "gconftool-2 --type bool --set
> > /desktop/gnome/interface/accessibility true"
>
> This is the way to enable the accessibility in the desktop, and it is
> more recently that the package version number used in that link.
>
> So, in this framework, this gconf variable is not used at all, it is
> just based on GTK_MODULES and other custom things.
>
> > But still the same error.
> >
> > I jus tried the following
> >         1. python2.5
> >          2. >>>import pyatspi
> >                    Traceback (most recent call last):
> >                    File "<stdin>", line 1, in <module>
> >                    ImportError: No module named pyatspi
> > I installed python-at-spi_0.6.1-1osso2_armel.deb package from the above
> > link. but still it is showing no module pyatspi.
>
> pyatspi is the last python accessibility bindings. This python-at-spi
> package is about the old python bindings. Try something like:
>
> $python2.5
> >>> import atspi
>
> And if it works, you could a script like this:
>
> #!/usr/bin/env python
> # Return the name of the applications currently registered
>
> import atspi
> desk = atspi.registry.getDesktop(0)
> for i in xrange(desk.getChildCount()):
>    app = desk.getChildAtIndex(i)
>    print "Index: %d" % i
>    try:
>        print "Application name: %s" % app.getName()
>        print "Application elements: %d" % app.getChildCount()
>    except Exception: print "Error getting name or childcount"
>    print
>
> > All I need is to install dogtail and thus Hildon Test Automation
> framework
> > successfully and write some test scripts on N900.
> > any Help will be greatly appreciated.
>
> As I said, have you tried to use directly dogtail instead of use
> Sniff?
>
> BR
>
> ===
> API (apinheiro at igalia.com)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100407/559f1aac/attachment.htm>
More information about the maemo-developers mailing list