<div dir="ltr">Found the answer. I found another person with a similar problem asking at:<div><a href="http://askubuntu.com/questions/315996/autopilot-importerror-no-module-named-input/316103#316103">http://askubuntu.com/questions/315996/autopilot-importerror-no-module-named-input/316103#316103</a><br>
</div><div><br></div><div>The message sounded like an installation problem. So re-installed using the directions and steps in my answer. </div><div><br></div><div>Suggest an update to FAQ</div><div><a href="http://unity.ubuntu.com/autopilot/faq/faq.html#q-how-do-i-install-autopilot">http://unity.ubuntu.com/autopilot/faq/faq.html#q-how-do-i-install-autopilot</a><br>
</div><div><br></div><div>Cheers.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 3, 2013 at 6:34 PM, Cecil New <span dir="ltr"><<a href="mailto:cecil.new@gmail.com" target="_blank">cecil.new@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all, I'm Cecil and have volunteered to write test cases for Ubuntu Touch.<div><br></div><div>I'm going thru the tutorial and the example didn't quite work. Since I'm new to python, I thought send out a quick note... I'm sure it's something simple.</div>

<div><br></div><div>Below is the output, followed by the test itself for easy reference (I just copied and pasted from the tutorial).</div><div><br></div><div>Thanks for the help,</div><div>Cecil</div><div><br></div><div>

<div><b>$ autopilot list example</b></div><div>Loading tests from: /home/cecil/Workspace/autopilot</div><div><br></div><div>    example.tests.test_window.MainWindowTitleTests.test_main_window_title_string</div><div><br></div>

<div><br></div><div> 1 total tests.</div><div><b>$ autopilot run -v example</b></div><div>Loading tests from: /home/cecil/Workspace/autopilot</div><div><br></div><div>Tests running...</div><div>18:22:10.000 INFO testcase:86 - ************************************************************</div>

<div>18:22:10.001 INFO testcase:87 - Starting test example.tests.test_window.MainWindowTitleTests.test_main_window_title_string</div><div>18:22:10.575 DEBUG _X11:311 - Moving mouse to position 640,512 without animation.</div>

<div>18:22:10.716 ERROR testresult:23 - ERROR: example.tests.test_window.MainWindowTitleTests.test_main_window_title_string</div><div>18:22:10.717 ERROR testresult:23 - traceback: {{{</div><div>Traceback (most recent call last):</div>

<div>  File "/home/cecil/Workspace/autopilot/example/tests/test_window.py", line 20, in test_main_window_title_string</div><div>    app_root = self.launch_application()</div><div>  File "/home/cecil/Workspace/autopilot/example/tests/test_window.py", line 16, in launch_application</div>

<div>    return self.launch_test_application(full_path, app_type='qt')</div><div>AttributeError: 'MainWindowTitleTests' object has no attribute 'launch_test_application'</div><div>}}}</div><div>======================================================================</div>

<div>ERROR: example.tests.test_window.MainWindowTitleTests.test_main_window_title_string</div><div>----------------------------------------------------------------------</div><div>_StringException: test-log: {{{</div><div>

18:22:10.000 INFO testcase:86 - ************************************************************</div><div>18:22:10.001 INFO testcase:87 - Starting test example.tests.test_window.MainWindowTitleTests.test_main_window_title_string</div>

<div>18:22:10.575 DEBUG _X11:311 - Moving mouse to position 640,512 without animation.</div><div>}}}</div><div><br></div><div>Traceback (most recent call last):</div><div>  File "/home/cecil/Workspace/autopilot/example/tests/test_window.py", line 20, in test_main_window_title_string</div>

<div>    app_root = self.launch_application()</div><div>  File "/home/cecil/Workspace/autopilot/example/tests/test_window.py", line 16, in launch_application</div><div>    return self.launch_test_application(full_path, app_type='qt')</div>

<div>AttributeError: 'MainWindowTitleTests' object has no attribute 'launch_test_application'</div><div><br></div><div><br></div><div>Ran 1 test in 0.720s</div><div>FAILED (failures=1)</div><div>$ </div></div>

<div><br></div><div><br></div><div><b>Here is the test code:</b></div><div><div><b>$ cat example/tests/test_window.py</b></div><div>from autopilot.testcase import AutopilotTestCase</div><div>from os.path import abspath, dirname, join</div>

<div>from testtools.matchers import Equals</div><div><br></div><div>class MainWindowTitleTests(AutopilotTestCase):</div><div><br></div><div>    def launch_application(self):</div><div>        """Work out the full path to the application and launch it.</div>

<div><br></div><div>        This is necessary since our test application will not be in $PATH.</div><div><br></div><div>        :returns: The application proxy object.</div><div><br></div><div>        """</div>

<div>        full_path = abspath(join(dirname(__file__), '..', '..', 'testapp.py'))</div><div>        return self.launch_test_application(full_path, app_type='qt')</div><div><br></div><div>

    def test_main_window_title_string(self):</div><div>        """The main window title must be 'Hello World'."""</div><div>        app_root = self.launch_application()</div><div>        main_window = app_root.select_single('QMainWindow')</div>

<div><br></div><div>        self.assertThat(main_window.windowTitle, Equals("Hello World"))</div><div>$ </div></div><div><br></div></div>
</blockquote></div><br></div>