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.
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.
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.