Recording a Web UI test by using application designs

You can generate a Web UI test from the UI Test perspective by recording the user actions on the application designs that are configured on the Application Configuration page.

Before you begin

You must have completed the following tasks:

Procedure

  1. Go to the UI Test perspective.
  2. Click New > Test From Recording or click the New Test From Recording icon New Test From Recording on the toolbar.
    The New Test From Recording wizard is displayed.
  3. Click Create a test from a new recording.
  4. Select Web UI Test from the Test Nature list.
  5. Optional: If you are recording sensitive data, click Recording Encryption Level and select the encryption level to record.
  6. Click Next.
  7. Optional: If you did not create a test project earlier, click the Create the parent folder icon Create the parent folder to create a test project.
  8. Type a name for the test, and then click Next.
    The Select Client Application page is displayed.
  9. Select Application Design, and then click Next.
    The Select an Application Design page is displayed.
  10. Select an application design from the list, and then click Finish.
    The Virtual Client window opens with a configured design in the default browser.Virtual client
  11. Click the UI controls and perform user actions on the design to record test steps.
    The actions are listed in the Test Steps panel on the right side.
  12. Optional: Click either the next image in the bottom navigation pane or the hotspot to navigate to the next screen to record user actions if the application has multiple screens.
  13. Stop the recorder by clicking the Stop icon Stop icon in the left pane of the Virtual Client window after you complete all actions.
    The Test Generation dialog is displayed with a confirmation of test generation from the recording.
  14. Click Open Test to view the test steps or Close to close the Test Generation dialog.

What to do next

You can perform any of the following actions:
  • Edit the test in the test editor to add the missing labels and modify the steps as required. See Editing a test that uses application designs.
  • Run the test if the web application is deployed and available to run. You must enable self healing or guided healing when you run the test to update the test with the actual screens of the application. See Running a Web UI test.