Recording a Script for the Sample Web Application

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

  1. Choose File > New.
    The New Asset dialog box opens.
  2. Select .NET Script from the asset types list, and then type a name for the script in the Asset name text box.
    For example, type AutoQuote as the title.
  3. Check the Begin Recording check box to start recording immediately.
  4. Click OK to save the script as an asset and begin recording.
    The Select Application dialog box opens.
  5. Select the Web tab.
  6. Select Internet Explorer from the list.
  7. In the Enter URL to navigate text box, type demo.borland.com/InsuranceWebExtJS/.
  8. Click OK.
    Silk Test Workbench minimizes and the Recording window opens.
  9. 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.
  10. 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 script displays.
  11. Click Go to .NET Script. The script displays in the Code window.
  12. Click Save.