ubuntu-touch-coreapps team mailing list archive
-
ubuntu-touch-coreapps team
-
Mailing list archive
-
Message #00516
music-app testcase RuntimeError: Search criteria returned no results
Hello all,
My name is John, a relative newcomer to automated testcases, and I am
interested in writing autopilot testcases for core apps during the
cycle. I read all the necessary information to configure my Ubuntu
13.04 computer and my Nexus 7 for Ubuntu Touch development.
I bzr-ed all the core apps and stowed it in ~/phablet/coreapps. My
first testcase I plan to tackle is the music-app. On launchpad, I
noticed two testcases have recently been written, and I wanted to check
them out. So I navigated all the way to
*~/phablet/coreapps/music-app/tests/autopilot* and ran 'autopilot list'
on the terminal. No problems there. But when I entered 'autopilot run
music...test_pause', I received several different errors, particularly
RuntimeError:('Search criteria returned no results'). The same applied
to the other two tests. All three of them lasted 20 seconds.
http://pastebin.com/UJDZ1Hnk
I read the code, and everything seems all right, from the setup to the
tests themselves. But I need to get my facts straight.
1. Aside from ssh-ing into the Nexus 7 and installing the testcases and
running them, how can I actually run local testcases on my Nexus 7?
The Autopilot community documentation hasn't explained this aspect.
I tried bzr, but it didn't quite work.
2. Why am I receiving the RuntimeError? When I read the code, it seems
the setup has been properly done.
3. When the testcase was running, the app itself didn't pop up to
demonstrate the testcase in action.
4. Finally, how can I actually put music into the Nexus 7?
Thanks if you can help me out here.
---
John Kim
Follow ups