Recording a Visual Test for the Sample Web Application

During recording, Silk Test Workbench records all interactions in the test application (except interaction with Silk Test Workbench itself) until recording is stopped. After you have finished recording, you can modify the visual test you have generated to add and remove steps.

  1. To be able to edit the recorded controls at a later point in this tutorial, enable the capturing of browser controls before recording the visual test.
    1. In the Silk Test Workbench menu, select Tools > Options. The Options dialog box opens.
    2. In the tree, select Record > Output > Visual test.
    3. Set the value of Browser control capture to Yes.
    Note: Enabling control capture during the recording of web applications might decrease the performance of your visual tests. Micro Focus recommends disabling control captures when you have completed the tasks described in this tutorial.
  2. Choose File > New.
    The New Asset dialog box opens.
  3. Select Visual test from the asset types list.
  4. Check the Begin Recording check box to start recording immediately.
  5. Click OK to save the visual test as an asset and begin recording.
    The Select Application dialog box opens.
  6. Select the Web tab.
  7. Select Internet Explorer from the list.
  8. In the Enter URL to navigate text box, type demo.borland.com/InsuranceWebExtJS/.
  9. Click OK.
    Silk Test Workbench minimizes and the Recording window opens.
  10. In the Insurance Company Web site, perform the following steps:
    1. From the Select a Service or login list box, select Auto Quote.
      The Automobile Instant Quote page opens.
    2. Type a zip code and email address in the appropriate text boxes, click an automobile type, and then click Next. For example, type 92121 as the zip code, jsmith@gmail.com as the email address and specify Car as the automobile type.
    3. Specify an age, click a gender and driving record type, and then click Next. For example, type 42 as the age, specify the gender as Male and Good as the driving record type.
    4. Specify a year, make, and model, click the financial info type, and then click Next. For example, type 2010 as the year, specify Lexus and RX400 as the make and model, and Lease as the financial info type. A summary of the information you specified appears.
    5. Click Purchase. The Purchase A Quote page opens.
    6. Click Home near the top of the page to return to the home page where recording started.
  11. Stop recording by pressing Alt+F10, clicking Stop in the Recording window, or clicking the Silk Test Workbench taskbar icon.
    The Recording Complete dialog box opens. If the Do not show this message again check box is checked in the Recording Complete dialog box, this dialog box does not appear after recording is stopped. In this case, the visual test displays in the Test Steps pane.