public class TestPlanService
| Modifier and Type | Field and Description |
|---|---|
static TestPlanService |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
addDialogToTestPlan(ai.tock.bot.admin.test.TestPlan plan,
org.litote.kmongo.Id<ai.tock.bot.engine.dialog.Dialog> dialogId) |
java.util.List<ai.tock.bot.admin.test.TestPlanExecution> |
getPlanExecutions(ai.tock.bot.admin.test.TestPlan plan) |
ai.tock.bot.admin.test.TestPlan |
getTestPlan(org.litote.kmongo.Id<ai.tock.bot.admin.test.TestPlan> planId) |
ai.tock.bot.admin.test.TestPlanExecution |
getTestPlanExecution(ai.tock.bot.admin.test.TestPlan testPlan,
org.litote.kmongo.Id<ai.tock.bot.admin.test.TestPlanExecution> testExecutionId) |
java.util.List<ai.tock.bot.admin.test.TestPlan> |
getTestPlansByApplication(java.lang.String applicationId) |
java.util.List<ai.tock.bot.admin.test.TestPlan> |
getTestPlansByNamespace(java.lang.String namespace) |
java.util.List<ai.tock.bot.admin.test.TestPlan> |
getTestPlansByNamespaceAndNlpModel(java.lang.String namespace,
java.lang.String nlpModel) |
void |
removeDialogFromTestPlan(ai.tock.bot.admin.test.TestPlan plan,
org.litote.kmongo.Id<ai.tock.bot.engine.dialog.Dialog> dialogId) |
void |
removeTestPlan(ai.tock.bot.admin.test.TestPlan plan) |
ai.tock.bot.admin.test.TestPlanExecution |
runTestPlan(ai.tock.bot.connector.rest.client.ConnectorRestClient client,
ai.tock.bot.admin.test.TestPlan plan,
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.
|
ai.tock.bot.admin.test.TestPlanExecution |
saveAndRunTestPlan(ai.tock.bot.connector.rest.client.ConnectorRestClient client,
ai.tock.bot.admin.test.TestPlan plan,
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.
|
void |
saveTestPlan(ai.tock.bot.admin.test.TestPlan plan) |
void |
saveTestPlanExecution(ai.tock.bot.admin.test.TestPlanExecution testPlanExecution) |
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.