Installation of the test framework

  1.  Installing on the device and initial setup: 

  1. Flash an image (PR / maemo) . Run below command as 'root'
        ./flasher --enable-rd-mode set-rd-flags=serial-console -F <flashable_image>.bin -f
  1. Boot the device.
  2. Copy to device and install all the debian packages (being as root).
  3. As root run     
        arm-for-testing on
  1. Reboot the device.
  2. ssh to the device from host (assuming you have networking, like WLAN or USB).
  3. Switch to 'user' and run your Dogtail/RNR tests .
  4. You can also use nose to run tests.
        Example, ~ $ nosetests --tests='/usr/bin/' -m '^test.*' --with-outputsave

  1.  Installing in Scratchbox ( i386 target ):

  1. Setup scratchbox i386 target and have the Xephyr started.
  2. Remove python, python2.4 packages, if any.
  3. Install all the debian packages.
  4. Run the script. arm-for-testing on
  5. export GTK_MODULES=gail:hail:atk-bridge
  6. Start HAF ( Hildon Application Framework) start
  1. Start the application under test.
  2. In python prompt
        >>>from dogtail.rocknrole import *

    Should show all the accessible elements and the actions that can be performed on them.

  1. Packages needed for test results reporting:

      Install the following packages in host.

     apache2,  apache2-common, apache2-mpm-prefork, apache2-utils , ssl-cert, libapache2-mod-php5, php5-cli php5-common, php5-cgi