Example: Importing test modules including regular picture checks
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.)
Let’s say you want to import a given test module, Action Based Testing, from a .zip file, with the following information and requirements:
Repository server’s IP address: 192.168.167.194
Repository server’s port number: 53400
Target repository name: SampleRepository
User name for account in repository: john
Password for the account: doe
Target project name: Car Rental
Include the test module’s regular picture checks in the import.
File to import: D:\exported items\Action Based Testing_2020-05-21 16-47-34.zipNote:While test modules can be exported to & imported from .csv, .html and .zip files, only .zip files can hold regular picture checks from the source test module.
ID of destination test folder in project: 1z23htgfc2
Overwrite the existing Action Based Testing test module, if any.
To run the ImportToID command, do the following:
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.
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>
Enter the following command, and then press Enter.
java -Dfile.encoding=UTF-8 -jar TAImportExportTool.jar --ImportToID --server 192.168.167.194 --port 53400 --uid john --pwd doe --repoName SampleRepository --projectName "Car Rental" --sourceFile "D:\export\Action Based Testing_2020-05-21 16-47-34.zip" --ID 1z23htgfc2 --overwrite true --includePictureChecks yes