/usr/share/doc/python-autopilot/html/porting/porting.html is in python-autopilot 1.4.1+17.04.20170305-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Porting Autopilot Tests — Autopilot 1.4.1+17.04.20170305-0 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/otto.css" type="text/css" />
<link rel="stylesheet" href="../_static/centertext.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '1.4.1+17.04.20170305-0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="shortcut icon" href="../_static/favicon.ico"/>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Appendices" href="../appendix/appendix.html" />
<link rel="prev" title="Frequently Asked Questions" href="../faq/faq.html" />
</head>
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="../appendix/appendix.html" title="Appendices"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="../faq/faq.html" title="Frequently Asked Questions"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">Autopilot 1.4.1+17.04.20170305-0 documentation</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="porting-autopilot-tests">
<h1><a class="toc-backref" href="#id1">Porting Autopilot Tests</a><a class="headerlink" href="#porting-autopilot-tests" title="Permalink to this headline">¶</a></h1>
<p>This document contains hints as to what is required to port a test suite from any version of autopilot to any newer version.</p>
<div class="contents topic" id="contents">
<p class="topic-title first">Contents</p>
<ul class="simple">
<li><a class="reference internal" href="#porting-autopilot-tests" id="id1">Porting Autopilot Tests</a><ul>
<li><a class="reference internal" href="#a-note-on-versions" id="id2">A note on Versions</a></li>
<li><a class="reference internal" href="#porting-to-autopilot-v1-4-x" id="id3">Porting to Autopilot v1.4.x</a><ul>
<li><a class="reference internal" href="#gtk-tests-and-boolean-parameters" id="id4">Gtk Tests and Boolean Parameters</a></li>
<li><a class="reference internal" href="#select-single-changes" id="id5"><code class="xref py py-meth docutils literal"><span class="pre">select_single</span></code> Changes</a></li>
<li><a class="reference internal" href="#dbus-backends-and-dbusintrospectionobject-changes" id="id6">DBus backends and <a class="reference internal" href="../api/introspection.html#autopilot.introspection.dbus.DBusIntrospectionObject" title="autopilot.introspection.dbus.DBusIntrospectionObject"><code class="xref py py-class docutils literal"><span class="pre">DBusIntrospectionObject</span></code></a> changes</a></li>
<li><a class="reference internal" href="#python-3" id="id7">Python 3</a></li>
</ul>
</li>
<li><a class="reference internal" href="#porting-to-autopilot-v1-3-x" id="id8">Porting to Autopilot v1.3.x</a><ul>
<li><a class="reference internal" href="#qtintrospectiontestmixin-and-gtkintrospectiontestmixin-no-longer-exist" id="id9"><code class="docutils literal"><span class="pre">QtIntrospectionTestMixin</span></code> and <code class="docutils literal"><span class="pre">GtkIntrospectionTestMixin</span></code> no longer exist</a></li>
<li><a class="reference internal" href="#autopilot-emulators-namespace-has-been-deprecated" id="id10"><code class="docutils literal"><span class="pre">autopilot.emulators</span></code> namespace has been deprecated</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="a-note-on-versions">
<h2><a class="toc-backref" href="#id2">A note on Versions</a><a class="headerlink" href="#a-note-on-versions" title="Permalink to this headline">¶</a></h2>
<p>Autopilot releases are reasonably tightly coupled with Ubuntu releases. However, the autopilot authors maintain separate version numbers, with the aim of separating the autopilot release cadence from the Ubuntu platform release cadence.</p>
<p>Autopilot versions earlier than 1.2 were not publicly announced, and were only used within Canonical. For that reason, this document assumes that version 1.2 is the lowest version of autopilot present <cite>“in the wild”</cite>.</p>
</div>
<div class="section" id="porting-to-autopilot-v1-4-x">
<h2><a class="toc-backref" href="#id3">Porting to Autopilot v1.4.x</a><a class="headerlink" href="#porting-to-autopilot-v1-4-x" title="Permalink to this headline">¶</a></h2>
<p>The 1.4 release contains several changes that required a break in the DBus wire protocol between autopilot and the applications under test. Most of these changes require no change to test code.</p>
<div class="section" id="gtk-tests-and-boolean-parameters">
<h3><a class="toc-backref" href="#id4">Gtk Tests and Boolean Parameters</a><a class="headerlink" href="#gtk-tests-and-boolean-parameters" title="Permalink to this headline">¶</a></h3>
<p>Version 1.3 of the autopilot-gtk backend contained <a class="reference external" href="https://bugs.launchpad.net/autopilot-gtk/+bug/1214249">a bug</a> that caused all Boolean properties to be exported as integers instead of boolean values. This in turn meant that test code would fail to return the correct objects when using selection criteria such as:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">visible_buttons</span> <span class="o">=</span> <span class="n">app</span><span class="o">.</span><span class="n">select_many</span><span class="p">(</span><span class="s2">"GtkPushButton"</span><span class="p">,</span> <span class="n">visible</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
</pre></div>
</div>
<p>and instead had to write something like this:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">visible_buttons</span> <span class="o">=</span> <span class="n">app</span><span class="o">.</span><span class="n">select_many</span><span class="p">(</span><span class="s2">"GtkPushButton"</span><span class="p">,</span> <span class="n">visible</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
</pre></div>
</div>
<p>This bug has now been fixed, and using the integer selection will fail.</p>
</div>
<div class="section" id="select-single-changes">
<h3><a class="toc-backref" href="#id5"><code class="xref py py-meth docutils literal"><span class="pre">select_single</span></code> Changes</a><a class="headerlink" href="#select-single-changes" title="Permalink to this headline">¶</a></h3>
<p>The <a class="reference internal" href="../api/introspection.html#autopilot.introspection.dbus.DBusIntrospectionObject.select_single" title="autopilot.introspection.dbus.DBusIntrospectionObject.select_single"><code class="xref py py-meth docutils literal"><span class="pre">select_single</span></code></a> method used to return <code class="docutils literal"><span class="pre">None</span></code> in the case where no object was found that matched the search criteria. This led to rather awkward code in places where the object you are searching for is being created dynamically:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">10</span><span class="p">):</span>
<span class="n">my_obj</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">app</span><span class="o">.</span><span class="n">select_single</span><span class="p">(</span><span class="s2">"MyObject"</span><span class="p">)</span>
<span class="k">if</span> <span class="n">my_obj</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">break</span>
<span class="n">time</span><span class="o">.</span><span class="n">sleep</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">fail</span><span class="p">(</span><span class="s2">"Object 'MyObject' was not found within 10 seconds."</span><span class="p">)</span>
</pre></div>
</div>
<p>This makes the authors intent harder to discern. To improve this situation, two changes have been made:</p>
<ol class="arabic">
<li><p class="first"><a class="reference internal" href="../api/introspection.html#autopilot.introspection.dbus.DBusIntrospectionObject.select_single" title="autopilot.introspection.dbus.DBusIntrospectionObject.select_single"><code class="xref py py-meth docutils literal"><span class="pre">select_single</span></code></a> raises a <a class="reference internal" href="../api/introspection.html#autopilot.introspection.dbus.StateNotFoundError" title="autopilot.introspection.dbus.StateNotFoundError"><code class="xref py py-class docutils literal"><span class="pre">StateNotFoundError</span></code></a> exception if the search terms returned no values, rather than returning <code class="docutils literal"><span class="pre">None</span></code>.</p>
</li>
<li><p class="first">If the object being searched for is likely to not exist, there is a new method: <a class="reference internal" href="../api/introspection.html#autopilot.introspection.dbus.DBusIntrospectionObject.wait_select_single" title="autopilot.introspection.dbus.DBusIntrospectionObject.wait_select_single"><code class="xref py py-meth docutils literal"><span class="pre">wait_select_single</span></code></a> will try to retrieve an object for 10 seconds. If the object does not exist after that timeout, a <a class="reference internal" href="../api/introspection.html#autopilot.introspection.dbus.StateNotFoundError" title="autopilot.introspection.dbus.StateNotFoundError"><code class="xref py py-class docutils literal"><span class="pre">StateNotFoundError</span></code></a> exception is raised. This means that the above code example should now be written as:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">my_obj</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">app</span><span class="o">.</span><span class="n">wait_select_single</span><span class="p">(</span><span class="s2">"MyObject"</span><span class="p">)</span>
</pre></div>
</div>
</li>
</ol>
</div>
<div class="section" id="dbus-backends-and-dbusintrospectionobject-changes">
<span id="dbus-backends"></span><h3><a class="toc-backref" href="#id6">DBus backends and <a class="reference internal" href="../api/introspection.html#autopilot.introspection.dbus.DBusIntrospectionObject" title="autopilot.introspection.dbus.DBusIntrospectionObject"><code class="xref py py-class docutils literal"><span class="pre">DBusIntrospectionObject</span></code></a> changes</a><a class="headerlink" href="#dbus-backends-and-dbusintrospectionobject-changes" title="Permalink to this headline">¶</a></h3>
<p>Due to a change in how
<a class="reference internal" href="../api/introspection.html#autopilot.introspection.dbus.DBusIntrospectionObject" title="autopilot.introspection.dbus.DBusIntrospectionObject"><code class="xref py py-class docutils literal"><span class="pre">DBusIntrospectionObject</span></code></a> objects store
their DBus backend a couple of classmethods have now become instance methods.</p>
<p>These affected methods are:</p>
<blockquote>
<div><ul class="simple">
<li><a class="reference internal" href="../api/introspection.html#autopilot.introspection.dbus.DBusIntrospectionObject.get_all_instances" title="autopilot.introspection.dbus.DBusIntrospectionObject.get_all_instances"><code class="xref py py-meth docutils literal"><span class="pre">get_all_instances</span></code></a></li>
<li><a class="reference internal" href="../api/introspection.html#autopilot.introspection.dbus.DBusIntrospectionObject.get_root_instance" title="autopilot.introspection.dbus.DBusIntrospectionObject.get_root_instance"><code class="xref py py-meth docutils literal"><span class="pre">get_root_instance</span></code></a></li>
<li><a class="reference internal" href="../api/introspection.html#autopilot.introspection.dbus.DBusIntrospectionObject.get_state_by_path" title="autopilot.introspection.dbus.DBusIntrospectionObject.get_state_by_path"><code class="xref py py-meth docutils literal"><span class="pre">get_state_by_path</span></code></a></li>
</ul>
</div></blockquote>
<p>For example, if your old code is something along the lines of:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">all_keys</span> <span class="o">=</span> <span class="n">KeyCustomProxy</span><span class="o">.</span><span class="n">get_all_instances</span><span class="p">()</span>
</pre></div>
</div>
<p>You will instead need to have something like this instead:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">all_keys</span> <span class="o">=</span> <span class="n">app_proxy</span><span class="o">.</span><span class="n">select_many</span><span class="p">(</span><span class="n">KeyCustomProxy</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="python-3">
<h3><a class="toc-backref" href="#id7">Python 3</a><a class="headerlink" href="#python-3" title="Permalink to this headline">¶</a></h3>
<p>Starting from version 1.4, autopilot supports python 3 as well as python 2. Test authors can choose to target either version of python.</p>
</div>
</div>
<div class="section" id="porting-to-autopilot-v1-3-x">
<h2><a class="toc-backref" href="#id8">Porting to Autopilot v1.3.x</a><a class="headerlink" href="#porting-to-autopilot-v1-3-x" title="Permalink to this headline">¶</a></h2>
<p>The 1.3 release included many API breaking changes. Earlier versions of autopilot made several assumptions about where tests would be run, that turned out not to be correct. Autopilot 1.3 brought several much-needed features, including:</p>
<ul class="simple">
<li>A system for building pluggable implementations for several core components. This system is used in several areas:</li>
</ul>
<blockquote>
<div><ul class="simple">
<li>The input stack can now generate events using either the X11 client libraries, or the UInput kernel driver. This is necessary for devices that do not use X11.</li>
<li>The display stack can now report display information for systems that use both X11 and the mir display server.</li>
<li>The process stack can now report details regarding running processes & their windows on both Desktop, tablet, and phone platforms.</li>
</ul>
</div></blockquote>
<ul class="simple">
<li>A large code cleanup and reorganisation. In particular, lots of code that came from the Unity 3D codebase has been removed if it was deemed to not be useful to the majority of test authors. This code cleanup includes a flattening of the autopilot namespace. Previously, many useful classes lived under the <code class="docutils literal"><span class="pre">autopilot.emulators</span></code> namespace. These have now been moved into the <code class="docutils literal"><span class="pre">autopilot</span></code> namespace.</li>
</ul>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">There is an API breakage in autopilot 1.3. The changes outlined under
the heading “<a class="reference internal" href="#dbus-backends"><span class="std std-ref">DBus backends and DBusIntrospectionObject changes</span></a>” apply to version
1.3.1+13.10.20131003.1-0ubuntu1 and onwards .</p>
</div>
<div class="section" id="qtintrospectiontestmixin-and-gtkintrospectiontestmixin-no-longer-exist">
<h3><a class="toc-backref" href="#id9"><code class="docutils literal"><span class="pre">QtIntrospectionTestMixin</span></code> and <code class="docutils literal"><span class="pre">GtkIntrospectionTestMixin</span></code> no longer exist</a><a class="headerlink" href="#qtintrospectiontestmixin-and-gtkintrospectiontestmixin-no-longer-exist" title="Permalink to this headline">¶</a></h3>
<p>In autopilot 1.2, tests enabled application introspection services by inheriting from one of two mixin classes: <code class="docutils literal"><span class="pre">QtIntrospectionTestMixin</span></code> to enable testing Qt4, Qt5, and Qml applications, and <code class="docutils literal"><span class="pre">GtkIntrospectionTestMixin</span></code> to enable testing Gtk 2 and Gtk3 applications. For example, a test case class in autopilot 1.2 might look like this:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">autopilot.introspection.qt</span> <span class="k">import</span> <span class="n">QtIntrospectionTestMixin</span>
<span class="kn">from</span> <span class="nn">autopilot.testcase</span> <span class="k">import</span> <span class="n">AutopilotTestCase</span>
<span class="k">class</span> <span class="nc">MyAppTestCase</span><span class="p">(</span><span class="n">AutopilotTestCase</span><span class="p">,</span> <span class="n">QtIntrospectionTestMixin</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">setUp</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="nb">super</span><span class="p">(</span><span class="n">MyAppTestCase</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">setUp</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">app</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">launch_test_application</span><span class="p">(</span><span class="s2">"../../my-app"</span><span class="p">)</span>
</pre></div>
</div>
<p>In Autopilot 1.3, the <a class="reference internal" href="../api/testcase.html#autopilot.testcase.AutopilotTestCase" title="autopilot.testcase.AutopilotTestCase"><code class="xref py py-class docutils literal"><span class="pre">AutopilotTestCase</span></code></a> class contains this functionality directly, so the <code class="docutils literal"><span class="pre">QtIntrospectionTestMixin</span></code> and <code class="docutils literal"><span class="pre">GtkIntrospectionTestMixin</span></code> classes no longer exist. The above example becomes simpler:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">autopilot.testcase</span> <span class="k">import</span> <span class="n">AutopilotTestCase</span>
<span class="k">class</span> <span class="nc">MyAppTestCase</span><span class="p">(</span><span class="n">AutopilotTestCase</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">setUp</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="nb">super</span><span class="p">(</span><span class="n">MyAppTestCase</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">setUp</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">app</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">launch_test_application</span><span class="p">(</span><span class="s2">"../../my-app"</span><span class="p">)</span>
</pre></div>
</div>
<p>Autopilot will try and determine the introspection type automatically. If this process fails, you can specify the application type manually:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">autopilot.testcase</span> <span class="k">import</span> <span class="n">AutopilotTestCase</span>
<span class="k">class</span> <span class="nc">MyAppTestCase</span><span class="p">(</span><span class="n">AutopilotTestCase</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">setUp</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="nb">super</span><span class="p">(</span><span class="n">MyAppTestCase</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">setUp</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">app</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">launch_test_application</span><span class="p">(</span><span class="s2">"../../my-app"</span><span class="p">,</span> <span class="n">app_type</span><span class="o">=</span><span class="s1">'qt'</span><span class="p">)</span>
</pre></div>
</div>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<dl class="last docutils">
<dt>Method <a class="reference internal" href="../api/testcase.html#autopilot.testcase.AutopilotTestCase.launch_test_application" title="autopilot.testcase.AutopilotTestCase.launch_test_application"><code class="xref py py-meth docutils literal"><span class="pre">autopilot.testcase.AutopilotTestCase.launch_test_application</span></code></a></dt>
<dd>Launch test applications.</dd>
</dl>
</div>
</div>
<div class="section" id="autopilot-emulators-namespace-has-been-deprecated">
<h3><a class="toc-backref" href="#id10"><code class="docutils literal"><span class="pre">autopilot.emulators</span></code> namespace has been deprecated</a><a class="headerlink" href="#autopilot-emulators-namespace-has-been-deprecated" title="Permalink to this headline">¶</a></h3>
<p>In autopilot 1.2 and earlier, the <code class="docutils literal"><span class="pre">autopilot.emulators</span></code> package held several modules and classes that were used frequently in tests. This package has been removed, and it’s contents merged into the autopilot package. Below is a table showing the basic translations that need to be made:</p>
<table border="1" class="docutils">
<colgroup>
<col width="45%" />
<col width="55%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Old module</th>
<th class="head">New Module</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><code class="docutils literal"><span class="pre">autopilot.emulators.input</span></code></td>
<td><a class="reference internal" href="../api/input.html#module-autopilot.input" title="autopilot.input"><code class="xref py py-mod docutils literal"><span class="pre">autopilot.input</span></code></a></td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">autopilot.emulators.X11</span></code></td>
<td>Deprecated - use
<a class="reference internal" href="../api/input.html#module-autopilot.input" title="autopilot.input"><code class="xref py py-mod docutils literal"><span class="pre">autopilot.input</span></code></a> for input
and <a class="reference internal" href="../api/display.html#module-autopilot.display" title="autopilot.display"><code class="xref py py-mod docutils literal"><span class="pre">autopilot.display</span></code></a> for
getting display information.</td>
</tr>
<tr class="row-even"><td><code class="docutils literal"><span class="pre">autopilot.emulators.bamf</span></code></td>
<td>Deprecated - use
<a class="reference internal" href="../api/process.html#module-autopilot.process" title="autopilot.process"><code class="xref py py-mod docutils literal"><span class="pre">autopilot.process</span></code></a> instead.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../index.html">
<img class="logo" src="../_static/otto-64.png" alt="Logo"/>
</a></p>
<h3><a href="../index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Porting Autopilot Tests</a><ul>
<li><a class="reference internal" href="#a-note-on-versions">A note on Versions</a></li>
<li><a class="reference internal" href="#porting-to-autopilot-v1-4-x">Porting to Autopilot v1.4.x</a><ul>
<li><a class="reference internal" href="#gtk-tests-and-boolean-parameters">Gtk Tests and Boolean Parameters</a></li>
<li><a class="reference internal" href="#select-single-changes"><code class="docutils literal"><span class="pre">select_single</span></code> Changes</a></li>
<li><a class="reference internal" href="#dbus-backends-and-dbusintrospectionobject-changes">DBus backends and <code class="docutils literal"><span class="pre">DBusIntrospectionObject</span></code> changes</a></li>
<li><a class="reference internal" href="#python-3">Python 3</a></li>
</ul>
</li>
<li><a class="reference internal" href="#porting-to-autopilot-v1-3-x">Porting to Autopilot v1.3.x</a><ul>
<li><a class="reference internal" href="#qtintrospectiontestmixin-and-gtkintrospectiontestmixin-no-longer-exist"><code class="docutils literal"><span class="pre">QtIntrospectionTestMixin</span></code> and <code class="docutils literal"><span class="pre">GtkIntrospectionTestMixin</span></code> no longer exist</a></li>
<li><a class="reference internal" href="#autopilot-emulators-namespace-has-been-deprecated"><code class="docutils literal"><span class="pre">autopilot.emulators</span></code> namespace has been deprecated</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<div><input type="text" name="q" /></div>
<div><input type="submit" value="Go" /></div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
<h4>Previous topic</h4>
<p class="topless"><a href="../faq/faq.html"
title="previous chapter">Frequently Asked Questions</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="../appendix/appendix.html"
title="next chapter">Appendices</a></p>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="../appendix/appendix.html" title="Appendices"
>next</a> |</li>
<li class="right" >
<a href="../faq/faq.html" title="Frequently Asked Questions"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">Autopilot 1.4.1+17.04.20170305-0 documentation</a> »</li>
</ul>
</div>
<div class="footer">
<div class=center_text>
<a href="../faq/contribute.html">Learn how you can contribute!</a> / <a href="https://bugs.launchpad.net/autopilot/+filebug">File a bug</a>
<br/>
</div>
© Copyright 2012-2017, Canonical.
</div>
</body>
</html>
|