Merge lp:~vthompson/ubuntu-weather-app/reboot-ap-readme into lp:~ahayzen/ubuntu-weather-app/reboot-ap-create-fake-env

Proposed by Victor Thompson
Status: Merged
Approved by: Andrew Hayzen
Approved revision: 67
Merged at revision: 67
Proposed branch: lp:~vthompson/ubuntu-weather-app/reboot-ap-readme
Merge into: lp:~ahayzen/ubuntu-weather-app/reboot-ap-create-fake-env
Diff against target: 49 lines (+45/-0)
1 file modified
README.autopilot (+45/-0)
To merge this branch: bzr merge lp:~vthompson/ubuntu-weather-app/reboot-ap-readme
Reviewer Review Type Date Requested Status
Andrew Hayzen Approve
Review via email: mp+265221@code.launchpad.net

Commit message

* Add autopilot README.

Description of the change

* Add autopilot README.

To post a comment you must log in.
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Some initial inline comments :-)

review: Needs Fixing
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Some notes to self and comments :-)

Revision history for this message
Nicholas Skaggs (nskaggs) :
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

noting we had syntax wrong on adt-run

adt-run ubuntu-weather-app com.ubuntu.weather_3.0.66_all.click --- ssh -s adb -- -p <PASSWORD>

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Merging into my branch then I'll patch up :-)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'README.autopilot'
--- README.autopilot 1970-01-01 00:00:00 +0000
+++ README.autopilot 2015-07-19 20:38:50 +0000
@@ -0,0 +1,45 @@
1# Running Autopilot tests
2
3The Weather app follows a test driven development where autopilot tests are run before every merge into trunk. If you are submitting your bugfix/patch to the Weather app, please follow the following steps below to ensure that all tests pass before proposing a merge request.
4
5If you are looking for more info about Autopilot or writing AP tests for the Weather app, here are some useful links to help you,
6
7- http://developer.ubuntu.com/api/devel/ubuntu-14.10/python/autopilot/
8- http://developer.ubuntu.com/api/devel/ubuntu-14.10/python/autopilot-emulator/
9
10## Prerequisites
11
12Install the following autopilot packages required to run the tests,
13$ sudo apt-get install python-autopilot libautopilot-qt ubuntu-ui-toolkit-autopilot python3-autopilot-vis
14
15
16## Running tests on the desktop
17
18Using terminal:
19
20* Branch the Weather app code, for example,
21 $ bzr branch lp:ubuntu-weather-app
22
23* Navigate to the tests/autopilot directory.
24 $ cd ubuntu-weather-app/tests/autopilot
25
26* run all tests.
27 $ autopilot3 run -vv ubuntu_weather_app
28
29 to list all tests:
30 $ autopilot3 list ubuntu_weather_app
31
32 To run only one test (for instance: ubuntu_weather_app.tests.test_empty_state.TestEmptyState.test_add_location_button)
33 $ autopilot3 run -vv ubuntu_weather_app.tests.test_empty_state.TestEmptyState.test_add_location_button
34
35 Debugging tests using autopilot vis
36 $ autopilot3 launch -i Qt qmlscene app/ubuntu-weather-app.qml
37 $ autopilot3 vis
38
39
40## Running tests on device or emulator:
41
42Using autopkg:
43
441. navigate to the directory where the ubuntu-weather-app branch is and run:
45 $ adt-run ubuntu-weather-app --click=com.ubuntu.weather --- ssh -s adb -p YOURPASSWORD

Subscribers

People subscribed via source and target branches

to all changes: