1
Touch Testing From the CLI
2
==========================
4
The touch testing execution framework was written so that its very easy to
5
run tests from home in the exact same way test are run in the lab. The only
9
* The phablet-tools_ package
10
* An Ubuntu Touch supported_ device
12
.. _phablet-tools: http://launchpad.net/phablet-tools
13
.. _supported: http://wiki.ubuntu.com/Touch/Devices
15
There are two pieces to touch testing, provisioning and test execution. These
16
functions are independent of one another. eg, If your device already
17
has the proper image/configuration, you can simply use the test-runner.
22
The provisioning script is a simple wrapper to commands from phablet-tools
23
to get a device ready for testing. Provisioning is performed with the
24
scripts/provision.sh command. Running::
26
./scripts/provision.sh -h
28
will list supported options.
33
The touch testing repository supports both autopilot and UTAH test definitions.
35
Executing Autopilot Tests
36
~~~~~~~~~~~~~~~~~~~~~~~~~
38
One or more autopilot tests can be run on the target device using the command::
40
./scripts/run-autopilot-tests.sh
42
This is a small wrapper that uses phablet-tools to drive the tests. The
43
script can run one or more autopilot tests. By default it will reboot the
44
device between each test and ensure the device is settled using the
45
*system-settle* script. Both of those options can be disabled via command
46
line options. By default the script will create a directory named
47
*clientlogs* and then a subdirectory for each testsuite with result files.
48
These sub-directories include a xUnit XML formatted file, *test_results.xml*,
49
as well as several log files from the device to help with debugging failures.
51
An example testing two applications::
53
./scripts/run-autopilot-tests.sh -a dropping_letters_app -a music_app
58
Executing UTAH tests locally will require you to install the UTAH client
61
sudo add-apt-repository ppa:utah/stable
63
sudo apt-get install utah-client
65
With that package installed UTAH tests can be run with::
69
This script runs one test at a time and will put its test artifacts under the
70
*clientlogs* directory similar to the autopilot runner. The UTAH result file
71
will be named clientlogs/utah.yaml.
73
An example of running the sdk test suite::
75
./scripts/jenkins.sh -a sdk