Merge lp:~canonical-platform-qa/autopilot/launch-cmd-doc into lp:autopilot

Proposed by Richard Huddie on 2015-01-15
Status: Superseded
Proposed branch: lp:~canonical-platform-qa/autopilot/launch-cmd-doc
Merge into: lp:autopilot
Diff against target: 43 lines (+28/-1)
1 file modified
docs/tutorial/running_ap.rst (+28/-1)
To merge this branch: bzr merge lp:~canonical-platform-qa/autopilot/launch-cmd-doc
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing on 2015-01-19
Christopher Lee (community) Needs Fixing on 2015-01-19
Nicholas Skaggs (community) Needs Fixing on 2015-01-16
Allan LeSage (community) 2015-01-15 Needs Fixing on 2015-01-15
Review via email: mp+246601@code.launchpad.net

Commit Message

Add a new section that includes how to use autopilot launch command. Also update references of autopilot to autopilot3 in existing material.

Description of the Change

Add a new section that includes how to use autopilot launch command. Also update references of autopilot to autopilot3 in existing material.

To post a comment you must log in.
Nicholas Skaggs (nskaggs) wrote :

Left comments about ordering and expansion.

review: Needs Fixing
Allan LeSage (allanlesage) wrote :

Agree with Nick's suggestion concerning placement of launch doc on page, else looks fine.

review: Needs Fixing
522. By Richard Huddie on 2015-01-16

Fix review comments, move launch before vis, add -i option and also remove the 3s as this will be done in another mp

523. By Richard Huddie on 2015-01-16

remove last autopilot3 reference

Richard Huddie (rhuddie) wrote :

Thanks. I have made updates accordingly. I have also removed the changes to use autopilot3, so this will be easier to merge with other updates.

Nicholas Skaggs (nskaggs) wrote :

Thanks for removing the autopilot3 refs; should be easier to merge multiple mp's now. Some more nit picky stuff, but I think we're close. Thanks Richard!

review: Needs Fixing
Christopher Lee (veebers) wrote :

There is currently text in the faq covering this (titled: 'Autopilot Qt & Gtk Support'). Perhaps we need to amalgamate these sections so we're not repeating ourselves. (Perhaps in the faq section was a silly place to put this initially :-)).

review: Needs Fixing
524. By Richard Huddie on 2015-01-19

Address latest review comments. Add app parameters, include framework error, use some info from faq page

Richard Huddie (rhuddie) wrote :

Thanks Nicholas, Chris, I have made updates to fix those issues.

525. By Thomi Richards on 2015-01-20

Various cleanups.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'docs/tutorial/running_ap.rst'
2--- docs/tutorial/running_ap.rst 2013-06-24 04:02:17 +0000
3+++ docs/tutorial/running_ap.rst 2015-01-20 02:51:37 +0000
4@@ -86,12 +86,39 @@
5
6 The file 'results.xml' will be created when all the tests have completed, and will be in the jUnitXml file format. This is useful when running the autopilot tests within a jenkins environment.
7
8+.. _launching_application_to_introspect:
9+
10+Launching an Application to Introspect
11+--------------------------------------
12+
13+In order to be able to introspect an application, it must first be launched with introspection enabled. Autopilot provides the **launch** command to enable this: ::
14+
15+ $ autopilot3 launch <application> <app_parameters>
16+
17+The *<application>* parameter could be the full path to the application, or the name of an application located somewhere on ``$PATH``. *<app_parameter>* is passed on to the application being launched.
18+
19+A simple Gtk example to launch gedit::
20+
21+ $ autopilot3 launch gedit
22+
23+A Qt example which passes on parameters to the application being launched::
24+
25+ $ autopilot3 launch qmlscene my_app.qml
26+
27+Autopilot launch attempts to detect if you are launching either a Gtk or Qt application so that it can enable the correct libraries. If it is unable to determine this you will need to specify the type of application it is by using the -i argument. This allows "Gtk" or "Qt" frameworks to be specified when launching the application. The default value ("Auto") will try to detect which interface to load automatically.
28+
29+A typical error in this situation will be "Error: Could not determine introspection type to use for application". In which case the -i option should be specified with the correct application framework type to fix the problem::
30+
31+ $ autopilot3 launch -i Qt address-book-app
32+
33+Once an application has launched with introspection enabled, it will be possible to launch autopilot vis and view the introspection tree, see: :ref:`visualise_introspection_tree`.
34+
35 .. _visualise_introspection_tree:
36
37 Visualise Introspection Tree
38 ----------------------------
39
40-A very common thing to want to do while writing autopilot tests is see the structure of the application being tested. To support this, autopilot includes a simple application to help visualize the introspection tree. To start it, make sure the application you wish to test is running, and then run::
41+A very common thing to want to do while writing autopilot tests is see the structure of the application being tested. To support this, autopilot includes a simple application to help visualize the introspection tree. To start it, make sure the application you wish to test is running (see: :ref:`launching_application_to_introspect`), and then run::
42
43 $ autopilot vis
44

Subscribers

People subscribed via source and target branches