ExportRepository command (Import/Export tool)

Export a repository to a .dat file.

Restriction: The Import/Export tool is not available in the TestArchitect packages for the Linux and macOS operating systems.


java -jar TAImportExportTool.jar --ExportRepository [--server<value>] [--port<value>] 
--repoName<value> --destinationFile<value> [--overwrite<true|false>]
An executable .jar file used to invoke the Import/Export tool.
The file can be found at TA_INSTALL_DIR\binclient.
Invokes the export repository function.
(Optional, default = localhost) Full hostname or IP address of the repository server in which the repository is to reside.
Note: If this argument is not defined, localhost is used as the default.
(Optional, default = 53404) Dedicated port number used to connect to the repository server.
Note: At present, only the port number 53404 may be used, and serves as the default value. Hence, please ensure that this port is always available.
Name of repository to be exported.
Note: If the repository name contains any spaces, enclose it between a pair of double quotation marks.
Path, with optional file name, specifying the location to which the exported file is to be written.
The file must have a .dat extension.
  • If the specified path does not include a file name, the name is automatically generated.
  • Network paths are also supported.
  • If the path contains any spaces, enclose it between a pair of double quotation marks.
(Optional) Specify whether the existing file, if any, should be overwritten.
Note: If this parameter is not specified, or its value is empty, its value defaults to true.

Running ExportRepository command (Import/Export tool)

Ensure that you have installed or upgraded your Java Runtime Environment (JRE) to at least version 8, which is necessary to run TAImportExportTool.jar on your Windows machine.
  • Refer to JRE 8 Installation for Microsoft Windows for details.
  • As an alternative to explicitly installing JDK 8, you may also use the Java Runtime Environment (JRE) packaged with TestArchitect at TA_INSTALL_DIR\jre\bin. In such a case, note that all invocations of the java command will need to specify its filepath (e.g., C:\Program Files\LogiGear\TestArchitect\jre\bin\java). (This latter step can be circumvented by setting the Windows environment variable JAVA_HOME to TA_INSTALL_DIR\jre\bin.)

To run the ExportRepository command, do the following:

  1. Bring up a command window. You can do this from the Windows Start menu by choosing Run, and then entering cmd. The command window opens with a prompt displaying your current directory.
  2. Use the cd command to change your current directory to TA_INSTALL_DIR\binclient\, which is where TAImportExportTool.jar is located. For example, type the following command at the prompt, and then press Enter.
    cd "C:\Program Files\LogiGear\TestArchitect\binclient"
    Now the prompt should change to the new directory, e.g., C:\Program Files\LogiGear\TestArchitect\binclient>
  3. Enter the following command, and then press Enter.
    java -jar TAImportExportTool.jar --ExportRepository --server --port 53404 
    --repoName MyRepository --destinationFile "D:\repository list\sample.dat" --overwrite true