Prerequisites for creating tests
Before you can create a test, you must complete the prerequisite tasks.
When you use HCL OneTest™ UI to record a test for the application under test (AUT), you must ensure that you follow the prerequisite conditions mentioned or complete the prerequisites tasks.
Find information about the conditions that are independent of the web browsers that you
must complete:
- You must wait for each page to load completely when you record a test. Note: This waiting time does not affect performance results because you can remove extra waiting time (think time) when you configure a run to play back the test.
- You must enable the JavaScript option in a web browser to record and play back Web UI scripts.
- You must install the Mozilla Firefox, Microsoft Edge, or Google Chrome browsers on computers that run Mac operating system at the default location of /Applications when you want to record or play back a Web UI test.
Prerequisites for using the Google Chrome browser
You must complete the following tasks when you want to use the Google Chrome browser
for recording web applications:
- Install the Google Chrome extension for Web UI testing when you want to record web applications that run on the Google Chrome browser. See Enabling Google Chrome for Web UI testing.
- Enable the Google Chrome Device Mode feature to emulate web applications on mobile devices when you want to record such tests. See Recording a test with Google Chrome Device Mode.
Prerequisites for using the Microsoft Edge browser
You must complete the following task when you want to use the Microsoft Edge browser
for recording web applications:
- Install the Edge extension for Web UI testing when you want to record web applications that run on the Edge browser. See Enabling Microsoft Edge for Web UI testing.
Prerequisites for using the Internet Explorer browser
You must complete the following tasks when you want to use the Internet Explorer
browser for recording web applications:
- Add
<!DOCTYPE html>
at the beginning of the HTML source of the pages to ensure that the browser always loads the web pages in standard mode. - Click and clear all the selections to prevent the application from running on a compatibility mode internally.
- Enable the HCL OneTest™
UI
extension in the browser when you are recording the test with Internet
Explorer for the first time by performing any of the following actions:
- Click Enable in the dialog that appears the first time you start Internet Explorer after you installed HCL OneTest™ UI.
- Open Internet Explorer and click RtwIEBhoWithJS Class, and then click the Enable option. . Then, select
Prerequisites for using the Mozilla Firefox browser
You must complete the following tasks when you want to use the Mozilla Firefox
browser for recording web applications:
- Install the Web UI browser extension for Firefox®. See Enabling Mozilla Firefox for Web UI testing.
- Check the Use an alternate Firefox profile option in the Recorder Settings dialog, and select a user profile that is associated with the extension.
- Clear the Firefox® cache before you start the Firefox® browser so that the browser extension can run and record the web applications.
Prerequisites for using the Safari browser
You must complete the following tasks when you want to use the Safari browser for
recording web applications:
- Enable the Safari browser when you want to record Web UI tests. See Enabling the Apple Safari browser to perform Web UI tests on macOS.
- Click the to be able to record a test.
- Click Stop Session in the dialog that is presented when you start the recording of the web application in the Safari browser.