Publish stubs by using the command line

You can publish a stub by using the IBM® Rational® Integration Tester command line. This is useful in situations where Ant is not available.
The syntax to use is as follows::
GHTesterCmd Options publish-stubs
Here is an example syntax:
GHTesterCmd --serverUrl "http://Host name or IP address:7819/RTCP/" 
--domain <Domain name> --environment <Environment name> 
--project <Path to project file> publish-stubs

The following table lists the options that you can use with the GHTesterCmd command for publishing stubs.

Options Description
--optionsFile The path to an XML file containing the command options. Any options explicitly specified will override those set in this file. For details of the format of this file, see The Options file.
--serverUrl/-u URL of Rational Test Control Panel.
--domain/-d Domain name
--environment/-e Environment name
--project/-p The full path to project file.
--stubFilter

The filter used to select which stubs will be published. A filter is defined by XML type tags that describe the hierarchy of the stubs to publish as it appears in the project within IBM Rational Integration Tester. Each filter declares the component names, an operation name and the folder names that the stubs to publish belong to. If not specified, the filter will default to publishing all stubs. For more information on selecting stubs using a stub filter, see Specifying a stub filter.

--majorVersion The major version at which to publish the stubs (optional). The default is to use the latest version on the server for that project, domain, environment combination. For more information on specifying the stub version, see Specifying publish versions.
--minorVersion The minor version at which to publish the stubs (optional). The default is to use the latest version on the server for that project, domain, environment combination. For more information on specifying the stub version, see Specifying publish versions.
--updateMode For more information on specifying the update mode, see updateMode.
--securityToken The value of the security token to use for authentication with Rational Test Control Panel when domain security is enabled (optional). For more information, see Domain level security.

Error codes

For details of any error codes, see Exit codes for IBM Rational Integration Tester Command-line client and Ant client.


Feedback