Run and analyze your GUI test

This exercise describes how to run the MyFlight GUI test you've created in the previous exercises, and then analyze the run results.

Run your test

This procedure describes how to run your MyFlight test on the MyFlight sample GUI app.

Do the following:

  1. Start with UFT open to the MyFlight solution and test, as in previous exercises.

  2. Configure UFT to always save captured images with the run results. This enables you to view and examine the actual values found in the app during the test run.

    Select Tools > Options > GUI testing > Screen capture

  3. Configure the Record and Run Settings to run on the FlightsGUI.exe app.

    1. Select Record > Record and Run Settings.

    2. On the Windows Applications tab, select Record and run only on ... Applications specified below

    3. Click Add. Then, in the Application Details dialog, browse to and add the FlightsGUI.exe app.

      The Working folder value is automatically populated.

  4. In the Solution Explorer, click the MyFlight test node to bring it into focus.

  5. Check to see if your MyFlights sample app is currently open. If it is, close it so that UFT can open it during your test run.

  6. In the toolbar, click Run.

    1. In the Run dialog, click the Options bar to display your run options.

    2. Select to write run results to a New run results folder. Accept the default folder name.

  7. In the Run dialog, click Run to start running your test.

Watch as UFT opens the MyFlight sample app, and starts running the test. UFT highlights the current step in your test as it goes along.

If any errors occur, go to the point in the test that is indicated in the error message, and verify that the steps is configured as described in the relevant exercise.

When the test run is complete, the run results open as a separate tab in UFT.

Back to top

Analyze your run results

UFT's run results include the following areas:

Test data

General information about your test. Click Show more to expand for details.

If you parameterized your test, you can download an spreadsheet of the data values used during the test run by clicking Test Data. You didn't do that in this exercise, but we'll return to this link later on in the tutorial.

Errors list. A list of any warnings or errors that occurred during your test run.
Test flow A graphical representation of the results in a tree of actions and steps.
Step details More details about the step currently selected in the Test flow, including any snapshots captured during the test run, and details about the test objects used.

Click through the run results for various steps to explore. Then, continue on to the next exercises to learn about enhancing your test with parameter values, checkpoints, or even testing the MyFlights app service level using an API test.

Back to top

Next steps: