Quick Start Borland SilkTest

Posted on Feb 3 2008 - 12:31am by Raj

The purpose of the Quick Start Guide is to help lead you through various testing activities using SilkTest. The activities outlined in this Guide range from basic to more advanced.

This guide assumes you have successfully installed SilkTest and are able to open SilkTest. For product installation assistance, please refer to the SilkTest Installation Guide found in the SilkTest download area.

Recommended Machine Configuration for SilkTest

  • Windows 2000 or XP
  • Internet Explorer 6 SP1 or Internet Explorer 7 GA

For more information on the technologies and environments SilkTest supports, please see the Release Notes

Configuring SilkTest for Testing the Pet Shop Sample Application
Now that you are able to open SilkTest, let’s take a quick look at how you configure SilkTest for testing an application; in our case, we will be testing a sample web application called Pet Shop and available at http://demo.borland.com/petshop (don’t worry about the reference to .NET on the Pet Shop home page).

Step 1 Start Internet Explorer
Step 2 In the browser, navigate to the Pet Shop page at http://demo.borland.com/petshop and ensure
that the browser is not minimized
Step 3 Start SilkTest (Start/Programs/Borland/SilkTest 2006 R2)
At this point, both the application we will be testing and SilkTest should be running. For the remainder of this section, the steps to be performed will all be accomplished by interacting with the Basic workflow element of the SilkTest user interface, a part of which is shown below.
Step 4 Click on the “Open Project” button in the Basic workflow bar
Step 5 Choose “New Project”
Step 6 Double-click “Create Project” in the “New Project” dialog
Step 7 Enter PetShopProject in the “Project Name:” field at the top of the “Create Project” dialog
Step 8 Click “OK” in the “Create Project” dialog

Tip: Projects promote easy organization of the various assets, such as tests, that you typically interact with when testing applications with SilkTest. They also facilitate collaboration since projects can be packaged up to be emailed or archived for later use.
Step 9 Click on the “Enable Extensions” button in the Basic workflow bar
Step 10 Click to highlight “PetShop – Microsoft Internet Explorer” in the list of applications shown in the “Enable Extensions” dialog (shown below)


Step 11 Click “Select” in the “Enable Extensions” dialog
Step 12 Click “OK” on the “Extension Settings” dialog
Note: The “Extension Settings” dialog provides information to you that indicates how SilkTest “recognizes” the selected application for testing. In our case, this dialog should indicate that SilkTest recognizes an Internet Explorer 7-based application.
After having completed Step 12, the “Test Extension Settings” dialog will appear; note that the “Test” button is disabled. To follow the dialog’s instructions, please close Internet Explorer and perform Steps 1 and 2 above. Once the browser has completed loading the PetShop application, the “Test
Extension Settings” dialog should be brought to the foreground, with the “Test” button activated.

Step 13 Click the “Test” button on the “Test Extension Settings” dialog
Step 14 Take note of the information provided on the ensuing “Test Passed” dialog and click the “OK” button when you are ready to continue

Now that SilkTest has been configured to test the Pet Shop application, we will perform the task of configuring the SilkTest recovery system. In short, SilkTest uses the recovery system and the simple configuration of the system, specified by the user and which we’ll perform below, in order to ensure
that the application being tested is in a given state before and after every test that is run when a series of tests is being executed. In our case, we will configure the recovery system to ensure 2 facts:

  • Internet Explorer is running
  • The Pet Shop home page is loaded in Internet Explorer

Step 15 Click the “Set Recovery System” button in the Basic workflow bar
Step 16 Click to highlight “PetShop” in the list of applications shown in the “Set Recovery System” dialog (shown below)


Note: Notice that in the preceding picture the “Start testing on this page” field is filled in initially with the address of the web page currently loaded in Internet Explorer. You can change the field contents either by typing directly into this field (not recommended due to the possibility of entering an invalid
address), or by cancelling this dialog, navigating to a different address in Internet Explorer, and clicking on the “Set Recovery System” button again to have the new web page address reflected in this dialog (recommended).
Step 17 Click “OK” on the “Set Recovery System” dialog Note: The “Set Recovery System” dialog lists the currently open and non-minimized applications; the listed applications shown for you may differ from what’s shown in this guide.

Step 17 Click “OK” on the “Set Recovery System” dialog
Note: The “Set Recovery System” dialog lists the currently open and non-minimized applications; the listed applications shown for you may differ from what’s shown in this guide.

Note: The “Set Recovery System” dialog allows you to configure many items, including which application to configure the recovery system against and which web page to have loaded when testing web applications. These items are related to the specific application you are configuring. The other
items in the dialog have more to do with how and where your selections are saved by SilkTest and are not examined in depth in this guide.
We have now successfully configured SilkTest for testing the Pet Shop application. Let’s move on to sections which discuss creating and executing tests, with each section taking a varied approach to test creation.

Pages: 1 2
About the Author

Leave A Response