Interface ScenarioSimulationServicesClient

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.kie.server.api.model.ServiceResponse<org.kie.server.api.model.scenariosimulation.ScenarioSimulationResult> executeScenario​(String containerId, String content)
      Execute given test scenario against specified containerId
      org.kie.server.api.model.ServiceResponse<org.kie.server.api.model.scenariosimulation.ScenarioSimulationResult> executeScenarioByPath​(String containerId, String localPath)
      Execute given test scenario against specified containerId
    • Method Detail

      • executeScenarioByPath

        org.kie.server.api.model.ServiceResponse<org.kie.server.api.model.scenariosimulation.ScenarioSimulationResult> executeScenarioByPath​(String containerId,
                                                                                                                                             String localPath)
                                                                                                                                      throws IOException
        Execute given test scenario against specified containerId
        Parameters:
        containerId - id of container to be used to execute the scenario
        localPath - to Test Scenario file (scesim) to be executed. It must be a valid Paths.get(String, String...) parameter
        Returns:
        result of Test Scenario execution (jUnit like)
        Throws:
        IOException
      • executeScenario

        org.kie.server.api.model.ServiceResponse<org.kie.server.api.model.scenariosimulation.ScenarioSimulationResult> executeScenario​(String containerId,
                                                                                                                                       String content)
        Execute given test scenario against specified containerId
        Parameters:
        containerId - id of container to be used to execute the scenario
        content - of Test Scenario file (scesim) to be executed. This string should contain the XML of the scesim file
        Returns:
        result of Test Scenario execution (jUnit like)