Class TestDataService

java.lang.Object
org.qubership.atp.mia.service.execution.TestDataService

@Service public class TestDataService extends Object
  • Constructor Details

    • TestDataService

      public TestDataService()
  • Method Details

    • setValidationStatus

      public static Statuses setValidationStatus(DbTable table, int scenariosToExecuteSize)
      Check rows of a DbTable after execution and set Status.
      Parameters:
      table - result table after validation
      scenariosToExecuteSize - 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

      public void writeTestDataWorkbookToFile(String newExcelFileName)
      Write workbook into file.
      Parameters:
      newExcelFileName - full path to new file
    • event

      @AtpJaegerLog public CommandResponse event(Command command)
      Event parameters in test data file. (Event generation for Billing System Rate matrix from excel file)
      Parameters:
      command - command
      Returns:
      commandResponse
    • validate

      @AtpJaegerLog public CommandResponse validate(Command command)
      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

      @AtpJaegerLog public CommandResponse sql(Command command)
      Execute SQL in test data file.
      Parameters:
      command - command
      Returns:
      commandResponse
    • ssh

      @AtpJaegerLog public CommandResponse ssh(Command command)
      Execute SOAP in test data file.
      Parameters:
      command - command
      Returns:
      commandResponse
    • soap

      @AtpJaegerLog public CommandResponse soap(Command command)
      Execute SOAP in test data file.
      Parameters:
      command - command
      Returns:
      commandResponse
    • rest

      @AtpJaegerLog public CommandResponse rest(Command command)
      Execute REST in test data file.
      Parameters:
      command - command
      Returns:
      commandResponse