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 <[email protected]>이 씀:
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 : [email protected]
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.
--
Ubuntu-quality mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-quality