[maemo-developers] Not able to install Hildon Test Automation Framework on N900
From: praveen koduru prawin1111 at gmail.comDate: Wed Apr 7 15:06:19 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 ]
I have checked atspi is running or not like this >>> import atspi >>> (no errors). Is this the way to check whether it is running or not?? I am trying to get the object of "Calculator" app on N900. I really dont know how to do that. where as on desktop I did like this for opening an Totem application. totem = tree.root.application('totem') MovieMenu=totem.menu('Movie').click() This justed worked on Desktop. Whereas to get the object of "Calculator " App on Maemo. I did this Calc=tree.root.application('/usr/bin/osso_calculator') searching for child of {root}: "/usr/bin/osso_calculator" application (attempt 3) searching for child of {root}: "/usr/bin/osso_calculator" application (attempt 4) ... and the trying went on. So could you please suggest me how to get the object of "Calculator" and click one button with that. Thanks a lot for your help. -Praveen On Wed, Apr 7, 2010 at 4:35 PM, Piñeiro <apinheiro at igalia.com> wrote: > From: praveen koduru <prawin1111 at gmail.com> > > > 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? > > Anyway, please check if at-spi is running. > > >>>> tree.root.dump () > > {root} > > (I have opened "contacts" and then did tree.root.dump(). but stilll > giving > > {root} only) > > As far as I remember arm-for testing just enable the accessibility > support for the applications included in the testing framework. > > What it does is replace the launcher file application, in order to > launch the applications supported with GTK_MODULES=gail:hail:atk-bridge. > > Remember that in maemo there are a maemo-launcher/invoker > application. Applications are loaded using this application. > > I bet that contacts was not included in this framework, as it is a > really recent application. > > You could try to modify by hand the contacts launch file, replacing > /usr/bin/osso-addresbook to something like this: > > #!/bin/sh > unset AF_DEFINES_SOURCED > source /etc/osso-af-init/af-defines.sh > export GTK_MODULES=gail:hail:atk-bridge > exec maemo-summoner /usr/bin/osso-addressbook.launch > > That is what arm-for-testing does (more or less, AFAIK) for the > supported applications. > > Note: probably you should require to reboot the device after that. > > > > > 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# > > It doesn't print anything as no application is registered on at-spi. > > BR > > === > API (apinheiro at igalia.com) > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100407/7d0dc495/attachment.htm>
- 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 ]