Skip to Main Content
Cucumber Recipes
book

Cucumber Recipes

by Ian Dees, Matt Wynne, Aslak Hellesoy
February 2013
Intermediate to advanced content levelIntermediate to advanced
272 pages
5h 45m
English
Pragmatic Bookshelf
Content preview from Cucumber Recipes
Recipe 27Test on Windows Phone

Problem

You want to test a Windows Phone app using Cucumber syntax.

Ingredients

  • 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

Solution

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Cucumber Cookbook

Cucumber Cookbook

Shankar Garg
Basiswissen Softwaretest , 6th Edition

Basiswissen Softwaretest , 6th Edition

Andreas Spillner, Tilo Linz
React Cookbook

React Cookbook

David Griffiths, Dawn Griffiths

Publisher Resources

ISBN: 9781941222607Errata