public class TestPlanService
public static TestPlanService INSTANCE
@NotNull
public java.util.List<ai.tock.bot.admin.test.TestPlanExecution> getPlanExecutions(@NotNull
ai.tock.bot.admin.test.TestPlan plan)
@NotNull
public java.util.List<ai.tock.bot.admin.test.TestPlan> getTestPlansByNamespaceAndNlpModel(@NotNull
java.lang.String namespace,
@NotNull
java.lang.String nlpModel)
@NotNull
public java.util.List<ai.tock.bot.admin.test.TestPlan> getTestPlansByNamespace(@NotNull
java.lang.String namespace)
@NotNull
public java.util.List<ai.tock.bot.admin.test.TestPlan> getTestPlansByApplication(@NotNull
java.lang.String applicationId)
public void removeDialogFromTestPlan(@NotNull
ai.tock.bot.admin.test.TestPlan plan,
@NotNull
org.litote.kmongo.Id<ai.tock.bot.engine.dialog.Dialog> dialogId)
public void addDialogToTestPlan(@NotNull
ai.tock.bot.admin.test.TestPlan plan,
@NotNull
org.litote.kmongo.Id<ai.tock.bot.engine.dialog.Dialog> dialogId)
public void removeTestPlan(@NotNull
ai.tock.bot.admin.test.TestPlan plan)
public void saveTestPlan(@NotNull
ai.tock.bot.admin.test.TestPlan plan)
@Nullable
public ai.tock.bot.admin.test.TestPlan getTestPlan(@NotNull
org.litote.kmongo.Id<ai.tock.bot.admin.test.TestPlan> planId)
@Nullable
public ai.tock.bot.admin.test.TestPlanExecution getTestPlanExecution(@NotNull
ai.tock.bot.admin.test.TestPlan testPlan,
@NotNull
org.litote.kmongo.Id<ai.tock.bot.admin.test.TestPlanExecution> testExecutionId)
public void saveTestPlanExecution(@NotNull
ai.tock.bot.admin.test.TestPlanExecution testPlanExecution)
@NotNull
public ai.tock.bot.admin.test.TestPlanExecution saveAndRunTestPlan(@NotNull
ai.tock.bot.connector.rest.client.ConnectorRestClient client,
@NotNull
ai.tock.bot.admin.test.TestPlan plan,
@NotNull
org.litote.kmongo.Id<ai.tock.bot.admin.test.TestPlanExecution> executionId)
This function saves the given test plan in the mongo database and then run the test plan.
client - is the client to use for running the test plan.plan - is the common test plan to run.@NotNull
public ai.tock.bot.admin.test.TestPlanExecution runTestPlan(@NotNull
ai.tock.bot.connector.rest.client.ConnectorRestClient client,
@NotNull
ai.tock.bot.admin.test.TestPlan plan,
@NotNull
org.litote.kmongo.Id<ai.tock.bot.admin.test.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.
client - is the client to use for the dialogs.plan - is the common test plan to run.