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 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.
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 UFT One > 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 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.
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 UFT One > 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 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:
Open UFT One by clicking the icon saved on your desktop, or selecting the following from the Start menu:
All Programs > Micro Focus > Micro Focus UFT One > Micro Focus UFT One
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.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 One Options. From within UFT One, 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 One. 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.
Tip: If the Solution Explorer is hidden, select View > Solution Explorer to display it.