Skip to content

Prototype of Winium.StoreApps driver using CodedUI. Implements JsonWireProtocol for automation of Windows Phone applications

Notifications You must be signed in to change notification settings

TelenorCapture/Winium.StoreApps.CodedUi

 
 

Repository files navigation

Winium.StoreApps.CodedUi

Winium.StoreApps.CodedUi is an prototype test automation tool for Windows Store apps, tested on emulators and devices.

It is based on https://github.com/2gis/Winium.StoreApps

How does it work

There are two parts: Winium.StoreApps.Driver and Winium.StoreApps.CodedUITestProject

Winium.StoreApps.CodedUITestProject

  • Looped CodedUI test that gets deployed to selected emulator or device
  • Runs Socketserver that listens for automation commands (those commands correspond to JsonWireProtocol commands)

Winium.StoreApps.Driver

  • Selenium Remote WebDriver implementation
  • Listens for your test commands
  • Handles NewSession command
  • Start emulator or device and deploys your app
  • Deploys Winium.StoreApps.CodedUITestProject
  • Handles Quit command
  • Stops Winium.StoreApps.CodedUITestProject server
  • Proxies all commands (except NewSession and Quit) to Winium.StoreApps.CodedUITestProject

Winium.StoreApps vs Winium.StoreApps.CodedUi

Winium.StoreApps vs Winium.StoreApps.CodedUi

How to run test

  1. Build solution
  2. If you have Visual Studio different from 2013 or in non standard path, then replace VsTestConsolePath value in App.config with actual path to vstest.console.exe. Note: different versions of vs.test.console.exe might require different command line options, we tested prototype only against VS 2013.
  3. Optionally. Build and create store package (appx) for Winium.StoreApps.TestApp (if you want to run test against it)
  4. Run Winium.StoreApps.Driver
  5. Run tests (solution comes with samples)

We already support some basic commands:

  • NewSession
  • FindElement
  • FindChildElement
  • FindElements
  • FindChildElements
  • GetElementText
  • ClickElement
  • SendKeysToElement
  • SwitchToWindow
  • Close

About

Prototype of Winium.StoreApps driver using CodedUI. Implements JsonWireProtocol for automation of Windows Phone applications

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 97.5%
  • Python 2.5%