Class PolarionTestCasesExportSettings

  • All Implemented Interfaces:
    java.io.Serializable

    public class PolarionTestCasesExportSettings
    extends TestCasesExportSettings
    The settings for the export of test cases to Polarion.
    Author:
    Copyright (c) 2014-2024 PikeTec GmbH - MIT License (MIT) - All rights reserved
    See Also:
    Serialized Form
    • Constructor Detail

      • PolarionTestCasesExportSettings

        public PolarionTestCasesExportSettings​(java.lang.String projectId)
        The constructor for the settings of the export of test cases to Polarion.
        Parameters:
        projectId - The ID of the project in Polarion.
    • Method Detail

      • getProjectId

        public java.lang.String getProjectId()
        Returns:
        The ID of the project in Polarion.
      • getTestSet

        public java.lang.String getTestSet()
        Returns:
        The TPT test set to export a subset of TPT test cases. If null, all test cases are exported.
      • setTestSet

        public void setTestSet​(java.lang.String testSet)
        Parameters:
        testSet - The TPT test set to export a subset of TPT test cases. If null, all test cases are exported.
      • isExportDescription

        public boolean isExportDescription()
        Returns:
        Whether to export the TPT description to the description field in Polarion. Note that the description will be exported as plain text.
      • setExportDescription

        public void setExportDescription​(boolean exportDescription)
        Parameters:
        exportDescription - Whether to export the TPT description to the description field in Polarion. Note that the description will be exported as plain text.
      • getWorkItemType

        public java.lang.String getWorkItemType()
        Returns:
        The ID of the Polarion work item type to use for the exported test cases.
      • setWorkItemType

        public void setWorkItemType​(java.lang.String workItemType)
        Parameters:
        workItemType - The ID of the Polarion work item type to use for the exported test cases.
      • getIdAttribute

        public java.lang.String getIdAttribute()
        Returns:
        The TPT test case attribute which contains the Polarion IDs. It will be used to update test cases which already are known in Polarion. Furthermore the IDs of newly created work items will be applied to the respective TPT test cases.
      • setIdAttribute

        public void setIdAttribute​(java.lang.String idAttribute)
        Parameters:
        idAttribute - The TPT test case attribute which contains the Polarion IDs. It will be used to update test cases which already are known in Polarion. Furthermore the IDs of newly created work items will be applied to the respective TPT test cases.
      • getLinkRole

        public java.lang.String getLinkRole()
        Returns:
        The ID of the Polarion role of the exported links. If null, no links are exported.
      • setLinkRole

        public void setLinkRole​(java.lang.String linkRole)
        Parameters:
        linkRole - The ID of the Polarion role of the exported links. If set to null, no links are exported.
      • isRemoveUnexportedLinks

        public boolean isRemoveUnexportedLinks()
        Returns:
        Whether to remove unexported links. If true, Polarion links of the same role as specified that are not exported are removed.
        See Also:
        setLinkRole(String)
      • setRemoveUnexportedLinks

        public void setRemoveUnexportedLinks​(boolean removeUnexportedLinks)
        Parameters:
        removeUnexportedLinks - Whether to remove unexported links. If set to true, Polarion links of the same role as specified that are not exported are removed.
        See Also:
        setLinkRole(String)