Class Description
java.lang.Object
org.qubership.atp.mia.model.impl.testdata.parsed.Description
-
Constructor Summary
ConstructorsConstructorDescriptionDescription(String name, boolean onMainSheet, Map<String, String> params, MiaContext miaContext) Constructor with sort params of description.Description(String name, boolean onMainSheet, Map<String, String> params, MiaContext miaContext, boolean isSort) Constructor with sort or not of params of description.Description(String name, Map<String, String> params, MiaContext miaContext) Constructor with sort params of description. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOtherParam(String key, String value, TestDataWorkbook testDataWorkbook) Add other parameter (and add to each scenario).voidaddValidatedParam(String key, String value) Add validated parameter.Gets all parameters.booleanisPassed()Gets state of validation.voidupdateValidatedParam(String key, String value, ValidatedParameters.State state, String expectedValue) Add validated parameter.
-
Constructor Details
-
Description
public Description(String name, boolean onMainSheet, Map<String, String> params, MiaContext miaContext) Constructor with sort params of description.- Parameters:
name- name of descriptiononMainSheet- is Description on Main or TestData sheetparams- all paramsmiaContext- miaContext
-
Description
Constructor with sort params of description.- Parameters:
name- name of descriptionparams- all paramsmiaContext- miaContext
-
Description
public Description(String name, boolean onMainSheet, Map<String, String> params, MiaContext miaContext, boolean isSort) Constructor with sort or not of params of description.- Parameters:
name- name of descriptiononMainSheet- is Description on Main or TestData sheetparams- all paramsmiaContext- miaContextisSort- sort is needed or not
-
-
Method Details
-
addValidatedParam
Add validated parameter.- Parameters:
key- keyvalue- value
-
updateValidatedParam
public void updateValidatedParam(String key, String value, ValidatedParameters.State state, String expectedValue) Add validated parameter.- Parameters:
key- keyvalue- valuestate- state of validationexpectedValue- Expected, where as value contains actualValue
-
addOtherParam
Add other parameter (and add to each scenario).- Parameters:
key- keyvalue- valuetestDataWorkbook- testDataWorkbook
-
getAllParams
Gets all parameters.- Returns:
- map of all parameters
-
isPassed
public boolean isPassed()Gets state of validation.- Returns:
- true if all validation is passed
-