This fork and branch is an example demonstrating how to configure Cross-Platform UI Testing with Specflow, Xamarin,and CodedUI. It was created for a blog series on the InfernoRed Technology Blog. In this example we combine the aforementioned technologies to leverage the Gherkin language in UI tests on Android, iOS, and Windows (8.1 and UWP).
The crux of this strategy relies on leveraging Xamarin's excellent work in their Xamarin.UITest library that already takes care of abstracting the platform for us. In Xamarin.UITest, there is an IApp interface that provides a common language for working with platforms in a fluent way. Since Xamarin.UITest doesn't work with windows (yet?), we need to implement this interface on Windows and call the respective CodedUI methods. From there it is a matter of building out common boilerplate to glue SpecFlow Features and Steps to both platforms. It's all here in this pamphlet.
- I wanted a fairly basic sample that already compiles and runs on my platforms of choice
- MvvMCross is awesome and I use it frequently for demanding and high performance applications
- Twitter (@AddressXception)
- Email (InfernoRed.BlogATAddressXception.com)
MvvmCross is a cross-platform mvvm framework that enables developers to create cross platform apps. Additional support is available for Xamarin.Forms and the Android support library. Lots of plugins are available as well.
See the official MvvmCross blog for the latest news!
- StackOverflow
- Xamarin forums
- Slack join the mvvmcross channel after you are in
See the MvvmCross Wiki for additional articles and information.
When creating a new sample, please do the following:
- Use NuGets for all external references
- Provide a Readme.md file describing the sample
- Provide a screenshots of the sample
This project is developed and distributed under the Microsoft Public License (MS-PL).