Package 

Object TestPlanService

    • Method Detail

      • getTestPlan

         final TestPlan getTestPlan(Id<TestPlan> planId)
      • getTestPlanExecution

         final TestPlanExecution getTestPlanExecution(TestPlan testPlan, Id<TestPlanExecution> testExecutionId)
      • saveAndRunTestPlan

         final TestPlanExecution saveAndRunTestPlan(ConnectorRestClient client, TestPlan plan, Id<TestPlanExecution> executionId)

        This function saves the given test plan in the mongo database and then run the test plan.

        Parameters:
        client - is the client to use for running the test plan.
        plan - is the common test plan to run.
      • runTestPlan

         final TestPlanExecution runTestPlan(ConnectorRestClient client, TestPlan plan, Id<TestPlanExecution> executionId)

        This function execute the given common test plan. It goes over all steps of related tests and sends each step as a dialog.

        Parameters:
        client - is the client to use for the dialogs.
        plan - is the common test plan to run.
      • checkEquality

         final String checkEquality(ClientMessage $self, ClientMessage expectedMessage)

        This function checks if the answer sent by the bot equals the expected expectedMessage stored in the test step.

        Parameters:
        expectedMessage - is the message to expect as an answer from the bot.