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
ConstructorsConstructorDescriptionUploadParametersImpl(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.booleanChecks if is close plan.booleanChecks if is close run.booleanbooleanChecks if full case names allowed for test case names.voidsetCaseFields(Map<String, Object> caseFields) voidsetCaseNameToIdMap(Map<String, Integer> caseNameToIdMap) voidsetCasePriority(String casePriority) voidsetCaseSearchField(String caseSearchField) voidsetCaseType(String caseType) voidsetClosePlan(boolean closePlan) voidsetCloseRun(boolean closeRun) voidsetConfigNames(List<String> configNames) voidsetDisableGrouping(boolean disableGrouping) voidsetFullCaseNamesAllowed(boolean fullCaseNamesAllowed) voidsetMilestonePath(String milestonePath) voidsetResultFields(Map<String, Object> resultFields) voidvoidsetSmartTestFailureAssignment(List<String> smartTestFailureAssignment) voidsetTagsFieldName(String tagsFieldName) voidsetTemplateName(String templateName) voidsetTestPlan(String testPlan) voidsetTestRun(String testRun) voidsetUploadMode(UploadMode uploadMode)
-
Constructor Details
-
UploadParametersImpl
public UploadParametersImpl(String project, String testPath, ReportFormat reportFormat, SearchMode searchMode)
-
-
Method Details
-
getProject
Description copied from interface:UploadParametersGets the project name.- Specified by:
getProjectin interfaceUploadParameters- Returns:
- the project name
-
getTestPath
Description copied from interface:UploadParametersGets the test path.- Specified by:
getTestPathin interfaceUploadParameters- Returns:
- the test path
-
getReportFormat
Description copied from interface:UploadParametersGets the testreport format.- Specified by:
getReportFormatin interfaceUploadParameters- Returns:
- the testreport format
-
getSearchMode
- Specified by:
getSearchModein interfaceUploadParameters- Returns:
- specifies the test case lookup algorithm.
-
getTestRun
Description copied from interface:UploadParametersGets the test run.- Specified by:
getTestRunin interfaceUploadParameters- Returns:
- the test run
-
setTestRun
-
getTestPlan
Description copied from interface:UploadParametersGets the test plan.- Specified by:
getTestPlanin interfaceUploadParameters- Returns:
- the test plan
-
setTestPlan
-
getMilestonePath
Description copied from interface:UploadParametersGets the milestone path.- Specified by:
getMilestonePathin interfaceUploadParameters- Returns:
- the milestone path
-
setMilestonePath
-
getCaseFields
Description copied from interface:UploadParametersGets the case fields.- Specified by:
getCaseFieldsin interfaceUploadParameters- Returns:
- the case fields
-
setCaseFields
-
getResultFields
Description copied from interface:UploadParametersGets the result fields.- Specified by:
getResultFieldsin interfaceUploadParameters- Returns:
- the result fields
-
setResultFields
-
getConfigNames
- Specified by:
getConfigNamesin interfaceUploadParameters- Returns:
- string list containing configuration names (paths)
-
setConfigNames
-
isCloseRun
public boolean isCloseRun()Description copied from interface:UploadParametersChecks if is close run.- Specified by:
isCloseRunin interfaceUploadParameters- Returns:
- true, if is close run.
-
setCloseRun
public void setCloseRun(boolean closeRun) -
isClosePlan
public boolean isClosePlan()Description copied from interface:UploadParametersChecks if is close plan.- Specified by:
isClosePlanin interfaceUploadParameters- Returns:
- true, if is close plan.
-
setClosePlan
public void setClosePlan(boolean closePlan) -
getCaseNameToIdMap
- Specified by:
getCaseNameToIdMapin interfaceUploadParameters- Returns:
- string containing mappings between test name and test case ID in TestRail.
-
setCaseNameToIdMap
-
isDisableGrouping
public boolean isDisableGrouping()- Specified by:
isDisableGroupingin 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:UploadParametersGets the template name.- Specified by:
getTemplateNamein interfaceUploadParameters- Returns:
- the template name
-
setTemplateName
-
getCaseType
Description copied from interface:UploadParametersGets the case type.- Specified by:
getCaseTypein interfaceUploadParameters- Returns:
- the case type
-
setCaseType
-
getCasePriority
Description copied from interface:UploadParametersGets the case priority.- Specified by:
getCasePriorityin interfaceUploadParameters- Returns:
- the case priority
-
setCasePriority
-
getRunId
- Specified by:
getRunIdin interfaceUploadParameters- Returns:
- the ID of the TestRail Run to update or 0.
-
setRunId
-
getSmartTestFailureAssignment
- Specified by:
getSmartTestFailureAssignmentin interfaceUploadParameters- Returns:
- string list of user email addresses.
-
setSmartTestFailureAssignment
-
getUploadMode
- Specified by:
getUploadModein interfaceUploadParameters- Returns:
- specifies test cases upload mode.
-
setUploadMode
-
getCaseSearchField
Description copied from interface:UploadParametersGets 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:
getCaseSearchFieldin interfaceUploadParameters- Returns:
- the name of a case field.
-
setCaseSearchField
-
isFullCaseNamesAllowed
public boolean isFullCaseNamesAllowed()Description copied from interface:UploadParametersChecks if full case names allowed for test case names.- Specified by:
isFullCaseNamesAllowedin interfaceUploadParameters- Returns:
- true, if full case names allowed.
-
setFullCaseNamesAllowed
public void setFullCaseNamesAllowed(boolean fullCaseNamesAllowed) -
getTagsFieldName
Description copied from interface:UploadParametersGets the tags field name.- Specified by:
getTagsFieldNamein interfaceUploadParameters- Returns:
- the tags field name.
-
setTagsFieldName
-