[Ubuntu-touch-coreapps] Autopilot Emulator for ubuntu sdk apps is now a part of the sdk!
Nicholas Skaggs
nicholas.skaggs at canonical.com
Mon Aug 5 15:32:09 UTC 2013
John, let's answer your questions.
The emulator is intended as a way of making it easier for you to write a
test, as well as provide the best practices for doing so. For example,
everyone (almost) in the core apps has a toolbar. How should I open and
close it? How about tabs, how do I cycle through those? Using the
emulator gives you a easy function to call to help you out, and prevents
all the tests from doing it there own way, or worse, copying code
everywhere ;-)
Running the tests, and seeing the emulator is the same as any test.
autopilot run ..... And there is no difference visually running a test
using the emulator vs not. It's about making your test easier to
understand, cleaner to maintain, and faster to write.
Nicholas
On 07/28/2013 01:18 PM, John Kim wrote:
> Hi Nicholas,
>
> I have some questions.
>
> How would Ubuntu emulator be advantageous to running on device? Isn't
> the screen that pops up when Autopilot runs a testcase an instance of
> a emulator?
>
> Also, how do I run these tests and see the emulator in action?
> Autopilot run? How is it different from a testcase not using an
> imported emulator module?
>
> Nicholas Skaggs <nicholas.skaggs at canonical.com>이 씀:
>
> Following up on my earlier efforts to make autopilot easier for
> app developers, Leo Arias has made the emulator a proper module
> and part of the ubuntu sdk. And he's written tests for the
> functions so they should all work! Consider adopting the module
> going forward for use in your autopilot test writing :-)
>
> There's also some examples where Leo has converted a couple core
> apps over to using the emulator; the file manager and dropping
> letters both got a little love.
>
> https://code.launchpad.net/~elopio/ubuntu-filemanager-app/emulators
> https://code.launchpad.net/~elopio/dropping-letters/fix1199112-autopilot_test_start_new_game
>
> Read more details here:
>
> http://www.theorangenotebook.com/2013/07/an-autopilot-emulator-for-ubuntu-sdk.html
>
> Happy Automated Testing!
>
> Nicholas
>
> --
> Mailing list:https://launchpad.net/~ubuntu-touch-coreapps <https://launchpad.net/%7Eubuntu-touch-coreapps>
> Post to : ubuntu-touch-coreapps at lists.launchpad.net
> Unsubscribe :https://launchpad.net/~ubuntu-touch-coreapps <https://launchpad.net/%7Eubuntu-touch-coreapps>
> More help :https://help.launchpad.net/ListHelp
>
>
> --
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-quality/attachments/20130805/7d34e898/attachment.html>
More information about the Ubuntu-quality
mailing list