Installation of the test framework
Installing on the device and initial setup:
- Flash an image (PR / maemo) . Run below command as 'root'
./flasher --enable-rd-mode set-rd-flags=serial-console -F <flashable_image>.bin -f- Boot the device.
- Copy to device and install all the debian packages (being as root).
- As root run
arm-for-testing on- Reboot the device.
- ssh to the device from host (assuming you have networking, like WLAN or USB).
- Switch to 'user' and run your Dogtail/RNR tests .
- You can also use nose to run tests.
Example, ~ $ nosetests --tests='/usr/bin/gtkButtonTests.py' -m '^test.*' --with-outputsave
Installing in Scratchbox ( i386 target ):
- Setup scratchbox i386 target and have the Xephyr started.
- Remove python, python2.4 packages, if any.
- Install all the debian packages.
- Run the script. arm-for-testing on
- export GTK_MODULES=gail:hail:atk-bridge
- Start HAF ( Hildon Application Framework)
af-sb-init.sh start- Start the application under test.
- In python prompt
>>>from dogtail.rocknrole import * >>>h=appR(binaryNameOfAppUnderTest) >>>h.helper() Should show all the accessible elements and the actions that can be performed on them.
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