Beginning Automated Testing of Xamarin Applications

Complete coverage of unit testing, including test-first design, as well as Xamarin's UI testing and test cloud.
Course info
Rating
(53)
Level
Beginner
Updated
Nov 6, 2015
Duration
59m
Table of contents
Description
Course info
Rating
(53)
Level
Beginner
Updated
Nov 6, 2015
Duration
59m
Description

Complete coverage of unit testing, including test-first design, as well as Xamarin's UI testing and test cloud.

About the author
About the author

Jesse Liberty is a Senior Consultant at Wintellect, where he specializes in Xamarin, Azure and Web development. He is a Certified Xamarin Developer, a Xamarin MVP and a Microsoft MVP.

More from the author
Visual Studio for Mac
Beginner
1h 19m
Apr 16, 2018
More courses by Jesse Liberty
Section Introduction Transcripts
Section Introduction Transcripts

Test Driven Design
Hi, this is Jesse Liberty for Pluralsight, and this module is Test Driven Design. In this module, we're going to open up the development environment and begin the create a non-trivial application that is test driven, and we're also going to use unit tests to ensure the integrity of the code that we're writing.

Challenges in Testing Xamarin Applications
Hi, this is Jesse Liberty for Pluralsight, and this module is Challenges in Testing Xamarin Applications. We're going to continue building our application using unit testing and test-first development, and we're also going to explore some of the limitations especially specific to mobile development, such as the difficulty in creating mocks due to the difficulty in using Reflection.

Testing the User Interface with Xamarin Test Cloud
Hi, this is Jesse Liberty for Pluralsight, and this module is Testing the User Interface with Xamarin Test Cloud. Xamarin Test Cloud is a commercial service available from Xamarin, and the idea is that it allows you to test your application on over a thousand devices. You can mix and match the devices you want to test, and the operating systems you want to test them on. You start by filtering down to the devices that are possible for your combination, and then pick and choose those device operating system combinations that make sense for your needs. You then allow those tests to be run in the cloud, and you get back a full report on which tests failed, and which succeeded, how many devices you tested them on, and the failures are broken out by operating system category, by form factor, and manufacture. We're also going to take a look at the REPL. The REPL stands for Read, Eval, Print, and Loop, and is an extremely powerful tool that allows you to build your UITest interactively. This is what it looks like when it's running. It can be a little intimidating at first, but notice that in the middle you have app. EnterText, and that allows you to simulate entering text into a text field. Similarly, you can simulate pushing a button with app. Tap.

Review and Next Steps
Hi, this is Jesse Liberty for Pluralsight, and this final module is Review and Next Steps. You'll remember that we took a look at perhaps the most important aspect in unit testing, which is Red, Green, Refactor. That is, create a test that you know will fail to prove that it's valid, then write just enough code to get that test to work. When it comes to UI testing, the most important thing we walk away with is the REPL, which allows us to interactively build the UI test, and then migrate that into our code. The next thing that you want to do from here, is to check out the Pluralsight courses on testing, and then go on to the Pluralsight courses on SOLID programming. You want to make sure you're reading other people's code, especially developers who you respect and who write clean code, and you'll want to write tests, write more tests, and did I mention write tests? Finally, please leave comments and questions, and be sure to rate this course.