Package org.qubership.atp.mia.repo.impl
Class TestDataRepository
java.lang.Object
org.qubership.atp.mia.repo.impl.TestDataRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateEventDescription(Command command, LinkedList<Template> templates, Scenario sceMain, Description descrM, Description descrS) Generate event for description.voidgenerateEventScenario(Command command, LinkedList<Template> templates, Scenario sceMain, Scenario sceSec) Generate event scenario.getParametersFromDescriptions(Description descrM, Description descrS) Get parameters from descriptions.Get TestDataWorkbook.parseMainSheet(File excelFile, boolean forValidate) Parse excel sheet.parseQueriesSheet(File excelFile) Parse excel sheet.parseTestDataSheet(File excelFile) Parse excel sheet.voidparseWorkbook(TestDataWorkbook testDataWorkbook, boolean forValidate) Parse workbook.voidrestScenario(Scenario sceMain, Scenario sceSec, Command command) REST in whole scenario.voidsoapScenario(Scenario sceMain, Scenario sceSec, Command command) SOAP in whole scenario.voidsqlScenario(Scenario sceMain, Scenario sceSec, Command command) SQL in whole scenario.voidsshScenario(Scenario sceMain, Scenario sceSec, Command command) SSH in whole scenario.voidvalidateDescription(Scenario sceMain, Description descrM, Description descrS, String system) Validate description.voidvalidateScenario(Scenario sceMain, Scenario sceSec, String system) Validate whole scenario.
-
Constructor Details
-
TestDataRepository
public TestDataRepository()
-
-
Method Details
-
getTestDataWorkbook
Get TestDataWorkbook.- Returns:
TestDataWorkbook
-
generateEventDescription
public void generateEventDescription(Command command, LinkedList<Template> templates, Scenario sceMain, Description descrM, Description descrS) Generate event for description.- Parameters:
sceMain- scenario on main sheetdescrM- description on main sheetdescrS- description on test data sheet
-
parseMainSheet
Parse excel sheet.- Parameters:
excelFile- excel fileforValidate- limit 10 rows in case for validation- Returns:
- MainSheet
-
parseQueriesSheet
Parse excel sheet.- Parameters:
excelFile- excel file- Returns:
- MainSheet
-
parseTestDataSheet
Parse excel sheet.- Parameters:
excelFile- excel file- Returns:
- MainSheet
-
generateEventScenario
public void generateEventScenario(Command command, LinkedList<Template> templates, Scenario sceMain, Scenario sceSec) Generate event scenario.- Parameters:
sceMain- scenario on main sheetsceSec- scenario on test data sheet
-
parseWorkbook
Parse workbook. Parse only first sheet in case validation.- Parameters:
forValidate- is for validation
-
validateScenario
Validate whole scenario.- Parameters:
sceMain- scenario on main sheetsceSec- scenario on test data sheetsystem- system of environment
-
validateDescription
public void validateDescription(Scenario sceMain, Description descrM, Description descrS, String system) Validate description.- Parameters:
sceMain- scenario on main sheetdescrM- description on main sheetdescrS- description on test data sheetsystem- system of environment
-
sqlScenario
SQL in whole scenario.- Parameters:
sceMain- scenario on main sheetsceSec- scenario on test data sheetcommand- command
-
sshScenario
SSH in whole scenario.- Parameters:
sceMain- scenario on main sheetsceSec- scenario on test data sheetcommand- command
-
soapScenario
SOAP in whole scenario.- Parameters:
sceMain- scenario on main sheetsceSec- scenario on test data sheetcommand- command
-
restScenario
REST in whole scenario.- Parameters:
sceMain- scenario on main sheetsceSec- scenario on test data sheetcommand- command
-
getParametersFromDescriptions
Get parameters from descriptions.- Parameters:
descrM- description on main sheetdescrS- description on test data sheet- Returns:
- Map of parameters for description
-