Package com.polarion.alm.tracker
Class TestsConfiguration
java.lang.Object
com.polarion.alm.tracker.TestsConfiguration
- Since:
- 3.6.0
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.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
boolean
boolean
boolean
void
setDefectAutoAssignementEnabled
(boolean defectAutoAssignementEnabled) void
setDefectReuseType
(TestsConfiguration.DefectReuseType defectReuseType) void
setDefectsProject
(String defectsProject) 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) void
setStatusErrorEnumId
(String statusErrorEnumId) void
setStatusFailedEnumId
(String statusFailedEnumId) void
setStatusOkEnumId
(String statusOkEnumId) void
setSummaryDefectSeverity
(String summaryDefectSeverity) 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
-
setDefectToTestCaseLinkRoleId
-
getDefectWorkItemType
-
setDefectWorkItemType
-
getDefectsProject
-
setDefectsProject
-
getFieldsToCopyFromTestCaseToDefect
-
setFieldsToCopyFromTestCaseToDefect
public void setFieldsToCopyFromTestCaseToDefect(LinkedHashMap<String, String> fieldsToCopyFromTestCaseToDefect) -
getFieldsToCopyFromTestRunToLinkedDefect
-
setFieldsToCopyFromTestRunToLinkedDefect
public void setFieldsToCopyFromTestRunToLinkedDefect(LinkedHashMap<String, String> fieldsToCopyFromTestRunToLinkedDefect) -
getFieldsToCopyFromTestRunToNewDefect
-
setFieldsToCopyFromTestRunToNewDefect
public void setFieldsToCopyFromTestRunToNewDefect(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
public boolean isDefectAutoAssignementEnabled() -
setDefectAutoAssignementEnabled
public void setDefectAutoAssignementEnabled(boolean defectAutoAssignementEnabled) -
isRetestAllowed
public boolean isRetestAllowed() -
setRetestAllowed
public void setRetestAllowed(boolean retestAllowed) -
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:
-
setTestRunsConfiguration
Sets the generic test runs configuration.- Since:
- 3.10.1
- See Also:
-
getDefectTemplate
Deprecated. -
setDefectTemplate
Deprecated. -
getDefectReuseType
Deprecated. -
setDefectReuseType
-
TestRunsConfiguration.getDefectReuseType()