Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

How can I make SilkTest projects more portable?

How can I make SilkTest projects more portable?

When SilkTest adds a file to a project it will save the drive and path. For files that reside on the network it uses the UNC form. e.g.

\\Server1\TestApp\Plans\MainPlan.pln
\\Server1\TestApp\Scripts\Tests.t
\\Server1\TestApp\Windows\Frame.inc

Should the name of the server change or you want to copy files locally to a LapTop to work offsite this can cause a problem as the project file needs to be amended.

A workaround is to use the "subst" command as it can map a virtual drive to a network path

subst X: \\Server1\TestApp

The project then uses the X: drive rather than UNC e.g.

X:\Plans\MainPlan.pln
X:\Scripts\Tests.t
X:\Windows\Frame.inc

The Server can change or you can copy the files locally and redo the "subst" to point X: to a local drive and path e.g.

copy X:\*.* C:\MyFiles
subst X: /d
subst X C:\MyFiles

The project file can remain unchanged as it continues to use the X: drive.

SUBST Associates a path with a drive letter.

SUBST [drive1: [drive2:]path]
SUBST drive1: /D

drive1: Specifies a virtual drive to which you want to assign a path.
[drive2:]path Specifies a physical drive and path you want to assign to a virtual drive.
/D Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.

Old KB# 21588

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:22
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.