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 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.
The MyFlight application is the user interface layer of the sample application used in this tutorial.
To access the MyFlight app, do the following:
From the Start menu, select All Programs > Micro Focus > Micro Focus Unified Functional Testing > Sample Applications > Flight GUI.
- Log in using John as the Username and hp as the password.
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.
The Flights API service layer represents the back-end API layer of the MyFlight sample application.
Do the following to view the API services:
From the Start menu, select All Programs > Micro Focus > Micro Focus Unified Functional Testing > Sample Applications > Flight API.
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.
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:
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 Testing > Micro Focus Unified Functional Testing
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.Click for details if
you can't find the Add-in Manager or the WPF Add-in
If the Add-in Manager doesn't show by default, enable this from the UFT Options. From within UFT, select Tools > Options > General > Startup Options > Select Display Add-in Manager on startup.
If the WPF Add-in is not displayed, this means it was not installed with UFT. To add it, run an Change of your installation, and select to install the .NET and WPF Add-ins.
In the File name field, enter MyFlightApplication, and click Create.
The new MyFlightApplication solution is shown in the Solution Explorer pane.
If you need to, click the Solution Explorer toolbar button display the Solution Explorer.