Академический Документы
Профессиональный Документы
Культура Документы
SilkTest 2006
®
Release 2
Borland Software Corporation
20450 Stevens Creek Blvd., Suite 800
Cupertino, California 95014 USA
http://www.borland.com
Borland Software Corporation may have patents and/or pending patent applications covering subject
matter in this document. Please refer to the product CD or the About dialog box for the list of applicable
patents. The furnishing of this document does not give you any license to these patents.
Copyright © 1992-2007 Borland Software Corporation and/or its subsidiaries. All Borland brand and
product names are trademarks or registered trademarks of Borland Software Corporation in the United
States and other countries. All other marks are the property of their respective owners.
January 2007
PDF
Contents
Introduction 5
Overview of installation process . . . . . . . . . 5
About SilkTest . . . . . . . . . . . . . . . . . . . 6
Chapter 1
Installing SilkMeter 9
Overview . . . . . . . . . . . . . . . . . . . . . 9
Generating a SilkTest license policy . . . . . . 10
Installing SilkMeter on your license server . . . 12
Chapter 2
Installing SilkTest 15
Overview . . . . . . . . . . . . . . . . . . . . 15
Installing SilkTest . . . . . . . . . . . . . . . . 16
Using the Silent Installer . . . . . . . . . . . . 21
What to do next . . . . . . . . . . . . . . . . . 25
Introduction This chapter gives an overview of how to install SilkTest and provides
installation guidelines, information about the release, and instructions on
contacting Technical Support.
What you will learn This chapter contains the following sections:
Section Page
Overview of installation process 5
About SilkTest 6
About SilkTest
Supported Platforms For information on supported platforms for SilkTest, see the Release Notes.
SilkTest configuration We recommend:
recommendations • A PC with a Pentium processor running at 1 GHz
• 512 MB of RAM on Windows 2000, 1 GB RAM on Windows XP, 2003,
or Vista.
• A hard drive with 120 MB of free space
See “SilkMeter license server requirements” for information about license
server requirements.
Note These system requirements apply to the installation of both the
full SilkTest product and the SilkTest Agent only.
Important installation Upgrading If you are installing SilkTest on a machine that already has a
guidelines previous version of SilkTest installed, you should uninstall the older version
before upgrading.
Dual-boot machines If you are installing SilkTest and have a dual-boot
machine with more than one Windows operating system, for example, both
Windows 2000 and Windows XP, you must install SilkTest in different
directories under the two operating systems. Otherwise, you risk causing
problems with the Uninstall program. For example, if you want to install
SilkTest on both the Windows 2000 and Windows XP partitions on a dual-boot
machine, install into c:\ and c:\, respectively.
Administrator privileges You must have local administrator privileges to
install SilkTest on a Windows 2000, XP, or Vista machine. Once SilkTest is
properly installed, you must also have administrator privileges in order to run
SilkTest. If you are installing on a Windows 2000, XP, or Vista server, you must
have domain-level administrator privileges.
Forte, PeopleSoft or Developer 2000 extensions If you are installing
SilkTest and are currently using the Forte, PeopleSoft or Developer 2000
extensions, copy the associated files from your current SilkTest installation
directory to another location before uninstalling SilkTest. SilkTest no longer
supports these extensions. You may continue to use them; however SilkTest
does not install these extensions, so you must save the appropriate files before
uninstalling your current version of SilkTest. After installing SilkTest, copy the
files associated with the unsupported extension you are using to <SilkTest
installation directory>/extend.
Database testing To use the database testing functions (functions whose names begin with DB_),
functions you must have ODBC version 3 installed.
In addition, please ensure that an ODBC driver such as odbc32.dll (SQL Server)
or sqora32.dll (Oracle) is either on your path or in the System directory in order
for SilkTest to find it. The name of this DLL may vary, depending on the
specifications and vendor of your ODBC driver.
Items included with • SilkTest, for developing and running tests.
SilkTest
• SilkTest Agent, for translating 4Test method calls into GUI-specific
commands.
• The following documents, available from Start/Programs/Borland/
SilkTest 2006 R2/Documentation:
- SilkTest Installation Guide
- SilkTest Extension Kit Guide for Windows or SilkTest Extension Kit
Guide for .NET (if you purchased the Extension Kit)
You must have Adobe Acrobat Reader to view .pdf documents.
Introduction This chapter describes how to obtain a SilkTest license policy and install
SilkMeter. You must have administrative privileges to install SilkMeter.
What you will learn This chapter contains the following sections:
Section Page
Overview 9
Generating a SilkTest license policy 10
Installing SilkMeter on your license server 12
Overview
SilkMeter only needs to be installed once per license server. If you have
multiple license servers, you will need multiple license policy files, each one
tied to a particular license server. A single SilkMeter license server can
administer license policies for multiple products.
If you want to install an evaluation copy of SilkTest, you do not need to install
SilkMeter. You can skip to the next chapter, “Installing SilkTest”.
We recommend the following, if you have:
• already received a SilkTest license policy associated with your license
server, see “Installing SilkMeter on your license server”.
• not received a license policy yet, see the following section, “Generating a
SilkTest license policy”.
Installing SilkMeter on You must have administrative privileges to install SilkMeter. If SilkMeter is
your license server already installed on your license server, you must uninstall it before installing
the latest version of SilkMeter. See “Uninstalling a previous version of
SilkMeter”.
To install SilkMeter on your license server:
1 Locate silkmeter.exe:
• If you have a CD: insert your CD in the computer that will be your
license server and navigate to <cddrive>:\silkmeter.
• If you are downloading:
a. navigate to http://customers.segue.com/downloads/products/
SilkMeter/win32/silkmeter.exe.
b. specify the location to which you want to save this file, and then
click Save. Make sure that you save the file on your license
server or a location that your license server can access.
c. navigate to the location in which you saved silkmeter.exe.
2 Double-click the SilkMeter executable file
3 Click Next on the Welcome dialog, review the License Agreement, and
then click Yes to accept the terms of the License Agreement.
4 On the Enter Installation Path and Configuration Directory for SilkMeter
Runtime window, click Next to install SilkMeter in the default directory,
C:\Program Files\Borland\SilkMeter, and use the default configuration
folder, C:\Program Files\Borland\SilkMeter\Cfg.
5 On the Enter Host Name window, enter the name of the server that hosts
the SilkMeter Manager in the Hostname field. Only change the Port
setting from the default (5461) if your network administrator has defined
a different port.
6 On the Select Program Folder window, click Next to accept the default
Program folder, SilkMeter 2006.
7 Click No if you are prompted to install support for Rainbow Hardware
Keys.
8 Use the settings in the Install SilkMeter Policy window to indicate how
to generate your SilkTest license policy. If you:
• Already have your SilkTest license policy, click the ellipsis (...),
navigate to the location in which you saved your SilkTest license
policy file, license.pol, and then click Open. Click Finish to install
the SilkTest license policy, and then click OK when the SilkMeter
installation is complete.
• Do not have your SilkTest license policy, click Finish, and then click
OK when the SilkMeter installation is complete. You can import
your SilkTest license policy when you receive it. See “Generating a
SilkTest license policy” for instructions on obtaining a SilkTest
license policy. Instructions on importing your SilkTest license file
are available from the online License Generator and in the SilkMeter
2006 online Help. If you are installing on Windows 2000, reboot
your computer after importing your SilkTest license policy.
9 Click Yes to read the SilkMeter Release Notes, then Finish to complete
the installation. In order for the licensing to work properly, you must
reboot the computer.
Note The SilkTest/SilkMeter communication process relies on the
following:
• SILK_CONFIG_PATH environment variable
• CosLicensingService.ref file
• CosPropertyService.ref file
• ls_segue.ref file
• silkmeter.cfg. file
Do not delete these files and variables.
Introduction This chapter describes how to install SilkTest and other components such as the
Agent and SilkTestRuntime.
What you will learn This chapter contains the following sections:
Section Page
Overview 15
Installing SilkTest 16
Using the Silent Installer 21
What to do next 25
Overview
Before you begin If you are installing on a machine with a previous version of SilkTest or QAP
Partner, you must uninstall the previous version and reboot before installing this
release. To uninstall SilkTest, click the Windows Start button, then select
SilkTest Uninstall from the SilkTest program group. Make sure that you remove
any remaining SilkTest files and folders and reboot your machine before
installing SilkTest.
You may also set up silent installs for SilkTest, SilkTest Runtime, and the
SilkTest Agent; see “Using the Silent Installer” for more details.
You must have administrative privileges to install or uninstall SilkTest on
Windows 2000, Windows XP, or Windows Vista. You must also have
administrative privileges to run SilkTest once it is installed.
Before you install, make sure that the msvcp60.dll file is installed in your
Windows System directory (windows\system or winnt\system32). SilkTest
requires this file in order to install correctly. This file should have already been
automatically installed as part of the standard Windows installation.
Installing SilkTest
Procedure To install SilkTest, the SilkTest Agent only, or SilkTest Runtime:
1 Locate the SilkTest executable.
• If you have a SilkTest CD: insert your CD. If the Setup Program
does not start automatically, manually start the SilkTest Setup
Program by selecting Start/Run and typing <cddrive>:\setup.exe.
• If you are downloading SilkTest:
a. Navigate to http://www.borland.com/downloads/download_
silk.html, then navigate to the SilkTest download area. If
prompted, enter your Customer ID and password in the User
Name and Password boxes, click OK, and then select the
appropriate SilkTest version you want to install.
b. Click the executable and click Save.
c. Specify the location to which you want to save this file, and then
click Save. You can also run the file by from your browser by
double-clicking the .exe, if your browser supports this.
d. Navigate to the location in which you saved the executable, and
double-click this file.
Note If your Windows TEMP environment variable does not point
to a valid directory, an error message will be displayed. In order to
successfully install SilkTest, your TEMP environment variable must
point to a valid directory.
To reset your TEMP environment variable:
a Click Start/Settings/Control Panel and double-click the System
icon, click the Advanced tab, then click Environment Variables.
b Under User Variables or System Variables, double-click the TEMP
variable.
c Enter a valid directory, then click OK.
d Restart the SilkTest installation by double-clicking the .exe file.
2 Click Next on the Welcome dialog box, review the License Agreement,
then click Yes to accept the terms of the License Agreement.
3 On the Customer Information dialog box, enter your user name and
company. Select one of the following:
• Anyone who uses this computer (all users) - Allows any user of this
computer to run SilkTest.
• Only for me - Allows only the registered user to run SilkTest.
4 On the Setup Type dialog box, select one of the following installation
options:
• SilkTest 2006 R2 - Installs the full installation of SilkTest, including
the SilkTest Windows Agent. The full installation enables you to
record, script, execute, and view the results of tests. (Default setting)
• SilkTest 2006 R2 Runtime - Installs SilkTest Runtime and the
SilkTest Agent. You use SilkTest Runtime to execute a set of tests
and view the results.
• SilkTest 2006 R2 Runtime Agent Only - Installs the SilkTest Agent
software. You install just the SilkTest Agent on machines that are
used for distributed testing.
• SilkTest Extension Kit - Installs the Windows and .NET extension kit
(including documentation), that allows you to write 4Test Agent
functions in C.
• Destination path - The installation location. Click Next to accept the
default location, or click Browse to specify a different folder. Note
that SilkTest can only be installed on a local drive. You will receive
an error message if you specify an invalid installation destination.
If you specified a location in which SilkTest was previously installed
and some of the files remain in this directory, you may receive an
error message instructing you to uninstall SilkTest, make sure all
files are removed, and then reboot and install SilkTest.
Note You cannot install SilkTest and SilkTest Runtime on the same
machine.
5 On the Start Copying Files dialog box, review your settings. Click Next
to continue with the SilkTest installation, or click Back to return to a
previous dialog box and change settings.
Tip If a message appears stating that there is not enough space
while files are copying, redefine the TEMP area to a drive that
contains more space. The installer uses the TEMP area for unzipping
files. For example, if your TEMP area is d:\temp and you are
installing to e:\SilkTest, the E drive may contain enough space for
the installation, but the D drive is the limiting factor.
6 On the Choose Licensing Mode dialog box, select one of the following:
• Evaluation Version - Allows full product functionality for a period of
30 days. If you want to upgrade to a full version of SilkTest at a later
point in time, please contact your Borland sales representative.
Click Next and proceed to Step #12 if you are installing the
Evaluation Version of SilkTest.
• Full Version - Requires a license policy. See “Generating a SilkTest
license policy” for more information about licensing.
Proceed to Step #7 if you are installing the Full Version of SilkTest.
7 Click Next.
8 The SilkTest R2 Licensing dialog box is displayed and is provided for
informational purposes only. For information on SilkMeter licensing,
click Open SilkMeter ReadMe. Note that this button is disabled if the
document is not available in the installation source folder.
9 Click OK to specify a SilkMeter license server, or Cancel to continue
the installation without specifying a SilkMeter license server. (If you
click Cancel, proceed to Step #12.)
10 If you selected OK in the previous step, the Select SilkMeter License
Server dialog box is displayed. This utility checks your local system for
the existence of the SilkMeter license server configuration files. If the
files are found, the configuration and type of license server are displayed
and will be used for licensing. If no configuration data is found, the
Select SilkMeter License Server dialog box is displayed with the default
settings.
• In the Application drop-down list, select SilkTest as the application
you are licensing.
Then select one of the following:
• Using Local or Remote Server - Enter the name of your SilkMeter
license server (the name of the machine on which SilkMeter is
installed) in the License Server Host field. The default Port Number
(5461) should not be changed, unless your network administrator
has defined a different port. Click Apply to generate your license
server configuration. Click Test Connection to verify that a
SilkMeter server is accessible on the specified host and port. Testing
For example, if your default browser is Internet Explorer 6.0, the Setup
Program preselects Internet Explorer 6.0. You can change your default
browser at any time through the SilkTest Runtime Options dialog.
Note If your default browser is Internet Explorer 6.0, you may
receive a message that your browser’s third-party extensions are not
enabled. You must enable this option in order for SilkTest to
recognize objects in browser pages. You can enable this option and
then continue with the installation, or you can wait and enable the
option after the installation is complete. To enable third-party
browser extensions:
a) On the Tools Menu in Internet Explorer, click Internet Options.
b) Click the Advanced tab.
c) Under Browsing, select the Enable third-party browser
extensions (requires restart) check box, then click OK.
d) Restart your browser by closing and reopening the browser
window.
You do not have to reboot your computer for the new setting to take
effect; just close and reopen the browser window.
14 On the Associate SilkTest Files dialog box, indicate whether you want to
associate SilkTest files with SilkTest or SilkCentral Test Manager.
• SilkTest - Associates SilkTest file types (such as *.inc, *.t, *.g.t and
*.pln files) with SilkTest. If you double-click one of these SilkTest
file types, SilkTest opens that file.
• SilkTest (with SilkCentral Test Manager) - Associates SilkTest file
types with Test Manager.
Click Next to continue.
15 Click Finish to exit the InstallShield Wizard and restart your computer.
You must reboot for SilkTest to work properly.
Please see the Release Notes for up-to-date information about SilkTest.
A working network connection is required when running SilkTest with a remote
SilkMeter license server. If you need to verify that the network is working, click
Start/Run, and then type ping localhost or ping <license server name>, or
open a command prompt and type either of those commands.
Value Meaning
0 Success
1 General error
2 Invalid mode
3 Required data not found in the Setup.iss file
4 Not enough memory available
5 File does not exist
6 Cannot write to the response file
7 Unable to write to the log file
8 Invalid path to the InstallShield Silent
response file
9 Not a valid list type (string or number)
10 Data type is invalid
11 Unknown error during setup
12 Dialogs are out of order
51 Cannot create the specified folder
52 Cannot access the specified file or folder
53 Invalid option selected
Sample log file A setup.log file for a successful silent installation of InstallShield is shown
below. Notice that the ResultCode is equal to zero, indicating a successful
install.
[ResponseResult]
ResultCode=0
What to do next
Enable applications If you are testing applications that use controls other than the Microsoft
Foundation Class (MFC) library, you may need to enable support for the
development language in which the controls were created. The installation
program enables the development environment when it knows the test
application’s underlying executable name. You might have to enable some
applications yourself, for example, .NET applications, all stand-alone Visual
Basic applications, ActiveX controls used outside the browser environment, and
applications with embedded browser controls. For information about enabling
applications, see the online Help.
Try the tutorials If you’re new to SilkTest, we recommend that you try the SilkTest tutorials,
available from Start/Programs/Borland/SilkTest 2006 R2/Documentation/
SilkTest Tutorials.