Class PolarionTestCasesImportSettings
- java.lang.Object
-
- com.piketec.tpt.api.requirements.TestCasesImportSettings
-
- com.piketec.tpt.api.requirements.polarion.PolarionTestCasesImportSettings
-
- All Implemented Interfaces:
java.io.Serializable
public class PolarionTestCasesImportSettings extends TestCasesImportSettings
The settings for the import of test cases from Polarion.- Author:
- Copyright (c) 2014-2024 PikeTec GmbH - MIT License (MIT) - All rights reserved
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PolarionTestCasesImportSettings.PolarionImportMethod
The choice for the import.-
Nested classes/interfaces inherited from class com.piketec.tpt.api.requirements.TestCasesImportSettings
TestCasesImportSettings.SynchronizationMethod, TestCasesImportSettings.SynchronizationProperty, TestCasesImportSettings.TargetTypeAssignment, TestCasesImportSettings.TestCaseHierarchyCreationMethod, TestCasesImportSettings.TestCaseType
-
-
Field Summary
-
Fields inherited from class com.piketec.tpt.api.requirements.TestCasesImportSettings
CREATE_NEW_TEST_SET
-
-
Constructor Summary
Constructors Constructor Description PolarionTestCasesImportSettings(java.lang.String projectId)
The constructor for the settings of the test cases import from Polarion.
-
Method Summary
-
Methods inherited from class com.piketec.tpt.api.requirements.TestCasesImportSettings
getAutoReviewAttributes, getHierarchyCreationMethod, getIdAttribute, getPreferredTestCaseType, getSyncMethod, getSyncProperty, getTestSetName, setAutoReviewAttributes, setHierarchyCreationMethod, setIdAttribute, setPreferredTestCaseType, setSyncMethod, setTestSetName
-
-
-
-
Method Detail
-
setSyncProperty
public void setSyncProperty(TestCasesImportSettings.SynchronizationProperty syncProperty)
Overwritten to throw anApiException
. Value must not be changed.- Overrides:
setSyncProperty
in classTestCasesImportSettings
- Parameters:
syncProperty
- The choice which property of TPT test cases the importer matches against the imported ID values. Not relevant if thesynchronization method
isTestCasesImportSettings.SynchronizationMethod.ALL_NEW
.
-
getProjectId
public java.lang.String getProjectId()
- Returns:
- The ID of the project in Polarion.
-
setProjectId
public void setProjectId(java.lang.String projectId)
- Parameters:
projectId
- The ID of the project in Polarion.
-
getImportMethod
public PolarionTestCasesImportSettings.PolarionImportMethod getImportMethod()
-
setImportMethod
public void setImportMethod(PolarionTestCasesImportSettings.PolarionImportMethod importMethod)
-
getDocumentPath
public java.lang.String getDocumentPath()
- Returns:
- The path to the document followed by its ID (e.g., Testing/Test Specification). Only
relevant if import method is
Document
. - See Also:
setImportMethod(PolarionImportMethod)
-
setDocumentPath
public void setDocumentPath(java.lang.String documentPath)
- Parameters:
documentPath
- The path to the document followed by its ID (e.g., Testing/Test Specification). Only relevant if import method isDocument
.- See Also:
setImportMethod(PolarionImportMethod)
-
getLuceneQuery
public java.lang.String getLuceneQuery()
- Returns:
- If
null
, all work items of the project are imported. Otherwise a query in Lucene syntax to import a subset of the project work items (e.g., type:testcase). Only relevant if import method isLucene
. - See Also:
setImportMethod(PolarionImportMethod)
-
setLuceneQuery
public void setLuceneQuery(java.lang.String luceneQuery)
- Parameters:
luceneQuery
- If set tonull
, all work items of the project are imported. Otherwise set to a query in Lucene syntax to import a subset of the project work items (e.g., type:testcase). Only relevant if import method isLucene
.- See Also:
setImportMethod(PolarionImportMethod)
-
isImportDescription
public boolean isImportDescription()
- Returns:
- Whether to import the Polarion description to the test case description in TPT. Note that the description will be imported as plain text.
-
setImportDescription
public void setImportDescription(boolean importDescription)
- Parameters:
importDescription
- Whether to import the Polarion description to the test case description in TPT. Note that the description will be imported as plain text.
-
getTypeAssignments
public java.util.List<TestCasesImportSettings.TargetTypeAssignment> getTypeAssignments()
- Returns:
- The list of assignments of the name of an imported object type to the TPT type (test case vs. test case group).
-
setTypeAssignments
public void setTypeAssignments(java.util.List<TestCasesImportSettings.TargetTypeAssignment> typeAssignments)
- Parameters:
typeAssignments
- The list of assignments of the name of an imported object type to the TPT type (test case vs. test case group).
-
getPropertyAssignments
public java.util.List<PolarionWorkItemFieldToTCAttributeAssignment> getPropertyAssignments()
- Returns:
- The list of assignments of Polarion Work Item fields to a TPT test case attributes.
-
setPropertyAssignments
public void setPropertyAssignments(java.util.List<PolarionWorkItemFieldToTCAttributeAssignment> propertyAssignments)
- Parameters:
propertyAssignments
- The list of assignments of Polarion Work Item fields to a TPT test case attributes.
-
getLinkRoles
public java.util.List<java.lang.String> getLinkRoles()
- Returns:
- The list of Polarion Work Item field IDs that are links. If no link is chosen, no links will be imported and the respective links in TPT will remain untouched.
- See Also:
setBackLinkRoles(List)
-
setLinkRoles
public void setLinkRoles(java.util.List<java.lang.String> linkRoles)
- Parameters:
linkRoles
- The list of Polarion Work Item field IDs that are links. If no link and no backlink is chosen, no links will be imported and the respective links in TPT will remain untouched.- See Also:
setBackLinkRoles(List)
-
getBackLinkRoles
public java.util.List<java.lang.String> getBackLinkRoles()
- Returns:
- The list of Polarion Work Item field IDs that are backlinks. If no backlink and no link is chosen, no links will be imported and the respective links in TPT will remain untouched.
- See Also:
setLinkRoles(List)
-
setBackLinkRoles
public void setBackLinkRoles(java.util.List<java.lang.String> backLinkRoles)
- Parameters:
backLinkRoles
- The list of Polarion Work Item field IDs that are backlinks. If no backlink and no link is chosen, no links will be imported and the respective links in TPT will remain untouched.- See Also:
setLinkRoles(List)
-
-