ImportToID command (Import/Export tool)
Import a project item or test case to a TestArchitect project location identified by a TestArchitect ID.
Synopsis
java -Dfile.encoding=UTF-8 -jar TAImportExportTool.jar --ImportToID [--server<value>] [--port<value>] --uid<value>
--pwd<value> --repoName<value> --projectName<value> --sourceFile<value> --ID<value>
[--overwrite<true|false>] [--includePictureChecks<yes|no>]
-Dfile.encoding=UTF-8
Encoding type of the command
TAImportExportTool.jar
An executable .jar file used to invoke the Import/Export tool.
The file can be found at TA_INSTALL_DIR\binclient.
–ImportToID
Invokes the import items function.
–server <value>
(Optional, default = localhost) Full hostname or IP address of the repository server hosting the repository into which the item is to be imported.
Note:If this argument is not defined, localhost is used as the default.–port <value>
(Optional, default = 53400) Port number of the repository server.
Note:- If this argument is set to 0 or not defined, the default port number 53400 is used.
- If port number of the source repository server has been changed from its TestArchitect default of 53400, ensure that the correct port number is specified.
–uid <value>
User name with which to log in to repository.
Note:If the user namecontains any spaces, enclose it between a pair of double quotation marks.–pwd <value>
Password for the given user name.
–repoName <value>
Name of the target repository.
Note:If the repository namecontains any spaces, enclose it between a pair of double quotation marks..–projectName <value>
Name of the target TestArchitect project.
Note:If the project namecontains any spaces, enclose it between a pair of double quotation marks.–sourceFile <value>
Path to file that is to be imported.
Note:- Network paths are also supported.
- If the pathcontains any spaces, enclose it between a pair of double quotation marks.
–ID <value>
ID of the project item root node (Tests, Data, etc.) or folder into which the item is to be imported. In the case of importing test cases, ID must be that of a test module.
To obtain the ID of any TestArchitect entity, find the URL field under its Information tab. The ID is found at the end of the URL address, prefixed with a hyphen ( - ), such as,
1z23htgfc2
, below:–overwrite <true|false>
(Optional, default = false) Specify whether the existing project item or test case, if any, should be overwritten.
Note:If this parameter is not specified, or its value is empty, its value defaults to false.–includePictureChecks <yes|no>
(Optional, default = yes; applicable only to import of test module) Specifies whether the regular picture checks belonging to the source test module are to be included.
Note:- This parameter is only applicable for test modules. If the target item is not a test module, this parameter, if declared, is simply ignored.
- Only a .zip file containing an exported test module can include that test module’s picture checks. Hence a value of yes for this parameter is only effectual when the -sourceFile parameter specifies a .zip file.
Example: Importing test modules including regular picture checks