About Testing Xamarin.Forms Applications Tutorial (Legacy)

Applies to TestComplete 15.40, last modified on July 05, 2022
The information below concerns legacy mobile tests that work with mobile devices connected to the local computer. For new mobile tests, we recommend using the newer cloud-compatible approach.

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

To get the application, download the TestComplete Samples installation package from the https://support.smartbear.com/testcomplete/downloads/samples/ page of our website and run it. The sample will be installed to the <TestComplete Samples>\Mobile\Xamarin.Forms\Orders\ folder:

Android

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

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

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

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

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

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

  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 (Legacy) topic.

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

Prev     Next

See Also

Testing Xamarin.Forms Applications - Tutorial (Legacy)
Testing iOS Applications (Legacy)
Testing Android Applications (Legacy)

Highlight search results