O'Reilly logo

Mobile DevOps by Jhalak Modi, Rohin Tak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tests.cs

This file is the default file that gets created when we add the UITest project in the solution through the Xamarin.UI Android Test Project template, and we will be writing our UI tests in this file. There are certain things to note in this file:

  • [TextFixture]: This is an annotation added to the Tests class that tells the UITest framework that this class contains tests to be run.
  • [Setup]: Each class containing tests needs to set up an initial configuration, as with the APK file path in the previous section. This is added to the BeforeEachTest() method and tells the framework to run this method and perform the initial setup before running the test.
  • [Test]: This annotation identifies the method that contains the test.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required