Package io.jenkins.plugins.railflow
Class UploadParametersImpl
java.lang.Object
io.jenkins.plugins.railflow.UploadParametersImpl
- All Implemented Interfaces:
UploadParameters
,Serializable
Default implementation of
UploadParameters
.- Author:
- Sergey Oplavin
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jenkins.plugins.railflow.UploadParameters
UploadParameters.Builder
-
Constructor Summary
ConstructorDescriptionUploadParametersImpl
(String project, String testPath, ReportFormat reportFormat, SearchMode searchMode) -
Method Summary
Modifier and TypeMethodDescriptionGets the case fields.Gets the case priority.Gets the name of the case filed in TestRail which will be using for searching for existing test cases instead of test case title.Gets the case type.Gets the milestone path.Gets the project name.Gets the testreport format.Gets the result fields.getRunId()
Gets the tags field name.Gets the template name.Gets the test path.Gets the test plan.Gets the test run.boolean
Checks if is close plan.boolean
Checks if is close run.boolean
boolean
Checks if full case names allowed for test case names.void
setCaseFields
(Map<String, Object> caseFields) void
setCaseNameToIdMap
(Map<String, Integer> caseNameToIdMap) void
setCasePriority
(String casePriority) void
setCaseSearchField
(String caseSearchField) void
setCaseType
(String caseType) void
setClosePlan
(boolean closePlan) void
setCloseRun
(boolean closeRun) void
setConfigNames
(List<String> configNames) void
setDisableGrouping
(boolean disableGrouping) void
setFullCaseNamesAllowed
(boolean fullCaseNamesAllowed) void
setMilestonePath
(String milestonePath) void
setResultFields
(Map<String, Object> resultFields) void
void
setSmartTestFailureAssignment
(List<String> smartTestFailureAssignment) void
setTagsFieldName
(String tagsFieldName) void
setTemplateName
(String templateName) void
setTestPlan
(String testPlan) void
setTestRun
(String testRun) void
setUploadMode
(UploadMode uploadMode)
-
Constructor Details
-
UploadParametersImpl
public UploadParametersImpl(String project, String testPath, ReportFormat reportFormat, SearchMode searchMode)
-
-
Method Details
-
getProject
Description copied from interface:UploadParameters
Gets the project name.- Specified by:
getProject
in interfaceUploadParameters
- Returns:
- the project name
-
getTestPath
Description copied from interface:UploadParameters
Gets the test path.- Specified by:
getTestPath
in interfaceUploadParameters
- Returns:
- the test path
-
getReportFormat
Description copied from interface:UploadParameters
Gets the testreport format.- Specified by:
getReportFormat
in interfaceUploadParameters
- Returns:
- the testreport format
-
getSearchMode
- Specified by:
getSearchMode
in interfaceUploadParameters
- Returns:
- specifies the test case lookup algorithm.
-
getTestRun
Description copied from interface:UploadParameters
Gets the test run.- Specified by:
getTestRun
in interfaceUploadParameters
- Returns:
- the test run
-
setTestRun
-
getTestPlan
Description copied from interface:UploadParameters
Gets the test plan.- Specified by:
getTestPlan
in interfaceUploadParameters
- Returns:
- the test plan
-
setTestPlan
-
getMilestonePath
Description copied from interface:UploadParameters
Gets the milestone path.- Specified by:
getMilestonePath
in interfaceUploadParameters
- Returns:
- the milestone path
-
setMilestonePath
-
getCaseFields
Description copied from interface:UploadParameters
Gets the case fields.- Specified by:
getCaseFields
in interfaceUploadParameters
- Returns:
- the case fields
-
setCaseFields
-
getResultFields
Description copied from interface:UploadParameters
Gets the result fields.- Specified by:
getResultFields
in interfaceUploadParameters
- Returns:
- the result fields
-
setResultFields
-
getConfigNames
- Specified by:
getConfigNames
in interfaceUploadParameters
- Returns:
- string list containing configuration names (paths)
-
setConfigNames
-
isCloseRun
public boolean isCloseRun()Description copied from interface:UploadParameters
Checks if is close run.- Specified by:
isCloseRun
in interfaceUploadParameters
- Returns:
- true, if is close run.
-
setCloseRun
public void setCloseRun(boolean closeRun) -
isClosePlan
public boolean isClosePlan()Description copied from interface:UploadParameters
Checks if is close plan.- Specified by:
isClosePlan
in interfaceUploadParameters
- Returns:
- true, if is close plan.
-
setClosePlan
public void setClosePlan(boolean closePlan) -
getCaseNameToIdMap
- Specified by:
getCaseNameToIdMap
in interfaceUploadParameters
- Returns:
- string containing mappings between test name and test case ID in TestRail.
-
setCaseNameToIdMap
-
isDisableGrouping
public boolean isDisableGrouping()- Specified by:
isDisableGrouping
in interfaceUploadParameters
- Returns:
- flag indicates whether or not sub section creation (grouping) is
disabled.
true
- creation of subsections is disabled so all test cases will be uploaded into one section defined by test path parameter,false
- creation of subsection is enabled, so one or more subsection will be created.
-
setDisableGrouping
public void setDisableGrouping(boolean disableGrouping) -
getTemplateName
Description copied from interface:UploadParameters
Gets the template name.- Specified by:
getTemplateName
in interfaceUploadParameters
- Returns:
- the template name
-
setTemplateName
-
getCaseType
Description copied from interface:UploadParameters
Gets the case type.- Specified by:
getCaseType
in interfaceUploadParameters
- Returns:
- the case type
-
setCaseType
-
getCasePriority
Description copied from interface:UploadParameters
Gets the case priority.- Specified by:
getCasePriority
in interfaceUploadParameters
- Returns:
- the case priority
-
setCasePriority
-
getRunId
- Specified by:
getRunId
in interfaceUploadParameters
- Returns:
- the ID of the TestRail Run to update or 0.
-
setRunId
-
getSmartTestFailureAssignment
- Specified by:
getSmartTestFailureAssignment
in interfaceUploadParameters
- Returns:
- string list of user email addresses.
-
setSmartTestFailureAssignment
-
getUploadMode
- Specified by:
getUploadMode
in interfaceUploadParameters
- Returns:
- specifies test cases upload mode.
-
setUploadMode
-
getCaseSearchField
Description copied from interface:UploadParameters
Gets the name of the case filed in TestRail which will be using for searching for existing test cases instead of test case title.- Specified by:
getCaseSearchField
in interfaceUploadParameters
- Returns:
- the name of a case field.
-
setCaseSearchField
-
isFullCaseNamesAllowed
public boolean isFullCaseNamesAllowed()Description copied from interface:UploadParameters
Checks if full case names allowed for test case names.- Specified by:
isFullCaseNamesAllowed
in interfaceUploadParameters
- Returns:
- true, if full case names allowed.
-
setFullCaseNamesAllowed
public void setFullCaseNamesAllowed(boolean fullCaseNamesAllowed) -
getTagsFieldName
Description copied from interface:UploadParameters
Gets the tags field name.- Specified by:
getTagsFieldName
in interfaceUploadParameters
- Returns:
- the tags field name.
-
setTagsFieldName
-