February 2013
Intermediate to advanced
272 pages
5h 45m
English
| Recipe 27 | Test on Windows Phone |
You want to test a Windows Phone app using Cucumber syntax.
Visual Studio Professional 2010 Service Pack 1[172] or newer
The Windows Phone SDK 7.1[173]
The Windows Phone Test Framework[174] by Expensify
SpecFlow[175] for parsing Cucumber syntax
NUnit[176] to run the tests
The NuGet package manager[177] to install the testing tools
Writing Cucumber-style tests for Windows Phone involves orchestrating a few different pieces that work together. A test runner starts and stops the test. SpecFlow parses your plain-English test steps and matches them to your C# step definitions. A server embedded into your app listens for incoming commands and simulates screen taps.
The Windows Phone Test Framework ...