Package com.ads.api.beans.tm
Class TestCase
java.lang.Object
com.ads.api.beans.tm.TestCase
This class provides some beans control methods related to TestCase, testCaseName, its Description, testCaseLabel, testSQLScript, stepName, projectName,
subjectName, expectedResult, actualResult, testCaseComments, testStepComments, validationStepStatus, validationStepType, testDocName, testDocOwner,
AuditHistory Details etc...
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValidationStep(String name, TestCaseValidationStep _validationStep) Adds the stepName to validationStepMap.Returns the actualResult.Returns the approvalFlag.Returns the approved value.Returns the approvedBy value.Returns the attach Document.Returns the createdBy.Returns the createdDate.Returns the description.Returns the docMode.Returns the documentLink.Returns the documentStatus.Returns the excelInvalidRows list when the excel Document is imported for a testCase.Returns the expectedResult.Returns the extendable value.Returns the externalTestcaseIdReturns the lastModifiedBy.Returns the lastModifiedDateTime.getMapId()Returns the mapId in which the testCase is present.Returns the mapName in which the testCase is present.Returns the message.Returns the name of the login user who modified the testCase.Returns the modifiedDate on which the testCase Details are modified.Returns the objectId.Returns the ObjectName.Returns the priorityId.Returns the priorityName.Returns the projectId.Returns the projectName in which the testCase is present.Returns the saveFilePath.Returns the statusId.Returns the statusName of the Document.i.e In progress, Ready for Review, Approved.Returns the subjectId in which the testCase is present.Returns the subjectName in which the testCase is present.Returns the successOption.Returns the testCaseComments.Sets the testCaseId.Returns the testCaseLabel of the particular testCase.Returns the testCaseLabel of the testCase.Returns the TestCaseLevel.Returns the testCaseName.Returns the testCaseTypeId.Returns the TestCase Document ApprovalDate.Returns the testCaseDocId.Returns the testCaseDoc intendedUserDescription.Returns the testCaseDocumentName.Returns the testDocumentObject.Returns the testCaseDocument Owner.Returns the testCaseDocument Type.Returns the testSQLScript.Returns the testStepComments.Returns the testTypeName.getValidationStep(String name) Returns the TestCaseValidationStep for the specified name.Returns the validationStepMap i.e it returns the details like testCaseId, validationStepId, validationStepName, status,
description, expectedResult, actualResult, comments etc...Returns the TestCaseValidationStep Object.booleanReturns the value True or False.booleanReturns the validExcelCase value.voidsetActualResult(String actualResult) Sets the actualResult as specified.voidsetApprovalFlag(String approvalFlag) Sets the approvalFlag as specified.voidsetApproved(String approved) Sets the approved as specified.voidsetApprovedBy(String approvedBy) Sets the approvedBy as specified.voidsetAttachDoc(String attachDoc) Sets the attach Document as specified.voidsetAttachFile(File attachFile) voidsetCreatedBy(String createdBy) Sets the createdBy as specified.voidsetCreatedDate(String createdDate) Sets the createdDate as specified.voidsetDescription(String description) Sets the description as specified.voidsetDocMode(String docMode) Sets the docMode as specified.voidsetDocumentLink(String documentLink) Sets the documentLink as specified.voidsetDocumentStatus(String documentStatus) Sets the documentStatus as specified.voidsetExcelInvalidRows(List<Integer> excelInvalidRows) Sets the excelInvalidRows as specified.voidsetExpectedResult(String expectedResult) Sets the expectedResult as specified.voidsetExtendable(String extendable) Sets the extendable value as specified.voidsetExternalTestcaseId(String externalTestcaseId) Sets the externalTestcaseId as specified.voidsetIsCopied(boolean isCopied) Sets the value of IsCopied as specified.voidsetLastModifiedBy(String lastModifiedBy) Sets the value of lastModifiedBy as specified.voidsetLastModifiedDateTime(String lastModifiedDateTime) Sets the lastModifiedDateTime as specified.voidSets the mapId as specified.voidsetMapName(String mapName) Sets the mapName as specified.voidsetMessage(String message) Sets the message as specified.voidsetModifiedBy(String modifiedBy) Sets the value of the modifiedBy as specified.voidsetModifiedDate(String modifiedDate) Sets the modifiedDate as specified.voidsetObjectId(String objectId) Sets the objectId as specified.voidsetObjectName(String objectName) Sets the objectName as specified.voidsetPriorityId(String priorityId) Sets the priorityId as specified.voidsetPriorityName(String priorityName) Sets the priorityName as specified.voidsetProjectId(String projectId) Sets the projectId as specified.voidsetProjectName(String projectName) Sets the projectName as specified.voidsetSaveFilePath(String saveFilePath) Sets the saveFilePath as specified.voidsetStatusId(String statusId) Sets the statusId as specified.voidsetStatusName(String statusName) Sets the statusName as specified.voidsetSubjectId(String subjectId) Sets the subjectId as specified.voidsetSubjectName(String subjectName) Sets the subjectName as specified.voidsetSuccessOption(String successOption) Sets the successOption as specified.voidsetTestCaseComments(String testCaseComments) Sets the testCaseComments as specified.voidsetTestCaseId(String testCaseId) Returns the testCaseIdvoidsetTestCaseLabel(String testCaseLabel) Sets the testCaseLabel as specified.voidsetTestCaseLevel(String testCaseLevel) Sets the testCaseLevel as specified.voidsetTestCaseName(String testCaseName) Sets the testCaseName as specified.voidsetTestCaseTypeId(String testCaseTypeId) Returns the testCaseTypeId as specified.voidsetTestDocApprovalDate(String testDocApprovalDate) Sets the TestCase Document ApprovalDate as specified.voidsetTestDocId(String testDocId) Sets the testCaseDocId as specified.voidsetTestDocIntededUseDescr(String testDocIntededUseDescr) Sets the testCaseDoc intendedUserDescription as specified.voidsetTestDocName(String testDocName) Sets the testDocName as specified.voidsetTestDocObject(String testDocObject) Sets the testDocumentObject as specified.voidsetTestDocOwner(String testDocOwner) Sets the testCaseDocument Owner as specified.voidsetTestDocType(String testDocType) Sets the testCaseDocument Type as specified.voidsetTestSQLScript(String testSQLScript) Sets the testSQLScript as specified.voidsetTestStepComments(String testStepComments) Sets the testStepComments as specified.voidsetTestTypeName(String testTypeName) Sets the testTypeName as specified.voidsetValidationStepMap(Map<String, TestCaseValidationStep> _validationStepMap) Sets the validationStepMap as specified.voidsetValidExcelCase(boolean validExcelCase) Sets the validExcelCase as specified.
-
Constructor Details
-
TestCase
public TestCase()
-
-
Method Details
-
getApproved
Returns the approved value.- Returns:
- String
-
setApproved
Sets the approved as specified.- Parameters:
approved- String
-
isIsCopied
public boolean isIsCopied()Returns the value True or False.- Returns:
- Boolean
-
setIsCopied
public void setIsCopied(boolean isCopied) Sets the value of IsCopied as specified.- Parameters:
isCopied- boolean
-
getTestCaseLevel
Returns the TestCaseLevel. i.e it returns the level in which TestCase is present.
TestCaseLevel can be map level, project level or table level.- Returns:
- String
-
setTestCaseLevel
Sets the testCaseLevel as specified.- Parameters:
testCaseLevel- String
-
getTestcaseLabel
Returns the testCaseLabel of the particular testCase.- Returns:
- String
-
getTestCaseId
Sets the testCaseId.- Returns:
- String
-
setTestCaseId
Returns the testCaseId- Parameters:
testCaseId- String
-
getTestCaseLabel
Returns the testCaseLabel of the testCase.- Returns:
- String
-
setTestCaseLabel
Sets the testCaseLabel as specified.- Parameters:
testCaseLabel- String
-
getTestCaseName
Returns the testCaseName.- Returns:
- String
-
setTestCaseName
Sets the testCaseName as specified.- Parameters:
testCaseName- String
-
getTestSQLScript
Returns the testSQLScript.- Returns:
- String
-
setTestSQLScript
Sets the testSQLScript as specified.- Parameters:
testSQLScript- String
-
getDescription
Returns the description.- Returns:
- String
-
setDescription
Sets the description as specified.- Parameters:
description- String
-
getCreatedBy
Returns the createdBy. i.e it returns the name of the user who has created the testCase.- Returns:
- String
-
setCreatedBy
Sets the createdBy as specified.- Parameters:
createdBy- String
-
getCreatedDate
Returns the createdDate.- Returns:
- String
-
setCreatedDate
Sets the createdDate as specified.- Parameters:
createdDate- String
-
getModifiedBy
Returns the name of the login user who modified the testCase.- Returns:
- String
-
setModifiedBy
Sets the value of the modifiedBy as specified.- Parameters:
modifiedBy- String
-
getModifiedDate
Returns the modifiedDate on which the testCase Details are modified.- Returns:
- String
-
setModifiedDate
Sets the modifiedDate as specified.- Parameters:
modifiedDate- String
-
getProjectId
Returns the projectId.- Returns:
- String
-
setProjectId
Sets the projectId as specified.- Parameters:
projectId- String
-
getProjectName
Returns the projectName in which the testCase is present.- Returns:
- String
-
setProjectName
Sets the projectName as specified.- Parameters:
projectName- String
-
getMapId
Returns the mapId in which the testCase is present.- Returns:
- String
-
setMapId
Sets the mapId as specified.- Parameters:
mapId- String
-
getMapName
Returns the mapName in which the testCase is present.- Returns:
- String
-
setMapName
Sets the mapName as specified.- Parameters:
mapName- String
-
getSubjectId
Returns the subjectId in which the testCase is present.- Returns:
- String
-
setSubjectId
Sets the subjectId as specified.- Parameters:
subjectId- String
-
getSubjectName
Returns the subjectName in which the testCase is present.- Returns:
- String
-
setSubjectName
Sets the subjectName as specified.- Parameters:
subjectName- String
-
getTestDocName
Returns the testCaseDocumentName.- Returns:
- String
-
setTestDocName
Sets the testDocName as specified.- Parameters:
testDocName- String
-
getTestDocType
Returns the testCaseDocument Type.- Returns:
- String
-
setTestDocType
Sets the testCaseDocument Type as specified.- Parameters:
testDocType- String
-
getTestDocIntededUseDescr
Returns the testCaseDoc intendedUserDescription.- Returns:
- String
-
setTestDocIntededUseDescr
Sets the testCaseDoc intendedUserDescription as specified.- Parameters:
testDocIntededUseDescr- String
-
getTestDocOwner
Returns the testCaseDocument Owner.- Returns:
- String
-
setTestDocOwner
Sets the testCaseDocument Owner as specified.- Parameters:
testDocOwner- String
-
getTestDocId
Returns the testCaseDocId.- Returns:
- String
-
setTestDocId
Sets the testCaseDocId as specified.- Parameters:
testDocId- String
-
getLastModifiedBy
Returns the lastModifiedBy.- Returns:
- String
-
setLastModifiedBy
Sets the value of lastModifiedBy as specified.- Parameters:
lastModifiedBy- String
-
getLastModifiedDateTime
Returns the lastModifiedDateTime.- Returns:
- String
-
setLastModifiedDateTime
Sets the lastModifiedDateTime as specified.- Parameters:
lastModifiedDateTime- String
-
getTestDocObject
Returns the testDocumentObject.- Returns:
- String
-
setTestDocObject
Sets the testDocumentObject as specified.- Parameters:
testDocObject- String
-
getApprovedBy
Returns the approvedBy value.- Returns:
- String
-
setApprovedBy
Sets the approvedBy as specified.- Parameters:
approvedBy- String
-
getTestDocApprovalDate
Returns the TestCase Document ApprovalDate.- Returns:
- String
-
setTestDocApprovalDate
Sets the TestCase Document ApprovalDate as specified.- Parameters:
testDocApprovalDate- String
-
getDocumentStatus
Returns the documentStatus.- Returns:
- String
-
setDocumentStatus
Sets the documentStatus as specified.- Parameters:
documentStatus- String
-
getApprovalFlag
Returns the approvalFlag.- Returns:
- String
-
setApprovalFlag
Sets the approvalFlag as specified.- Parameters:
approvalFlag- String
-
getSuccessOption
Returns the successOption.- Returns:
- String
-
setSuccessOption
Sets the successOption as specified.- Parameters:
successOption- String
-
getMessage
Returns the message.- Returns:
- String
-
setMessage
Sets the message as specified.- Parameters:
message- String
-
getSaveFilePath
Returns the saveFilePath.- Returns:
- String
-
setSaveFilePath
Sets the saveFilePath as specified.- Parameters:
saveFilePath- String
-
getAttachDoc
Returns the attach Document.- Returns:
- String
-
setAttachDoc
Sets the attach Document as specified.- Parameters:
attachDoc- String
-
getDocMode
Returns the docMode.- Returns:
- String
-
setDocMode
Sets the docMode as specified.- Parameters:
docMode- String
-
getExtendable
Returns the extendable value. i.e depending on extendable value, testCase will be extended.- Returns:
- String
-
setExtendable
Sets the extendable value as specified.- Parameters:
extendable- String
-
getExpectedResult
Returns the expectedResult.- Returns:
- String
-
setExpectedResult
Sets the expectedResult as specified.- Parameters:
expectedResult- String
-
getActualResult
Returns the actualResult.- Returns:
- String
-
setActualResult
Sets the actualResult as specified.- Parameters:
actualResult- String
-
getStatusId
Returns the statusId.- Returns:
- String
-
setStatusId
Sets the statusId as specified.- Parameters:
statusId- String
-
getStatusName
Returns the statusName of the Document.i.e In progress, Ready for Review, Approved.- Returns:
- String
-
setStatusName
Sets the statusName as specified.- Parameters:
statusName- String
-
getTestCaseTypeId
Returns the testCaseTypeId.- Returns:
- String
-
setTestCaseTypeId
Returns the testCaseTypeId as specified.- Parameters:
testCaseTypeId- String
-
getTestTypeName
Returns the testTypeName.- Returns:
- String
-
setTestTypeName
Sets the testTypeName as specified.- Parameters:
testTypeName- String
-
getPriorityId
Returns the priorityId. Priority are of High, Medium, Low, Critical types.
High has 1, Medium has 2, Low has 3, Critical has 4 as its PriorityIds respectively.- Returns:
- String
-
setPriorityId
Sets the priorityId as specified.- Parameters:
priorityId- String
-
getPriorityName
Returns the priorityName. PriorityNames are High, Medium, Low, Critical.- Returns:
- String
-
setPriorityName
Sets the priorityName as specified.- Parameters:
priorityName- String
-
getValidationStepMap
Returns the validationStepMap i.e it returns the details like testCaseId, validationStepId, validationStepName, status,
description, expectedResult, actualResult, comments etc...- Returns:
- Map
-
setValidationStepMap
Sets the validationStepMap as specified.- Parameters:
_validationStepMap- Map
-
getValidationStep
Returns the TestCaseValidationStep for the specified name.- Parameters:
name- String- Returns:
- TestCaseValidationStep Object
-
addValidationStep
Adds the stepName to validationStepMap.- Parameters:
name- String_validationStep- TestCaseValidationStep
-
getValidationStepsList
Returns the TestCaseValidationStep Object.- Returns:
- List
-
getExcelInvalidRows
Returns the excelInvalidRows list when the excel Document is imported for a testCase.- Returns:
- List
-
setExcelInvalidRows
Sets the excelInvalidRows as specified.- Parameters:
excelInvalidRows- List
-
getTestCaseComments
Returns the testCaseComments.- Returns:
- String
-
setTestCaseComments
Sets the testCaseComments as specified.- Parameters:
testCaseComments- String
-
getTestStepComments
Returns the testStepComments.- Returns:
- String
-
setTestStepComments
Sets the testStepComments as specified.- Parameters:
testStepComments- String
-
isValidExcelCase
public boolean isValidExcelCase()Returns the validExcelCase value.- Returns:
- Boolean
-
setValidExcelCase
public void setValidExcelCase(boolean validExcelCase) Sets the validExcelCase as specified.- Parameters:
validExcelCase- Boolean
-
getExternalTestcaseId
Returns the externalTestcaseId- Returns:
- String
-
setExternalTestcaseId
Sets the externalTestcaseId as specified.- Parameters:
externalTestcaseId- String
-
getDocumentLink
Returns the documentLink.- Returns:
- String
-
setDocumentLink
Sets the documentLink as specified.- Parameters:
documentLink- String
-
getObjectId
Returns the objectId.- Returns:
- String
-
setObjectId
Sets the objectId as specified.- Parameters:
objectId- String
-
getObjectName
Returns the ObjectName.- Returns:
- String
-
setObjectName
Sets the objectName as specified.- Parameters:
objectName- String
-
getAttachFile
-
setAttachFile
-