Run your test and analyze results

This exercise describes how to run your web test on the AdvantageDEMO site, and view results afterwards.

Log out of the AdvantageDemo site

The test you created in this tutorial starts by logging in to the site. Therefore, prepare your environment by logging out before you run your test.

On the AdvantageDemo site, click the USER menu at the top right, and then click Sign Out.

Back to top

Define your Record and Run Settings

Define the UFT Record and Run Settings to automatically open the AdvantageDEMO site when your test begins.

Do the following:

  1. In UFT, select Record > Record and Run Settings.

  2. On the Web tab, select Open the following when recording or running:

  3. From the Use dropdown, select Local Browser.

  4. In the URL field, ensure that the following URL appears:

  5. In the Browser dropdown, select Google Chrome.

  6. Select both of the following check boxes:

    • Do not record and run on open browsers
    • Close the browser when the test closes
  7. Click OK to close the dialog, and save your test.

Back to top

Run your test and analyze the results

Run your test to verify that the AdvantageDEMO site behaves as expected, according to the steps you created in your test.

In the UFT toolbar, click Run. In the Run dialog that's displayed, keep the default run results location, and click Run.

UFT is minimized. A new Chrome browser is opened, and UFT starts running through the steps in your test. You can watch as UFT highlights objects, clicks links, and populates the fields as you'd instructed.

When the test run completes, UFT displays your run results. Browse through each step to view the actions performed, and the object properties identified and confirmed.

For example:

Back to top

Where do you go from here?

Use the basic skills you learned in this tutorial to start analyzing your own web app and creating UFT tests to verify you user flows.

  • Record actions, add additional test objects to your object repositories, and add steps using the Keyword View, Toolbox pane, and the Editor.

  • Learn about additional UFT features, such as parameter values, checkpoints, and API service testing, using the main UFT tutorial and the WPF MyFlights demo app. For details, see UFT tutorial.

  • Find out more about web testing with UFT. For details, see:

    • Web-Based Application Support. Describes additional details about web testing with UFT.
    • Web Add-in. Describes additional details about UFT's Web add-in, which is used to identify objects in your web app.
    • The Web section of the Object model reference. This reference details the test objects and properties that can be used to recognize objects in your web app.

Back to top