Skip to content

vishal-sharma/MvvmCross-Samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Cross-Platform UI Testing with Specflow, Xamarin, and CodedUI


(Based on MvvmCross-Samples)

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

So how'd you do it?

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.

Why fork MvvMCross-Samples?

  1. I wanted a fairly basic sample that already compiles and runs on my platforms of choice
  2. MvvMCross is awesome and I use it frequently for demanding and high performance applications

What if I have questions?


About MvvMCross

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!

Questions & support

Documentation

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

Acknowledgements


Licensing

This project is developed and distributed under the Microsoft Public License (MS-PL).

About

Example using CodedUI, Xamarin.UITest, and SpecFlow for automated UI testing based on the MvvmCross TipCalc sample

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.4%
  • Other 0.6%