2gis / Winium.Mobile

Winium.Mobile is Selenium Remote WebDriver implementation for automated testing of Windows StoreApps and Silverlight apps, tested on emulators (currently only Windows Phone/Mobile apps are supported).
Mozilla Public License 2.0
51 stars 29 forks source link

A step to step installation #142

Closed jiajiang09 closed 8 years ago

jiajiang09 commented 8 years ago

Hi, NickAb I saw you have a lot of contributions on Winium, I do like your tools and saw all your post related to that. Right now, i want to install it in my windows machine and start to use it. I am really new on Windows 10, don't know how to do it, so can you provide a step to step installation on how to install your tool

Thanks so much

NickAb commented 8 years ago

Installing tool is as simple, as downloading it, but you will need to install emulators beforehand. The easiest way is:

  1. Make sure that your system meets requirements for Hyper-V and running emulators (you can find more info on msdn in requirements article for WP 8, but it should be similar to 8.1).
  2. You will need to install Visual Studio 2015 with Emulators.
  3. Try deploying your app to emulator using Windows Phone Application Deployment app, which comes as part of SDK
  4. Download latest Winium.StoreApps release

You environment should be ready.

jiajiang09 commented 8 years ago

OK, i will use emulator to do the test. For your Winum.StoreApps release, after download, unpack these three package. What should i do next? Follow https://github.com/2gis/Winium.StoreApps/ Quick Start part to followup? what do you mean by add reference to Winum.StoreApps.InnerServer in AUT project? Sorry about so many questions, i am still not that clear. Hope you can give more detail info on how to bring it up

Thanks

NickAb commented 8 years ago

Yes, you just need to run Winium.StoreApps.Driver.exe and follow quick start. AUT stand for app under a test. To use this version of driver you must have accesses to source code of app you want to test, as you will have to add automation server into it.

To do so, you have to add reference to Winium.StoreApps.InnerServer into the app you want to test. It can be done manually or using nuget as described in quick start. Then you will have to init automation server somewhere in your app, it can be done in MainPageOnLoaded, but actual place might vary if you use different frameworks.

You can also see samples and tests in the repos to get the ida how it works.