Class TestsConfiguration
- All Implemented Interfaces:
Serializable
- Since:
- 3.6.0
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.Deprecated.Returns the fields related to the Test Case failure of the.polarion/testing/configuration/configuration.xml
configuration.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.boolean
Deprecated.boolean
Deprecated.boolean
boolean
void
setDefectAutoAssignementEnabled
(boolean defectAutoAssignementEnabled) void
setDefectReuseType
(TestsConfiguration.DefectReuseType defectReuseType) void
setDefectsProject
(String defectsProject) Deprecated.void
setDefectTemplate
(String defectTemplate) Deprecated.void
setDefectToTestCaseLinkRoleId
(String defectToTestCaseLinkRoleId) void
setDefectWorkItemType
(String defectWorkItemType) void
setFieldsToCopyFromTestCaseToDefect
(LinkedHashMap<String, String> fieldsToCopyFromTestCaseToDefect) void
setFieldsToCopyFromTestRunToLinkedDefect
(LinkedHashMap<String, String> fieldsToCopyFromTestRunToLinkedDefect) void
setFieldsToCopyFromTestRunToNewDefect
(LinkedHashMap<String, String> fieldsToCopyFromTestRunToNewDefect) void
setMaxCreatedDefects
(Integer maxCreatedDefects) void
setMaxCreatedDefectsPercent
(Integer maxCreatedDefectsPercent) void
setResultErrorEnumId
(String resultErrorEnumId) void
setResultFailedEnumId
(String resultFailedEnumId) void
setResultPassedEnumId
(String resultPassedEnumId) void
setRetestAllowed
(boolean retestAllowed) Deprecated.void
setStatusErrorEnumId
(String statusErrorEnumId) void
setStatusFailedEnumId
(String statusFailedEnumId) void
setStatusOkEnumId
(String statusOkEnumId) void
setSummaryDefectSeverity
(String summaryDefectSeverity) void
setTestCaseFailureConfiguration
(TestCaseFailureConfiguration testCaseFailureConfiguration) Sets the Test Case failure configuration.void
setTestCaseIdCustomField
(String testCaseIdCustomField) void
setTestCasePlanningQuery
(String testCasePlanningQuery) void
setTestCaseTemplate
(String testCaseTemplate) void
setTestCaseTestCommentFieldId
(String testCaseTestCommentFieldId) void
setTestCaseTestResultFieldId
(String testCaseTestResultFieldId) void
setTestCaseWorkItemType
(String testCaseWorkItemType) void
setTestRunsConfiguration
(TestRunsConfiguration testRunsConfiguration) Sets the generic test runs configuration.void
setTestRunsDeleteEnabled
(boolean testRunsDeleteEnabled) void
setTestRunsDeleteQuery
(String testRunsDeleteQuery) Based on this query, the "Delete TestRuns" job will select which test runs to delete.void
setTestRunsGeneratedIdEnabled
(boolean testRunsGeneratedIdEnabled) void
setTestRunTemplate
(String testRunTemplate) boolean
shouldCreateSummaryDefect
(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:
true
if the configuration for deleting test runs is enabled in this scope andfalse
otherwise- 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:
true
if the configuration for generated test runs id is enabled in this scope andfalse
otherwise- 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.xml
configuration.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()