Import
Arguments
Following commands can be used during an import:
Option | Description | Required |
---|---|---|
--ServerUrl |
The URL to the Server. | Yes |
--Username |
Username. | Yes |
--Password |
Password. | |
--Token |
Personal Access Token. | |
--License |
Path to a folder or file with a license. | |
--Project |
The Polarion project name. | |
--Model |
The source 'Model' used to import from Server. | Yes |
--PackageGuid |
The GUID of the 'Package' configured for import. | Yes |
--Mapping |
The mapping file used for import. | Yes |
--LocationDocument |
The Polarion location and document Id for import. | |
--LoadReferencedItems |
If LocationDocument is set, defines if referenced workitems should be loaded. | |
--DocumentParentRoleId |
Defines the parent role ID for imported documents. | |
--AutoResolveParentRole |
Resolves parent role ID from document config automatically. | |
--PageSize |
Defines page size for loading Polarion items (Default is 5000). | |
--MaxConcurrentTasks |
(Default: 8) Number of concurrent tasks to process and load data. | |
--TimeOut |
Timeout in minutes for WebApi communication. | |
--EnumTimeOut |
Timeout in seconds for loading enum options with WebApi. | |
--Log |
Sets the output path for log files. | |
--help |
Display this help screen. |
Powershell Example
LemonTree.Connect.Polarion.Automation.exe import \
--ServerUrl http://<server>/polarion/ \
--Username your-username \
--Password your-password \
--Token your-personal-access-token \
--License path\to\license.lic \
--Project YourPolarionProject \
--Model path\to\model.qeax \
--PackageGuid {YOUR-PACKAGE-GUID} \
--Mapping path\to\mapping.xml \
--LocationDocument Import/Location/DocID \
--LoadReferencedItems \
--DocumentParentRoleId ROLE_ID \
--AutoResolveParentRole \
--PageSize 5000 \
--MaxConcurrentTasks 8 \
--TimeOut 30 \
--EnumTimeOut 10 \
--Log C:\path\to\log\import.log \