You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run ATP from Test Plans - Run with Options to execute custom selected test cases (#20887)
* add test run in input.
* start using test api to retrieve test cases using testRunId.
* methods created.
* tests getting populated.
* manual test detection.
* type safety.
* nit.
* fix run issue
* version
* switched to console log
* Revert "switched to console log"
This reverts commit d2e7493.
* api endpoint.
Copy file name to clipboardExpand all lines: Tasks/AzureTestPlanV0/Strings/resources.resjson/en-US/resources.resjson
+4
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,10 @@
5
5
"loc.instanceNameFormat": "Azure Test Plan - $(testSelector)",
6
6
"loc.input.label.testSelector": "Test cases to be executed",
7
7
"loc.input.help.testSelector": "<ul><li><b>Manual tests: </b>Use this option to trigger manual tests from your test plan.</li><li><b>Automated tests: </b>Use this option to run tests from your test plan that have automated test method associated with it.</li>",
"loc.input.help.testPlanOrRunSelector": "<ul><li><b>Test assembly: </b>Use this option to specify one or more test assemblies that contain your tests. You can optionally specify a filter criteria to select only specific tests.</li><li><b>Test plan: </b>Use this option to run tests from your test plan that have an automated test method associated with it.</li><li><b>Test run: </b>Use this option when you are setting up an environment to run tests from the Test hub. This option should not be used when running tests in a continuous integration / continuous deployment (CI/CD) pipeline.</li>",
10
+
"loc.input.label.testRunId": "Test Run",
11
+
"loc.input.help.testRunId": "Test run based selection is used when triggering automated test runs from the test hub, value for this should be kept as it is",
8
12
"loc.input.label.testPlan": "Test plan",
9
13
"loc.input.help.testPlan": "Type or paste the test plan ID containing test suites with test cases.",
Copy file name to clipboardExpand all lines: Tasks/AzureTestPlanV0/task.json
+30-5
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,8 @@
13
13
"author": "Microsoft Corporation",
14
14
"version": {
15
15
"Major": 0,
16
-
"Minor": 253,
17
-
"Patch": 8
16
+
"Minor": 254,
17
+
"Patch": 1
18
18
},
19
19
"preview": true,
20
20
"demands": [],
@@ -34,6 +34,30 @@
34
34
"MultiSelectFlatList": "True"
35
35
}
36
36
},
37
+
{
38
+
"name": "testPlanOrRunSelector",
39
+
"type": "pickList",
40
+
"label": "Select tests using",
41
+
"defaultValue": "testPlan",
42
+
"required": true,
43
+
"helpMarkDown": "<ul><li><b>Test assembly: </b>Use this option to specify one or more test assemblies that contain your tests. You can optionally specify a filter criteria to select only specific tests.</li><li><b>Test plan: </b>Use this option to run tests from your test plan that have an automated test method associated with it.</li><li><b>Test run: </b>Use this option when you are setting up an environment to run tests from the Test hub. This option should not be used when running tests in a continuous integration / continuous deployment (CI/CD) pipeline.</li>",
44
+
"options": {
45
+
"testPlan": "Test plan",
46
+
"testRun": "Test run"
47
+
},
48
+
"properties": {
49
+
"EditableOptions": "True"
50
+
}
51
+
},
52
+
{
53
+
"name": "testRunId",
54
+
"type": "string",
55
+
"label": "Test Run",
56
+
"defaultValue": "$(test.RunId)",
57
+
"required": true,
58
+
"helpMarkDown": "Test run based selection is used when triggering automated test runs from the test hub, value for this should be kept as it is",
59
+
"visibleRule": "testPlanOrRunSelector = testRun"
60
+
},
37
61
{
38
62
"name": "testPlan",
39
63
"type": "string",
@@ -44,7 +68,8 @@
44
68
"properties": {
45
69
"DisableManageLink": "True",
46
70
"EditableOptions": "True"
47
-
}
71
+
},
72
+
"visibleRule": "testPlanOrRunSelector = testPlan"
48
73
},
49
74
{
50
75
"name": "testSuite",
@@ -54,10 +79,10 @@
54
79
"helpMarkDown": "Select one or more test suites containing test cases.",
0 commit comments