← Back to team overview

ubuntu-touch-coreapps team mailing list archive

Re: music-app testcase RuntimeError: Search criteria returned no results

 

John,

The music-app currently has a dependency upon
"qtdeclarative5-nemo-qml-plugin-folderlistmodel". If you install music-app
via the PPA, you'll pick this up automatically. Please run "sudo apt-get
install qtdeclarative5-nemo-qml-plugin-folderlistmodel" to directly fix
your issue.

Victor


On Wed, Jul 24, 2013 at 10:41 PM, John Kim <johnkim.ubuntu@xxxxxxxxx> wrote:

>  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
>
> --
> Mailing list: https://launchpad.net/~ubuntu-touch-coreapps
> Post to     : ubuntu-touch-coreapps@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-touch-coreapps
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References