~ubuntu-clock-dev/ubuntu-clock-app/reboot-packaging

« back to all changes in this revision

Viewing changes to README.autopilot

  • Committer: carla-sella
  • Date: 2014-07-31 16:58:56 UTC
  • mto: (37.1.1 reboot)
  • mto: This revision was merged to the branch mainline in revision 50.
  • Revision ID: carla.sella@gmail.com-20140731165856-o2g4v4z7ivk9864v
Implemented locale.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Running autopilot tests
 
2
=======================
 
3
 
 
4
 
 
5
Prerequisities:
 
6
 
 
7
Install the following autopilot packages required to run the tests,
 
8
sudo apt-get install python-autopilot libautopilot-qt ubuntu-ui-toolkit-autopilot
 
9
 
 
10
 
 
11
 
 
12
on the desktop:
 
13
 
 
14
from terminal:
 
15
 
 
16
1.  Branch the code.
 
17
    bzr branch lp:ubuntu-clock-app/reboot
 
18
2.  Navigate to the tests/autopilot directory.
 
19
    cd ubuntu-clock-app/reboot/tests/autopilot
 
20
3.  run all tests.
 
21
    $ autopilot run -vv ubuntu_clock_app
 
22
 
 
23
    to list all tests:
 
24
    $ autopilot list ubuntu_clock_app
 
25
 
 
26
    To run only one test (for instance: test_add_single_type_alarm_must_add_to_alarm_list in TestAlarm.py):
 
27
    $ autopilot run -vv ubuntu_clock_app.tests.test_alarm.TestAlarm.test_add_single_type_alarm_must_add_to_alarm_list
 
28
 
 
29
 
 
30
 
 
31
 
 
32
on device:
 
33
 
 
34
Using autopkg:
 
35
 
 
36
1. navigate to the directory where the ubuntu-clock-app branch is and run:
 
37
  $ adt-run ubuntu-clock-app --click=com.ubuntu.clock.devel --- ssh -s /usr/share/autopkgtest/ssh-setup/adb