Package ai.tock.bot.xray
Class XrayService
-
- All Implemented Interfaces:
public final class XrayService
-
-
Method Summary
Modifier and Type Method Description final List<XrayTestPlan>getTestPlans()final XrayPlanExecutionResultexecute(String namespace)final XrayPlanExecutionResultexecuteTestPlans(String namespace)Execution of one or several test plans. final XrayPlanExecutionResultexecuteTests(String namespace)Execution of only one test instead of an entire test plan. final XrayTestgenerateXrayTest(DialogReport dialog, Function1<List<String>, String> testName, String linkedJira, List<String> testsPlans, Map<String, String> labelTestPlansMap)Generate an Xray test. final XrayTestupdateXrayTest(DialogReport dialog, String testKey)-
-
Method Detail
-
getTestPlans
final List<XrayTestPlan> getTestPlans()
-
execute
final XrayPlanExecutionResult execute(String namespace)
-
executeTestPlans
final XrayPlanExecutionResult executeTestPlans(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.
-
executeTests
final XrayPlanExecutionResult executeTests(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.
-
generateXrayTest
final XrayTest generateXrayTest(DialogReport dialog, Function1<List<String>, String> testName, String linkedJira, List<String> testsPlans, Map<String, String> labelTestPlansMap)
Generate an Xray test.
- Parameters:
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.
-
updateXrayTest
final XrayTest updateXrayTest(DialogReport dialog, String testKey)
-
-
-
-