[maemo-developers] Not able to install Hildon Test Automation Framework on N900
From: Piñeiro apinheiro at igalia.comDate: Wed Apr 7 12:44:15 EEST 2010
- Previous message: Not able to install Hildon Test Automation Framework on N900
- Next message: Not able to install Hildon Test Automation Framework on N900
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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)
- Previous message: Not able to install Hildon Test Automation Framework on N900
- Next message: Not able to install Hildon Test Automation Framework on N900
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]