Recording a test for an HTML canvas application
You can record a test script in HCL DevOps Test UI (Test UI) to automate the playback of fundamental inputs, such as clicks and text entries, on dynamically rendered HTML canvas elements.
Before you begin
You must have completed the following tasks:
- Read and completed the tasks mentioned in Prerequisites for creating tests and Configuring applications for tests if they apply to the test that you want to create.
- Read and understood the Recording a Web UI test section for recording tests in different browsers.
- Read and understood the Web UI tests for HTML canvas applications section to know about the supported elements and limitations.
Procedure
-
In the UI Test perspective, click . Alternatively, on the toolbar, click the New Test
From Recording icon
.
The New Test From Recording wizard is displayed. - Click Create a test from a new recording in the Recording Session screen.
- Select Web UI Test.
- Optional: Click Recording Encryption Level, and then select the encryption level if you want to encrypt sensitive data in the application.
-
Click Next.
The Select Location page is displayed.
- Click to select a folder from the parent folder list.
- Type a name for the test.
-
Click Next.
The Select Client Application page is displayed.
-
Select a browser, and then click Next.
The Recorder Settings page is displayed.
- Select the recording preferences as required.
-
Click Finish.
The Welcome page is displayed with details such as the browser version and configured web applications.
- Click the link of the configured web application to test from the Configured Application list.
- Complete the user tasks on the HTML canvas elements in the web application.
-
Stop the recorder by closing the application under test or by clicking the
Stop icon
in the Recording Control
view.
The Test Generation dialog is displayed. -
Click Open Test to view the test, or click Close to close the dialog.
If you clicked Open Test, a confirmation message about data correlation is displayed.
- Click Yes to view the correlated data, or click No to close the dialog.
Results
You have created a Web UI test for the HTML canvas application. The test script is displayed in the test editor.