Class TestsConfiguration
- All Implemented Interfaces:
Serializable
- Since:
- 3.6.0
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.Deprecated.Returns the fields related to the Test Case failure of the.polarion/testing/configuration/configuration.xmlconfiguration.Returns the generic test runs configuration (used by test runs for which there is no type-specific configuration).This is the query used by the "Delete TestRuns" job to select which test runs to delete.booleanDeprecated.booleanDeprecated.booleanbooleanvoidsetDefectAutoAssignementEnabled(boolean defectAutoAssignementEnabled) voidsetDefectReuseType(TestsConfiguration.DefectReuseType defectReuseType) voidsetDefectsProject(String defectsProject) Deprecated.voidsetDefectTemplate(String defectTemplate) Deprecated.voidsetDefectToTestCaseLinkRoleId(String defectToTestCaseLinkRoleId) voidsetDefectWorkItemType(String defectWorkItemType) voidsetFieldsToCopyFromTestCaseToDefect(LinkedHashMap<String, String> fieldsToCopyFromTestCaseToDefect) voidsetFieldsToCopyFromTestRunToLinkedDefect(LinkedHashMap<String, String> fieldsToCopyFromTestRunToLinkedDefect) voidsetFieldsToCopyFromTestRunToNewDefect(LinkedHashMap<String, String> fieldsToCopyFromTestRunToNewDefect) voidsetMaxCreatedDefects(Integer maxCreatedDefects) voidsetMaxCreatedDefectsPercent(Integer maxCreatedDefectsPercent) voidsetResultErrorEnumId(String resultErrorEnumId) voidsetResultFailedEnumId(String resultFailedEnumId) voidsetResultPassedEnumId(String resultPassedEnumId) voidsetRetestAllowed(boolean retestAllowed) Deprecated.voidsetStatusErrorEnumId(String statusErrorEnumId) voidsetStatusFailedEnumId(String statusFailedEnumId) voidsetStatusOkEnumId(String statusOkEnumId) voidsetSummaryDefectSeverity(String summaryDefectSeverity) voidsetTestCaseFailureConfiguration(TestCaseFailureConfiguration testCaseFailureConfiguration) Sets the Test Case failure configuration.voidsetTestCaseIdCustomField(String testCaseIdCustomField) voidsetTestCasePlanningQuery(String testCasePlanningQuery) voidsetTestCaseTemplate(String testCaseTemplate) voidsetTestCaseTestCommentFieldId(String testCaseTestCommentFieldId) voidsetTestCaseTestResultFieldId(String testCaseTestResultFieldId) voidsetTestCaseWorkItemType(String testCaseWorkItemType) voidsetTestRunsConfiguration(TestRunsConfiguration testRunsConfiguration) Sets the generic test runs configuration.voidsetTestRunsDeleteEnabled(boolean testRunsDeleteEnabled) voidsetTestRunsDeleteQuery(String testRunsDeleteQuery) Based on this query, the "Delete TestRuns" job will select which test runs to delete.voidsetTestRunsGeneratedIdEnabled(boolean testRunsGeneratedIdEnabled) voidsetTestRunTemplate(String testRunTemplate) booleanshouldCreateSummaryDefect(int totalTests, int totalFailures, int totalErrors) Checks if the failures and errors count exceeded maximal values configured bygetMaxCreatedDefects()orgetMaxCreatedDefectsPercent()
-
Constructor Details
-
TestsConfiguration
public TestsConfiguration()
-
-
Method Details
-
getTestRunsDeleteQuery
This is the query used by the "Delete TestRuns" job to select which test runs to delete. See more information about how the query is used under Testing Configuration page in Administration.- Returns:
- the configured query for deleting test runs
- Since:
- 3.8.1
-
setTestRunsDeleteQuery
Based on this query, the "Delete TestRuns" job will select which test runs to delete. See more information about how the query is used under Testing Configuration page in Administration.- Parameters:
testRunsDeleteQuery- - the query used by the delete test runs job- Since:
- 3.8.1
-
isTestRunsDeleteEnabled
public boolean isTestRunsDeleteEnabled()- Returns:
trueif the configuration for deleting test runs is enabled in this scope andfalseotherwise- Since:
- 3.8.1
-
setTestRunsDeleteEnabled
public void setTestRunsDeleteEnabled(boolean testRunsDeleteEnabled) - Parameters:
testRunsDeleteEnabled- - enable/disable the configuration for deleting test runs based on a query- Since:
- 3.8.1
-
isTestRunsGeneratedIdEnabled
public boolean isTestRunsGeneratedIdEnabled()- Returns:
trueif the configuration for generated test runs id is enabled in this scope andfalseotherwise- Since:
- 3.9.1
-
setTestRunsGeneratedIdEnabled
public void setTestRunsGeneratedIdEnabled(boolean testRunsGeneratedIdEnabled) - Parameters:
testRunsGeneratedIdEnabled- - enable/disable the configuration for generated test runs id- Since:
- 3.9.1
-
getTestCaseTemplate
-
setTestCaseTemplate
-
getTestRunTemplate
-
setTestRunTemplate
-
getDefectToTestCaseLinkRoleId
Deprecated. -
setDefectToTestCaseLinkRoleId
-
getDefectWorkItemType
-
setDefectWorkItemType
-
getDefectsProject
Deprecated. -
setDefectsProject
Deprecated. -
getFieldsToCopyFromTestCaseToDefect
-
setFieldsToCopyFromTestCaseToDefect
@Deprecated public void setFieldsToCopyFromTestCaseToDefect(@Nullable LinkedHashMap<String, String> fieldsToCopyFromTestCaseToDefect) -
getFieldsToCopyFromTestRunToLinkedDefect
@Deprecated @Nullable public LinkedHashMap<String,String> getFieldsToCopyFromTestRunToLinkedDefect() -
setFieldsToCopyFromTestRunToLinkedDefect
@Deprecated public void setFieldsToCopyFromTestRunToLinkedDefect(@Nullable LinkedHashMap<String, String> fieldsToCopyFromTestRunToLinkedDefect) -
getFieldsToCopyFromTestRunToNewDefect
-
setFieldsToCopyFromTestRunToNewDefect
@Deprecated public void setFieldsToCopyFromTestRunToNewDefect(@Nullable LinkedHashMap<String, String> fieldsToCopyFromTestRunToNewDefect) -
getMaxCreatedDefects
-
setMaxCreatedDefects
-
getMaxCreatedDefectsPercent
-
setMaxCreatedDefectsPercent
-
shouldCreateSummaryDefect
public boolean shouldCreateSummaryDefect(int totalTests, int totalFailures, int totalErrors) Checks if the failures and errors count exceeded maximal values configured bygetMaxCreatedDefects()orgetMaxCreatedDefectsPercent()- Since:
- 3.6.1
-
getResultErrorEnumId
-
setResultErrorEnumId
-
getResultFailedEnumId
-
setResultFailedEnumId
-
getResultPassedEnumId
-
setResultPassedEnumId
-
getStatusErrorEnumId
-
setStatusErrorEnumId
-
getStatusFailedEnumId
-
setStatusFailedEnumId
-
getStatusOkEnumId
-
setStatusOkEnumId
-
getSummaryDefectSeverity
-
setSummaryDefectSeverity
-
getTestCaseIdCustomField
-
setTestCaseIdCustomField
-
getTestCaseWorkItemType
-
setTestCaseWorkItemType
-
isDefectAutoAssignementEnabled
Deprecated. -
setDefectAutoAssignementEnabled
-
isRetestAllowed
Deprecated. -
setRetestAllowed
Deprecated. -
getTestCaseTestResultFieldId
-
setTestCaseTestResultFieldId
-
getTestCaseTestCommentFieldId
-
setTestCaseTestCommentFieldId
-
getTestCasePlanningQuery
- Since:
- 3.6.2
-
setTestCasePlanningQuery
- Since:
- 3.6.2
-
getTestRunsConfiguration
Returns the generic test runs configuration (used by test runs for which there is no type-specific configuration).- Since:
- 3.10.1
- See Also:
-
getTestCaseFailureConfiguration
Returns the fields related to the Test Case failure of the.polarion/testing/configuration/configuration.xmlconfiguration.Once an Administration -> Testing -> Configuration page is opened in the UI, the migration to the new configuration structure is executed in that specific Project.
The TestCaseFailureConfiguration object returned by this method will only contain values from the original configuration.xml and will not return values that were migrated to another file. Therefore, this method is valid only until the configuration of your Project is migrated.
After migration, setting values in the TestCaseFailureConfiguration object returned by this method has no effect. You must access the newly created configurations located at:
.polarion/testing/configuration/test_case_failure_configuration/Prior to migration, setting the following fields in the returned object will not affect the original configuration.xml as they are duplicates:
- testCaseWorkItemType
- defectWorkItemType
- defectTemplate
- defectReuseType
- Since:
- 3.24.10
- See Also:
-
setTestRunsConfiguration
Sets the generic test runs configuration.- Since:
- 3.10.1
- See Also:
-
setTestCaseFailureConfiguration
public void setTestCaseFailureConfiguration(@Nullable TestCaseFailureConfiguration testCaseFailureConfiguration) Sets the Test Case failure configuration.- Since:
- 3.24.10
- See Also:
-
getDefectTemplate
Deprecated. -
setDefectTemplate
Deprecated. -
getDefectReuseType
Deprecated. -
setDefectReuseType
-
TestRunsConfiguration.getDefectReuseType()