Recording steps for an existing Web UI test

If you already have a test, you can add more steps to it at a desired location by initiating the recording from a step or from the application node. For instance, if the task flow has changed in the new version of the application that you recorded and you want to update the existing test script, start the recording from the step after which the new steps must be added. You can also initiate the recording from the Launch application or In application nodes of the test.

Procedure

  1. Open the test script in which to add steps from a new recording.
  2. Right-click the step after which the new steps must be added and click Insert > Steps from Recording (web).
    You can also start the recording from the "Launch application", "In application", and "Window" nodes of a test script. To do that, right-click the node and click Add > Steps from Recording (web).
  3. In the Select Client Application page of the recording wizard, select a web browser or click Running Browser Instance. Click Next.

    When you select a browser, Test UI configures and starts the browser for you to start the recording from the first page of the application. When you select Running Browser Instance, you start recording the application that is already running in a browser from the current state of the application so that you do not need to start recording from the first page of the application.

  4. Complete one of the following steps:
    1. If you selected a web browser, follow the next set of instructions in Recording a Web UI test.
    2. If you selected Running Browser Instance, follow the next set of instructions in Recording steps for an existing Web UI test.
  5. After the recording is done, the test is generated. Click Close. The newly recorded steps are added after the step from where you initiated the recording. If you initiated the recording from the application node, the new steps are added after the application node or after the last step in the application node. All the new steps are highlighted. To save the changes, click Save.

What to do next

You can enhance the test. See Modification of Web UI tests.