Skip to content

Export

Arguments

Following commands can be used during an export:

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
--CreateDocument Enables document creation workflow.
--LocationDocument Create Document - The location and document Id for export.
--FieldId Create Document - field-id for ea guid list.
--StartActionId Create Document - start workflow action id.
--StopActionId Create Document - stop workflow action id.
--GenerateContent Create Document - generate document content directly.
--DiagramPath Sets the path for diagram images.
--DiagramFileExtension (Default: png) Sets the diagram image file extension (png, jpg, bmp).
--DiagramAbovePackage Enable sort diagrams above packages (default is packages above diagrams).
--FreeSort Enable EA 'free sorting' option.
--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 sending and receiving data with WebApi.
--EnumTimeOut Timeout in seconds for loading enum options with WebApi.
--Log Sets the folder path for log files.
--help Display this help screen.

Powershell Example

LemonTree.Connect.Polarion.Automation.exe export \
  --ServerUrl https://<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 \
  --CreateDocument \
  --LocationDocument Export/Location/Path \
  --FieldId POLARION_GUID_FIELD_ID \
  --StartActionId START_ACTION_ID \
  --StopActionId STOP_ACTION_ID \
  --GenerateContent \
  --DiagramPath C:\path\to\diagrams\ \
  --DiagramFileExtension png \
  --DiagramAbovePackage true \
  --FreeSort true \
  --PageSize 5000 \
  --MaxConcurrentTasks 8 \
  --TimeOut 30 \
  --EnumTimeOut 10 \
  --Log C:\path\to\logs\ \