public class XrayService
public XrayService(@NotNull
java.util.List<java.lang.String> configurationIds,
@NotNull
java.util.List<java.lang.String> testPlanKeys,
@NotNull
java.util.List<java.lang.String> testKeys,
@NotNull
java.lang.String testedBotId)
public XrayService()
@NotNull public java.util.List<ai.tock.bot.xray.model.XrayTestPlan> getTestPlans()
@NotNull public XrayPlanExecutionResult execute(@NotNull java.lang.String namespace)
@NotNull public XrayPlanExecutionResult executeTestPlans(@NotNull java.lang.String namespace)
Execution of one or several test plans. It will retrieve the right connector and then execute all tests belonging to targeted test plans using Xray links. Once tests are executed, results are send to Xray.
@NotNull public XrayPlanExecutionResult executeTests(@NotNull java.lang.String namespace)
Execution of only one test instead of an entire test plan. Test execution has to be linked to an existing test plan, so in this function, a dummy test plan is used. Execution data will not be saved in the database, there will be no history about it.
@Nullable public XrayTest generateXrayTest(@NotNull ai.tock.bot.admin.dialog.DialogReport dialog, @NotNull kotlin.jvm.functions.Function1<? super java.util.List<java.lang.String>,java.lang.String> testName, @Nullable java.lang.String linkedJira, @NotNull java.util.List<java.lang.String> testsPlans, @NotNull java.util.Map<java.lang.String,java.lang.String> labelTestPlansMap)
Generate an Xray test.
dialog - the dialog used to build the testtestName - the optional test name generator - labels of linkedJira are passed as parameter.linkedJira - the optional User Story ticket related to the testtestsPlans - the tests plans to include for this testlabelTestPlansMap - a map of label -> test plan key.if linkedJira is set, get the labels of this US and add the test to all test plans specified in the map with the retrieved labels.@Nullable public XrayTest updateXrayTest(@NotNull ai.tock.bot.admin.dialog.DialogReport dialog, @NotNull java.lang.String testKey)