UbuntuTouch

Differences between revisions 2 and 3
Revision 2 as of 2013-05-22 14:52:08
Size: 2219
Editor: 188-221-246-203
Comment:
Revision 3 as of 2013-05-22 14:58:58
Size: 2215
Editor: 188-221-246-203
Comment:
Deletions are marked like this. Additions are marked like this.
Line 36: Line 36:
This command will set up autopilot for you. You'll need the patch like the one in
https://code.launchpad.net/~pwlars/phablet-tools/new-autopilot/+merge/163235
unless it's merged already, otherwise it will install autopilot under
the old name.
This command will set up autopilot for you.
Line 44: Line 41:
phablet's home directory on the phone. Then you can just run phablet's home directory on the phone.

Then you can just run
Line 51: Line 50:

Commands to sort through:
 * adb forward tcp:8888 tcp:22
 * ssh -p 8888 phablet@localhost
 * adb push /path/to/file /data/ubuntu/foo (for now the ubuntu chroot is under /data/ubuntu)

To be able to run autopilot tests on touch images, this is all you need:

Preparing your test environment

Make sure you have the *latest* image and the latest android-tools-adb from the phablet-team ppa. Install the relevant ppas:

  • sudo apt-add-repository -y ppa:phablet-team/tools
  • sudo apt-add-repository -y ppa:autopilot/ppa (if not on saucy)
  • sudo apt-get update
  • sudo apt-get install phablet-tools android-tools-adb

Flash the image for testing and set up the network

Connect device you want to flash with ubuntu touch via USB to your computer and run:

  • phablet-flash

This will just flash your phone with the latest image, after you read and accept the disclaimer.

If you try to stop the download and then start it again, you'll need to remove the previous attempt to download from /home/<username>/Downloads/phablet-flash/<build_no>.

Then you want to set up the wireless on your touch device by copying your wireless configuration to it:

  • phablet-network-setup -i

This will set up the network based on your current wireless networking profile from /etc/NetworkManager/system-connections.

If you are on a desktop computer or you want to use a different configuration for your testing, call phablet-network-setup with -n and provide the configuration file you wish to use.

Verify which image you've got!

If you want to verify which image you have on the device:

  • adb shell getprop ro.build.display.id

Start running stuff

This command will set up autopilot for you.

  • phablet-test-run -n -i -p 'qml-phone-shell-autopilot' qml_phone_shell

One thing you can do once you do this, is drop a test, say "test_foo" in phablet's home directory on the phone.

Then you can just run

  • 'phablet-test-run -n test_foo'

The -n is very important. It kills the phone shell before running the test. If you don't do this, your application will be executed in the background and autopilot won't be able to interact with it.

Commands to sort through:

  • adb forward tcp:8888 tcp:22
  • ssh -p 8888 phablet@localhost
  • adb push /path/to/file /data/ubuntu/foo (for now the ubuntu chroot is under /data/ubuntu)

QATeam/AutomatedTesting/UbuntuTouch (last edited 2013-07-04 19:07:57 by cpe-72-179-16-106)