+ All Categories
Home > Technology > Ui testing for Windows Phone

Ui testing for Windows Phone

Date post: 02-Jul-2015
Category:
Upload: stuart-lodge
View: 869 times
Download: 1 times
Share this document with a friend
12
UI Testing for Windows Phone 7 @slodge
Transcript
Page 1: Ui testing for Windows Phone

UI Testing for Windows Phone 7@slodge

Page 2: Ui testing for Windows Phone

Windows Phone Test Framework

AutomationPeer Control (via HTTP)

Keyboard and Touch Input

CoreCon control of Emulator (COM)

@slodge – Windows Phone Test Framework

Page 3: Ui testing for Windows Phone

Available C# Commands

Automation Peer:

GetText

SetText

GetValue

SetValue

Select

Scroll

GetPosition

IsVisible

TakePicture

etc

Touch/Keyboard:

BACK & START

Tap

Flick

Key press

etc

CoreCon:

Install

Uninstall

Start

Stop

@slodge – Windows Phone Test Framework

Page 4: Ui testing for Windows Phone

Wrapped by Gherkin Steps

Automation Peer:

Then I enter "Hello World" into the control "TextBoxInput"

Touch/Keyboard:

Then I flick "RightToLeft"

CoreCon:

Given my app is clean installed and running

Steps are C#/NUnit - so write your own:

I get the recent transaction list for “fred” with password “password”

@slodge – Windows Phone Test Framework

Page 5: Ui testing for Windows Phone

A Script example…

Gherkin Scripts

C# NUnit

@slodge – Windows Phone Test Framework

Page 6: Ui testing for Windows Phone

Enough talk!

Demo time

@slodge – Windows Phone Test Framework

Page 7: Ui testing for Windows Phone

Video…

Page 8: Ui testing for Windows Phone

Used for real- drill down results and screenshots

@slodge – Windows Phone Test Framework

Page 9: Ui testing for Windows Phone

Used for real- summary report

@slodge – Windows Phone Test Framework

Page 10: Ui testing for Windows Phone

Available “now”

GitHub

http://bit.ly/wp7testgit

nuget

PM> Install-Package WP7Test

PM> Install-Package WP7TestClient

A good intro to UI testing on Mobile (via @JagReehal)

http://slidesha.re/rOVUB2

@slodge – Windows Phone Test Framework

Page 11: Ui testing for Windows Phone

The future?

More

More interop

More steps

More samples

More platforms:

Android – Robotium and LessPainful.com

iPhone - Frank

BlackBerry – maybe…

Integration with ViewModel testing

Integration with Mocking

Integration with http://bit.ly/mvvmcross

@slodge – Windows Phone Test Framework

Page 12: Ui testing for Windows Phone

UI Testing for Windows Phone 7@slodge


Recommended