< Previous

Lesson 1: Recording a test scenario

With the Web UI Test perspective, you can initiate the recording of a specific test scenario on your web application. Typically, you would create smaller test scenarios for better maintenance. When you start a recording, HCL OneTest™ UI automatically captures the actions that you do on the web application. To ensure that the recorder captures each action correctly, wait till the web pages are loaded completely. You can later remove this extra ‘waiting time’ (Think time) that is spent in the recording when you play back a test. After you stop the recording, the test is generated.

About this task

Do not change the browser preferences, including JavaScript settings. Recording and playing back Web UI scripts in a browser requires that JavaScript be enabled.

Procedure

To record a test scenario:

  1. In the Web UI Test perspective, click File > New > Test From Recording. Alternatively on the toolbar, click the New Test From Recording icon.
  2. Click Create a test from a new recording, select Web UI Test, and click Next.
  3. To create a test project, click the Create the parent folder icon.
  4. Specify myProj in the Project name field and click Finish.
  5. Specify bm-web in the Test name field and click Next.
  6. Select Mozilla Firefox and click Next.
  7. Accept the default settings on the Mozilla Firefox Recorder Settings page and click Finish. The browser page opens with the welcome text.
  8. In the browser address field, type www.ibm.com/software. This is your application under test.
  9. Record the following use case:
    1. Click the person icon and click Sign in.
      Sign in
    2. Enter you IBM ID credentials and click Sign in.
      Search field
    3. Search for Rational Test Workbench.
    4. In the search results, click Rational Test Workbench .
    5. On the product page, click Pricing.
    6. Stop the recording at this point. To stop the recording, in the Recording Control view, click the Stop icon or close the browser window. The test is generated and the test script would look like this:
      Test script

Results

In this lesson, you learned how to record a test scenario in your web application. With the generated test script, in the next lesson, you will learn how to use the Test Editor to modify the script.

< Previous
Feedback