Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mobile DevOps

You're reading from   Mobile DevOps Deliver continuous integration and deployment within your mobile applications

Arrow left icon
Product type Paperback
Published in Mar 2018
Publisher Packt
ISBN-13 9781788296243
Length 376 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
 Tak Tak
Author Profile Icon Tak
Tak
 Modi Modi
Author Profile Icon Modi
Modi
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
1. Introduction FREE CHAPTER 2. Working with Code Repository Systems 3. Cross-Platform Mobile App Development with Xamarin 4. Writing Your First Android Application with Xamarin 5. Implementing Automatic Testing Using Xamarin 6. Configuring TeamCity for CI/CD with Xamarin 7. CI/CD for Android with Visual Studio Team Services 8. Deploying Applications on AWS 9. Monitoring and Optimizing Application 10. Debugging the Application 11. Case Studies 1. Other Books You May Enjoy Index

Writing tests with Xamarin.UITest


Before we start writing UI tests with Xamarin.UITest, it is good to have a brief look at what unit testing is and how Xamarin.UITest is going to help us achieve our goal of automated testing for our mobile application.

Xamarin.UITest

Xamarin.UITest is a testing framework based on a popular test library in C#, NUnit. If you have used NUnit in your C# projects previously for unit testing, it will be really helpful to understand Xamarin.UITest faster. But if you don't have prior experience in NUnit, it's absolutely fine.

It is basically a set of libraries for C# (similar to JUnit for Java) to help write unit tests.

And by using UITest, we will be writing UI tests for our mobile application.

Fundamentals of UITest

UITest, or in general any NUnit-based test, has a defined structure to follow:

  • Test fixture: Test fixture is a class containing tests, and it also does the initial setup for any test to be executed or any task that needs to be done after the test has finished...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images