1. Create a Test Project

Applies to TestComplete 12.60, last modified on September 17, 2018
  1. In TestComplete, if you have an open project or project suite, select File > Close from the main menu to close it.

  2. Select File > New > New Project from the main menu. The Create New Project wizard will appear.

  3. In the wizard, enter the project name and the location where you want to store the project. In this tutorial, we will name the project XFOrders and use the default location.

    Testing Xamarin.Forms applications tutorial: Creating a new Project

    Click the image to enlarge it.

  4. On the next page, select iOS applications, and then add the tested iOS Xamarin.Forms application to the project:

    Note: In this tutorial, we are going to create a test for an iOS Xamarin.Forms application and then reproduce this test for an Android Xamarin.Forms application. The Android Xamarin.Forms application will be added to the project later.
    • Click Add. The Add iOS Application wizard will appear.

    • On the first page of the wizard, specify the path to the assembled .ipa file:

      Note: The Orders application for iOS must already be compiled and prepared as described in Preparing Xamarin.Forms iOS Applications.

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

      Testing Xamarin.Forms applications tutorial: Adding the Tested Application

      Click the image to enlarge it.

    • Make sure the Deploy to the device on start option is selected and click Next.

      Note: If TestComplete shows a message informing you that it cannot patch the application, select the Add the application "as is" option.
      Testing Xamarin.Forms applications tutorial: Adding iOS Xamarin.Forms application as is

      Click the image to enlarge it.

    • Make sure the Autorun check box is selected. If it is selected, TestComplete automatically launches the Orders tested application on the mobile device when you start test recording. If the check box is clear, you will have to launch the application manually to record user actions over it.

  5. On the last page, choose the preferable scripting language and click Finish.

    Note: In this tutorial, we will use the JavaScript scripting language. So, select JavaScript on the page.

TestComplete will create the project and open it in the Project Explorer.

Testing Xamarin.Forms applications tutorial: Added the XFOrders project

Click the image to enlarge it.

Prev     Next

See Also

Testing Xamarin.Forms Applications - Tutorial
Projects in TestComplete

Highlight search results