Class TestDataService
java.lang.Object
org.qubership.atp.mia.service.execution.TestDataService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvent parameters in test data file.Execute REST in test data file.static StatusessetValidationStatus(DbTable table, int scenariosToExecuteSize) Check rows of a DbTable after execution and set Status.Execute SOAP in test data file.Execute SQL in test data file.Execute SOAP in test data file.uploadTestDataFileAndValidate(org.springframework.web.multipart.MultipartFile file) Upload file provided by FE to BE and validate it.Validate parameters in test data file.voidwriteTestDataWorkbookToFile(String newExcelFileName) Write workbook into file.
-
Constructor Details
-
TestDataService
public TestDataService()
-
-
Method Details
-
setValidationStatus
Check rows of a DbTable after execution and set Status.- Parameters:
table- result table after validationscenariosToExecuteSize- amount of executed scenarios- Returns:
- status
-
uploadTestDataFileAndValidate
public TestDataWorkbook uploadTestDataFileAndValidate(org.springframework.web.multipart.MultipartFile file) Upload file provided by FE to BE and validate it.- Parameters:
file- file- Returns:
- TestDataFile instance with file name and scenarios.
-
writeTestDataWorkbookToFile
Write workbook into file.- Parameters:
newExcelFileName- full path to new file
-
event
Event parameters in test data file. (Event generation for Billing System Rate matrix from excel file)- Parameters:
command- command- Returns:
- commandResponse
-
validate
Validate parameters in test data file. (Rate matrix validation using validation data from excel file (which was used for event generation))- Parameters:
command- command- Returns:
- commandResponse
-
sql
Execute SQL in test data file.- Parameters:
command- command- Returns:
- commandResponse
-
ssh
Execute SOAP in test data file.- Parameters:
command- command- Returns:
- commandResponse
-
soap
Execute SOAP in test data file.- Parameters:
command- command- Returns:
- commandResponse
-
rest
Execute REST in test data file.- Parameters:
command- command- Returns:
- commandResponse
-