Plan your test and create a solution

Before you start creating your test, analyze your application to understand its application processes - the distinct activities that the application performs to complete a specific task.

Start by exploring the demo flight reservation application installed with UFT.

Explore the sample MyFlight application

Explore the sample MyFlight application installed with UFT before you start creating the tests in this tutorial. Access both the GUI and API layers to understand the user and back-end processes you'll need to test.

Flight GUI layer

The MyFlight application is the user interface layer of the sample application used in this tutorial.

To access the MyFlight app, do the following:

  1. From the Start menu, select All Programs > Micro Focus > Micro Focus Unified Functional Testing > Sample Applications > Flight GUI.

  2. Log in using John as the Username and hp as the password.
  3. Use the MyFlight app to create a flight reservation. On each page, enter the required details, including cities, dates, and passenger details.

    As you navigate through the user interface, consider the user actions you'll want to test, and the test objects you'll need to create in UFT to represent the user interface elements in your test.

    When you're done, click New Search to return the application to the start page.

Flights API layer

The Flights API service layer represents the back-end API layer of the MyFlight sample application.

Do the following to view the API services:

  1. From the Start menu, select All Programs > Micro Focus > Micro Focus Unified Functional Testing > Sample Applications > Flight API.

  2. Click the Help button to see a description of the methods included in the application.

    Explore each one, noting the property details provided for each method. You'll use this data later on when designing a test that provides property values for each method.

Back to top

Start UFT and create a solution

Use a UFT solution to serve as a container for your test. In this tutorial, you'll add both GUI and API tests to the solution, as well as function libraries.

Do the following:

  1. Open UFT by clicking the icon saved on your desktop, or selecting the following from the Start menu:

    All Programs > Micro Focus > Micro Focus Unified Functional TestingMicro Focus Unified Functional Testing

  2. In the Add-ins Manager window that shows by default when you start UFT, ensure that only the WPF Add-in is selected. Clear all other Add-ins, and then click OK to open UFT.

    Tip: Whenever starting UFT, load the relevant UFT Add-ins for your app. If your app is written in Java, load the UFT Java Add-in. Clear irrelevant add-ins to speed up your UFT performance.

    The MyFlight app is written in WPF, and therefore this tutorial requires the WPF Add-in.

  3. In UFT, click the New drop-down in the toolbar, and select Solution.

  4. In the File name field, enter MyFlightApplication, and click Create.

    The new MyFlightApplication solution is shown in the Solution Explorer pane.

    Tip: If the Solution Explorer is hidden, select View > Solution Explorer to display it.

Next steps: