Recording a Web UI test
Before you begin
- When recording a test, wait for each page to load completely. This waiting time does not affect performance results because you can remove extra waiting time (think time) when you play back the test.
- If some actions performed in the application under test are missing, you need to select an action in the preferences so that the recorder capture every single action on a web page. To do so, navigate to and select Record all actions on the page.
- Do not change any browser preferences, including JavaScript settings. JavaScript should be enabled to record and play back Web UI scripts in a browser.
- Ensure that you have manually enabled the Safari browser for recording Web UI tests. For instructions, see Enabling Apple Safari for Web UI playing back on a Macintosh computer.
- To be able to record a test with Safari, some changes are required:
- In Safari, click the Develop menu and select Allow Remote Automation.
- When the tool starts the Safari browser for recording a test and you enter the application URL, you are prompted with a dialog box. To proceed with the recording of the test, click on Stop Session.
- To record and play back a test with the Mozilla Firefox and Google Chrome browsers on the Mac operating system, ensure that you have installed the browsers at the default location /Applications.
- For Rational® Internet Explorer 9 or later:
- To ensure that the browser always loads the web pages in standard mode, add <!DOCTYPE html> at the beginning of the HTML source of the pages.
- To prevent the application from running on a compatibility mode internally, in Internet Explorer, click and clear all of the check boxes.
- If you are recording the test with Internet Explorer 11 for the first time, you have to manually enable the HCL OneTest UI extension in the browser. To enable the extension, click Enable on the pop-up that appears the first time you start Internet Explorer after installing HCL OneTest UI. You can also open Internet Explorer and click . Then, select RtwIEBhoWithJS Class and click the Enable button.
- To record a test that emulates a web application on a mobile device, see Recording a test with Google Chrome Device Mode.
- To record a test on Mozilla
Firefox browser 54 or later:
- Install the Web UI browser extension for Firefox 57, see Enabling Mozilla Firefox for Web UI testing for details. This new recommended web extension style is supported from Firefox 54 and later.
- In the Recorder Settings dialog, check the Use an alternate Firefox profile option and select a user profile that is associated to the extension plug-in.
Before running the Firefox browser, it is recommended to clear the Firefox cache. This procedure allows you to run the enabled Firefox recorder browser extension and to record successful tests.
Certain websites require appropriate certificates to use a proxy recorder to record the site. The recorder certificate is required to record all the secured sites. The client certificate is different and it serves as an additional layer of security that is required by the web server to authenticate the client/browser. If some applications use Secure Sockets Layer (SSL), the proxy recorder can cause authentication problems because SSL relays traffic between the client and the server. Depending on the authentication method in place, the client might require the proxy recorder to authenticate itself as the server, and the server might require the proxy recorder to authenticate as the client. If the client program requires an authenticated server, you must either have access to the server certificate keystore and provide it to the proxy recorder or configure the client to accept the default certificate from the proxy recorder instead of the certificate from the actual server.
To record an application that requires a client-side certificate, import the client certificate to the HCL OneTest Performance project. To import the certificate, click , and navigate to the folder that contains the certificates and click Finish.

Procedure
What to do next
When the test is generated, you can edit it in the test editor. For information, see Editing Web UI tests.
To create variable data for the test, you can use the dataset candidates suggested by the workbench when you first open the generated test. For more information, see Viewing dataset candidates when you open a test.