About Testing Xamarin.Forms Applications Tutorial

Applies to TestComplete 14.30, last modified on November 21, 2019

Requirements

To complete this tutorial, you need the following:

About Tested Application

In this tutorial, we will use the Xamarin.Forms version of the Orders application (for the Android and iOS platforms) that is shipped with TestComplete. You can find the application in the following folders:

Android

<TestComplete Samples>\Mobile\Xamarin.Forms\Orders\TCProjects\Apps

iOS

<TestComplete Samples>\Mobile\Xamarin.Forms\Orders\Application\Orders.iOS\

For Android Xamarin.Forms applications use the assembled .apk file. To use the iOS sample, build the .ipa file yourself.

The Android application

Testing Xamarin.Forms applications tutorial: The Android application

Click the image to enlarge it.

The iOS application

Testing Xamarin.Forms applications tutorial: The iOS application

Click the image to enlarge it.

The application lets you manage a table of purchase orders: you can view a list of existing orders, modify or remove them, and add new orders to the list.

Preparation

  1. Add your iOS device to the provisioning profile of your tested application as described in Registering iOS Devices for Testing.

  2. Compile the Orders application for iOS as described in Preparing Xamarin.Forms iOS Applications.

  3. Prepare your iOS device for testing as described in Preparing iOS Devices.

  4. Prepare your Android device for testing as described in Preparing Devices, Emulators and Virtual Machines.

  5. Prepare your computer for testing as described in Preparing Test Computers and TestComplete for iOS Testing and Preparing Test Computers and TestComplete for Android Testing.

  6. In this tutorial, we will show you how to record a test for a Xamarin.Forms application on an iOS device and then run it on an Android device. If you are going to record your test on an Android device, we recommend that you configure your device to use the TestComplete Android Agent keyboard instead of its native onscreen keyboard. Otherwise, TestComplete may fail to record user input for text edit controls. See the Known Issues section in the About Xamarin.Forms Application Testing topic.

    To learn how to configure your Android device to use the Agent keyboard, see About TestComplete Android Agent Keyboard.

Prev     Next

See Also

Testing Xamarin.Forms Applications - Tutorial
Testing iOS Applications
Testing Android Applications

Highlight search results