Creating an Accelerated Functional Test asset

You can create an Accelerated Functional Test asset while running tests by using the distributed test option. When you create an Accelerated Functional Test asset, an XML file is generated that contains the selected tests along with the browsers. You can also add more tests, browsers, devices, and agents to extend the tests.

Before you begin

You must have created one or more Web UI tests or compound tests.

About this task

Accelerated functional testing supports two types of parallel execution. The executions are as follows:
  • Execution of a single Web UI or compound test on multiple browsers: This execution is supported on all installed browsers such as Microsoft Internet Explorer, Microsoft Edge, Google Chrome, Mozilla Firefox, and Apple Safari simultaneously. This combination can be specified in the XML file to execute the tests locally as well as remotely. If you want to execute the tests remotely, you must specify the remote agents in the XML file.
  • Execution of multiple tests on multiple browsers: This execution is supported only on Mozilla Firefox and Google Chrome browsers. It is also supported on Chrome device mode.

Procedure

  1. From your test navigator, select and right-click the required Web UI or compound tests for which you want to run the distributed tests.
  2. Right-click the selected tests and click Run Distributed Tests. The Run Accelerated Functional Test dialog box containing the selected tests is displayed.
    Note: This is the only method to run an AFT suite.
  3. Click Add to add more tests to the distributed test. Click Remove to remove the required tests.
  4. Click Save as to rerun the same set of tests that you have selected. The tests are saved as an accelerated functional test asset and generate an XML file that you can use to run the distributed tests later.
    Note: If you do not select the Save as check box, then the tests are not saved as an accelerated functional asset and the distributed tests run only once.
  5. Click Browse to select a location to save the test asset and provide a name for the test asset.
  6. Click Next.
  7. In the Select browser(s) dialog box, select the required browser and click Finish.

    The accelerated functional test asset starts running the XML file is now created. To execute the accelerated functional test asset by using the XML file, complete the following steps:

    1. From the test navigator, right-click the accelerated functional asset XML file and click Run Distributed Tests. The Run Accelerated Functional Test dialog box is displayed.You can choose to select the following checkboxes:
      • Re-run failed tests only from last playback: Select this checkbox if you want to rerun only the failed tests from the previous playback.
        Note: If this option is enabled, the failed tests are rerun only on the browsers and location on which the test failed previously.
      • Fix the browser-driver incompatibility: Select this checkbox to automatically resolve the incompatibility between the browser and the driver, while you play back the AFT tests.
        Tip: As the playback starts only after the appropriate driver is downloaded, a timeout error might occur if the application is not started within the time limit specified in the Time Out field. You must increase the time in the Time Out field. To resolve this error, you can modify the timeout value. The default timeout is 10 seconds. To modify the timeout, check the option and enter a new value.
    2. Click OK.

Results

You have created an Accelerated Functional Test asset.