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
About this task
- 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
- From your test navigator, select and right-click the required Web UI or compound tests for which you want to run the distributed tests.
-
Right-click the selected tests and click Run Distributed
Tests. The Run Accelerated Functional
Test dialog containing the selected tests is displayed.
Note: This is the only method to run an AFT suite.
- Click Add to add more tests to the distributed test. Click Remove to remove the required tests.
-
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.
- Click Browse to select a location to save the test asset and provide a name for the test asset.
- Click Next.
-
In the Select browser(s) dialog, 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:
- From the test navigator, right-click the accelerated functional asset
XML file and click Run Distributed Tests. The
Run Accelerated Functional Test dialog 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.
- Re-run failed tests only from last
playback: Select this checkbox if you want to
rerun only the failed tests from the previous playback.
- Click OK.
- From the test navigator, right-click the accelerated functional asset
XML file and click Run Distributed Tests. The
Run Accelerated Functional Test dialog is
displayed.You can choose to select the following checkboxes:
Results
You have created an Accelerated Functional Test asset.