4

Can I run UI automated testing on a Windows Phone 8 emulator? So far all the answers and articles I could find refer to Windows Phone 7 platform.

Are there any Microsoft tools or perhaps some third party libraries that address this issue? Can I do this on the emulator without an actual device?

Kate Gregory
  • 18,808
  • 8
  • 56
  • 85
CodinRonin
  • 175
  • 1
  • 8
  • Hi @CodinRonin welcome to SO! Questions asking for "the best" are often closed, so I've edited yours a bit to fit our style - now it is an answerable question. You can edit it yourself more if you want to. – Kate Gregory Feb 22 '13 at 12:41
  • Thanks Kate. I'll mind this in the future. – CodinRonin Feb 22 '13 at 12:48
  • An answer about WP8 from the author of an article on WP7 automation is provided in [connect to windows phone 8 using console application](http://stackoverflow.com/questions/13420733/connect-to-windows-phone-8-using-console-application) – sah Mar 05 '13 at 20:42
  • this may be what you're looking for: http://stackoverflow.com/questions/16544730/ui-automation-in-windows-phone-8-application – canhazbits Sep 23 '13 at 23:31
  • You can take a look at https://github.com/2gis/winphonedriver project. It is Windows Phone Driver for Selenium. – NickAb Nov 16 '14 at 06:42

1 Answers1

2

Coded UI now supports UI automated tests for Windows phone 8. It can be run in emulator, so you won't need an actual device.

To start with Coded UI tests for WP in your solution select File->Add->New project... In the Add New Project dialog select Coded UI Test Project (Windows Phone) under Visual C#->Windows phone Apps node

Here is a link to Automated Testing of XAML-Based Apps for Windows and Windows Phone session by Prachi Bora http://channel9.msdn.com/Events/Build/2014/3-593

Session summary:

Do you want to create automated tests for your apps? With Visual Studio 2013 Update 2 you can now create automated tests for your XAML-based Windows and Windows Phone apps. Starting from unit tests to functional end-to-end scenario tests using coded UI tests, you can now perform all of your testing from the integrated Test Explorer in Visual Studio. The testing framework is extensible and developers can customize it to meet the specialized needs of their application. In this session, we will show you how to build comprehensive test suites for your apps by leveraging these Visual Studio capabilities that will help you ship a great quality app.

NickAb
  • 6,337
  • 3
  • 15
  • 18
  • How are you? I have appx file only.Can i automate it without any source code? Could you please provide a example of it? Thanks. – Almett Mar 18 '16 at 10:35
  • Hello. You can find example of preinstalled Calendar app automation using Winium.StoreApps.CodedUI at https://github.com/2gis/Winium.StoreApps.CodedUi/blob/master/TestExamples/test_sample.py Note that Winium.StoreApps.CodedUI is proof of concept and not production ready. You can try using coded UI directly, here is a link to MS blog https://msdn.microsoft.com/en-us/library/dn747198.aspx – NickAb Mar 19 '16 at 06:12