Re: Not able to install Hildon Test Automation Framework on N900

2010-04-08 Thread praveen koduru
Hi Piñeiro,

at-spi is running.
Nokia-N900-42-11:/# ps aux | grep at-spi
 1795 root 13832 R/usr/lib/at-spi/at-spi-registryd
 2458 root  2088 Sgrep at-spi
I am able to run some applications on N900. But I am able to run only with
dogtail.rawinput functions.
Does it supports Object based refernce to the applications?.

Example. I have tried with Filemanager. I have launched the filemanager with
following command
GTK_MODULES=gail:hail:atk-bridge ossofilemanager

It launched filemanager and I am able to see Nokia N900 folder in that.
and i tried tree.root.dump() and i have got
 tree.root.dump()
{root}
 Node roleName='application' name='ossofilemanager' description=''
  Node roleName='frame' name='File manager' description=''
   Node roleName='filler' name='' description=''
Node roleName='filler' name='' description=''
 Node roleName='push button' name='' description='' text=''
  press
  release
  click
  Node roleName='label' name='' description='' text=''
  Node roleName='label' name='' description='' text=''
 Node roleName='label' name='' description='' text=''
Node roleName='panel' name='' description=''
 Node roleName='application' name='.' description=''
But I am not able to click the Nokia N900 folder. I am not able to click
any object in the appliation. Please help

-Praveen




On Wed, Apr 7, 2010 at 7:25 PM, Piñeiro apinhe...@igalia.com wrote:

 From: praveen koduru prawin1...@gmail.com

  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??

 No, I mean something more simple:

 ps aux | grep at-spi

  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.

 As I told you before, arm-for-testing on doesn't enable a11y for all
 applications. Take into account that this link is for a automatic
 testing framework, so it only include some applications.

 In order to load the a11y modules, GTK_MODULES need to be set to
 GTK_MODULES=gail:hail:atk-bridge.

 arm-for-testing on change the launcher of the supported applications
 in order to be sure that GTK_MODULES has the correct values.

  So could you please suggest me how to get the object of Calculator and
  click one button with that.

 You could try the same suggestion I made in the previous mail related
 with the contacts application. Try to change the calculator launcher,
 in order to use the summoner and have the envvar with the correct
 value:

  #!/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

 In the same way, you could create a simple gtk application, without
 maemo-launcher, and then try to execute it by hand in this way:

 $GTK_MODULES=gail:hail:atk-bridge ./my-gtk-application

  Thanks a lot for your help.

 You are welcome, sorry for not be enough clear in my explanations, and
 thanks to test it. I have Try if all a11y pieces works on n900 in my
 TODO list for a long time.

  -Praveen

 BR

 ===
 API (apinhe...@igalia.com)

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Not able to install Hildon Test Automation Framework on N900

2010-04-08 Thread Piñeiro
From: praveen koduru prawin1...@gmail.com

 at-spi is running.
 Nokia-N900-42-11:/# ps aux | grep at-spi
  1795 root 13832 R/usr/lib/at-spi/at-spi-registryd
  2458 root  2088 Sgrep at-spi
 I am able to run some applications on N900. But I am able to run only with
 dogtail.rawinput functions.
 Does it supports Object based refernce to the applications?.

Yes. You could test it with basic gtk applications (gtk-buttons, some
entries). You could try creating one by yourself.

 Example. I have tried with Filemanager. I have launched the filemanager with
 following command
 GTK_MODULES=gail:hail:atk-bridge ossofilemanager
 
 It launched filemanager and I am able to see Nokia N900 folder in that.
 and i tried tree.root.dump() and i have got
 tree.root.dump()
 {root}
  Node roleName='application' name='ossofilemanager' description=''
   Node roleName='frame' name='File manager' description=''
Node roleName='filler' name='' description=''
 Node roleName='filler' name='' description=''
  Node roleName='push button' name='' description='' text=''
   press
   release
   click
   Node roleName='label' name='' description='' text=''
   Node roleName='label' name='' description='' text=''
  Node roleName='label' name='' description='' text=''
 Node roleName='panel' name='' description=''
  Node roleName='application' name='.' description=''
 But I am not able to click the Nokia N900 folder. I am not able to click
 any object in the appliation. Please help

No idea.

But as I said before, the packages used on that link are really old. 2
years as minimum.

Several changes, included on gail and hail were made since them, so
probably only some of the widgets used on the filemanager are not
exposed. You could try to install recent versions of these packages.

Anyway, take into account that I didn't review in detail the
filemanager.

BR

===
API (apinhe...@igalia.com)
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Not able to install Hildon Test Automation Framework on N900

2010-04-08 Thread Kees Jongenburger
Hello Praveen

On Wed, Apr 7, 2010 at 11:11 AM, praveen koduru prawin1...@gmail.com wrote:
 Hi ,
 I tried the steps suggested in the following link.
 http://hildon-test-aut.garage.maemo.org/installation.html

Did you also happen to look at the min project?
https://garage.maemo.org/projects/min/

I did spend some time getting it working but did not fully gasp it.


Greetings
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Not able to install Hildon Test Automation Framework on N900

2010-04-07 Thread praveen koduru
 Hi ,
I tried the steps suggested in the following link.
http://hildon-test-aut.garage.maemo.org/installation.html

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
I enabled Accessibility through gconftool-2 --type bool --set
/desktop/gnome/interface/accessibility true
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.

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.

-Praveen.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Not able to install Hildon Test Automation Framework on N900

2010-04-07 Thread Piñeiro
From: praveen koduru prawin1...@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 (apinhe...@igalia.com)
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Not able to install Hildon Test Automation Framework on N900

2010-04-07 Thread praveen koduru
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 apinhe...@igalia.com wrote:

 From: praveen koduru prawin1...@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 (apinhe...@igalia.com)

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Not able to install Hildon Test Automation Framework on N900

2010-04-07 Thread Piñeiro
From: praveen koduru prawin1...@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 (apinhe...@igalia.com)
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Not able to install Hildon Test Automation Framework on N900

2010-04-07 Thread praveen koduru
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 apinhe...@igalia.com wrote:

 From: praveen koduru prawin1...@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 (apinhe...@igalia.com)

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Not able to install Hildon Test Automation Framework on N900

2010-04-07 Thread Piñeiro
From: praveen koduru prawin1...@gmail.com

 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??

No, I mean something more simple:

ps aux | grep at-spi

 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.

As I told you before, arm-for-testing on doesn't enable a11y for all
applications. Take into account that this link is for a automatic
testing framework, so it only include some applications.

In order to load the a11y modules, GTK_MODULES need to be set to
GTK_MODULES=gail:hail:atk-bridge.

arm-for-testing on change the launcher of the supported applications
in order to be sure that GTK_MODULES has the correct values.

 So could you please suggest me how to get the object of Calculator and
 click one button with that.

You could try the same suggestion I made in the previous mail related
with the contacts application. Try to change the calculator launcher,
in order to use the summoner and have the envvar with the correct
value:

 #!/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

In the same way, you could create a simple gtk application, without
maemo-launcher, and then try to execute it by hand in this way:

$GTK_MODULES=gail:hail:atk-bridge ./my-gtk-application

 Thanks a lot for your help.

You are welcome, sorry for not be enough clear in my explanations, and
thanks to test it. I have Try if all a11y pieces works on n900 in my
TODO list for a long time.

 -Praveen

BR

===
API (apinhe...@igalia.com)
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers