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 unpack my packaged project file and execute a Testcase through the command line?

How can I unpack my packaged project file and execute a Testcase through the command line?

When you package a project, SilkTest includes all of the source files, meaning the related files used by a project and bundles them up into
a new file with an .stp extension.

  1. I first exported and packaged the project "test.vtp" using SilkTest menu options "File" -> "Export Project" command. I exported the project into a folder called "C:\ExportFolder\" .

  2. Now you can run the command line below. This command line script will unpack the "test.stp" file into the C:\ExportFolder ( any folder would work ) and execute the "test.t" file

C:\Program Files\Segue\SilkTest>partner -proj C:\ExportFolderFolder\test.stp -base C:\ExportFolder -r C:\ExportFolderFolder\test.t

  • -projOptional argument specifyng the project file or archived project to load when starting SilkTest or SilkTest Runtime.

  • -baseThis is an optional argument to -proj. You use the base argument to specify the location where you want to unpack the package contents.

  • -r Must be the last option specified, followed only by the name of a SilkTest file to open. This includes files such as script (and, optionally, arguments that the script takes), a suite, testplan, or link file.

For a complete list of partner command options look for the "partner command" in the SilkTest online help.

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