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

Explore the sample MyFlight application

Explore the sample MyFlight application installed with UFT One 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 > 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 One to represent the user interface elements in your test.

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

Flight API layer

The Flight 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 > 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 One and create a solution

Use a UFT One 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 One by clicking the icon saved on your desktop, or selecting All Programs > Micro Focus UFT One from the Start menu.

    The path may vary depending on UFT One versions.

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

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

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

  3. In UFT One, 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: