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
1=== added file 'README.autopilot'
2--- README.autopilot 1970-01-01 00:00:00 +0000
3+++ README.autopilot 2015-07-19 20:38:50 +0000
4@@ -0,0 +1,45 @@
5+# Running Autopilot tests
6+
7+The 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.
8+
9+If you are looking for more info about Autopilot or writing AP tests for the Weather app, here are some useful links to help you,
10+
11+- http://developer.ubuntu.com/api/devel/ubuntu-14.10/python/autopilot/
12+- http://developer.ubuntu.com/api/devel/ubuntu-14.10/python/autopilot-emulator/
13+
14+## Prerequisites
15+
16+Install the following autopilot packages required to run the tests,
17+$ sudo apt-get install python-autopilot libautopilot-qt ubuntu-ui-toolkit-autopilot python3-autopilot-vis
18+
19+
20+## Running tests on the desktop
21+
22+Using terminal:
23+
24+* Branch the Weather app code, for example,
25+ $ bzr branch lp:ubuntu-weather-app
26+
27+* Navigate to the tests/autopilot directory.
28+ $ cd ubuntu-weather-app/tests/autopilot
29+
30+* run all tests.
31+ $ autopilot3 run -vv ubuntu_weather_app
32+
33+ to list all tests:
34+ $ autopilot3 list ubuntu_weather_app
35+
36+ To run only one test (for instance: ubuntu_weather_app.tests.test_empty_state.TestEmptyState.test_add_location_button)
37+ $ autopilot3 run -vv ubuntu_weather_app.tests.test_empty_state.TestEmptyState.test_add_location_button
38+
39+ Debugging tests using autopilot vis
40+ $ autopilot3 launch -i Qt qmlscene app/ubuntu-weather-app.qml
41+ $ autopilot3 vis
42+
43+
44+## Running tests on device or emulator:
45+
46+Using autopkg:
47+
48+1. navigate to the directory where the ubuntu-weather-app branch is and run:
49+ $ 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: