Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update input type for Test Plan in ATP #20696

Merged
merged 8 commits into from
Dec 6, 2024
16 changes: 3 additions & 13 deletions Tasks/AzureTestPlanV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": {
"Major": 0,
"Minor": 250,
"Patch": 0
"Patch": 2
},
"preview": true,
"demands": [],
Expand All @@ -36,11 +36,11 @@
},
{
"name": "testPlan",
"type": "pickList",
"type": "string",
"label": "Test plan",
"defaultValue": "",
"required": true,
"helpMarkDown": "Select a test plan containing test suites with test cases.",
"helpMarkDown": "Type or paste the test plan ID containing test suites with test cases.",
"properties": {
"DisableManageLink": "True",
"EditableOptions": "True"
Expand Down Expand Up @@ -145,16 +145,6 @@
}
],
"dataSourceBindings": [
{
"target": "testPlan",
"endpointId": "tfs:teamfoundation",
"endpointUrl": "{{endpoint.url}}/{{system.teamProject}}/_apis/test/plans?filterActivePlans=true&api-version=3.0-preview.2&$skip={{skip}}&$top=1000",
"resultSelector": "jsonpath:$.value[*]",
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{id}}} - {{{name}}}\" }",
"callbackContextTemplate": "{\"skip\": \"{{add skip 1000}}\"}",
"callbackRequiredTemplate": "{{isEqualNumber result.count 1000}}",
"initialContextTemplate": "{\"skip\": \"0\"}"
},
{
"target": "testConfiguration",
"endpointId": "tfs:teamfoundation",
Expand Down
14 changes: 2 additions & 12 deletions Tasks/AzureTestPlanV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": {
"Major": 0,
"Minor": 250,
"Patch": 0
"Patch": 2
},
"preview": true,
"demands": [],
Expand All @@ -36,7 +36,7 @@
},
{
"name": "testPlan",
"type": "pickList",
"type": "string",
"label": "ms-resource:loc.input.label.testPlan",
"defaultValue": "",
"required": true,
Expand Down Expand Up @@ -145,16 +145,6 @@
}
],
"dataSourceBindings": [
{
"target": "testPlan",
"endpointId": "tfs:teamfoundation",
"endpointUrl": "{{endpoint.url}}/{{system.teamProject}}/_apis/test/plans?filterActivePlans=true&api-version=3.0-preview.2&$skip={{skip}}&$top=1000",
"resultSelector": "jsonpath:$.value[*]",
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{id}}} - {{{name}}}\" }",
"callbackContextTemplate": "{\"skip\": \"{{add skip 1000}}\"}",
"callbackRequiredTemplate": "{{isEqualNumber result.count 1000}}",
"initialContextTemplate": "{\"skip\": \"0\"}"
},
{
"target": "testConfiguration",
"endpointId": "tfs:teamfoundation",
Expand Down
4 changes: 2 additions & 2 deletions _generated/AzureTestPlanV0.versionmap.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Default|0.250.0
Node20-225|0.250.1
Default|0.250.2
Node20-225|0.250.3
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"loc.input.label.testSelector": "Test cases to be executed",
"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.label.testPlan": "Test plan",
"loc.input.help.testPlan": "Select a test plan containing test suites with test cases.",
"loc.input.help.testPlan": "Type or paste the test plan ID containing test suites with test cases.",
"loc.input.label.testSuite": "Test suite",
"loc.input.help.testSuite": "Select one or more test suites containing test cases.",
"loc.input.label.testConfiguration": "Test configuration",
Expand Down
20 changes: 5 additions & 15 deletions _generated/AzureTestPlanV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": {
"Major": 0,
"Minor": 250,
"Patch": 0
"Patch": 2
},
"preview": true,
"demands": [],
Expand All @@ -36,11 +36,11 @@
},
{
"name": "testPlan",
"type": "pickList",
"type": "string",
"label": "Test plan",
"defaultValue": "",
"required": true,
"helpMarkDown": "Select a test plan containing test suites with test cases.",
"helpMarkDown": "Type or paste the test plan ID containing test suites with test cases.",
"properties": {
"DisableManageLink": "True",
"EditableOptions": "True"
Expand Down Expand Up @@ -145,16 +145,6 @@
}
],
"dataSourceBindings": [
{
"target": "testPlan",
"endpointId": "tfs:teamfoundation",
"endpointUrl": "{{endpoint.url}}/{{system.teamProject}}/_apis/test/plans?filterActivePlans=true&api-version=3.0-preview.2&$skip={{skip}}&$top=1000",
"resultSelector": "jsonpath:$.value[*]",
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{id}}} - {{{name}}}\" }",
"callbackContextTemplate": "{\"skip\": \"{{add skip 1000}}\"}",
"callbackRequiredTemplate": "{{isEqualNumber result.count 1000}}",
"initialContextTemplate": "{\"skip\": \"0\"}"
},
{
"target": "testConfiguration",
"endpointId": "tfs:teamfoundation",
Expand Down Expand Up @@ -196,8 +186,8 @@
"MultipleMatchingGradlewFound": "Multiple gradlew files found. Selecting the first matched instance"
},
"_buildConfigMapping": {
"Default": "0.250.0",
"Default": "0.250.2",
"LocalPackages": "0.249.4",
"Node20-225": "0.250.1"
"Node20-225": "0.250.3"
}
}
18 changes: 4 additions & 14 deletions _generated/AzureTestPlanV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": {
"Major": 0,
"Minor": 250,
"Patch": 0
"Patch": 2
},
"preview": true,
"demands": [],
Expand All @@ -36,7 +36,7 @@
},
{
"name": "testPlan",
"type": "pickList",
"type": "string",
"label": "ms-resource:loc.input.label.testPlan",
"defaultValue": "",
"required": true,
Expand Down Expand Up @@ -145,16 +145,6 @@
}
],
"dataSourceBindings": [
{
"target": "testPlan",
"endpointId": "tfs:teamfoundation",
"endpointUrl": "{{endpoint.url}}/{{system.teamProject}}/_apis/test/plans?filterActivePlans=true&api-version=3.0-preview.2&$skip={{skip}}&$top=1000",
"resultSelector": "jsonpath:$.value[*]",
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{id}}} - {{{name}}}\" }",
"callbackContextTemplate": "{\"skip\": \"{{add skip 1000}}\"}",
"callbackRequiredTemplate": "{{isEqualNumber result.count 1000}}",
"initialContextTemplate": "{\"skip\": \"0\"}"
},
{
"target": "testConfiguration",
"endpointId": "tfs:teamfoundation",
Expand Down Expand Up @@ -196,8 +186,8 @@
"MultipleMatchingGradlewFound": "ms-resource:loc.messages.MultipleMatchingGradlewFound"
},
"_buildConfigMapping": {
"Default": "0.250.0",
"Default": "0.250.2",
"LocalPackages": "0.249.4",
"Node20-225": "0.250.1"
"Node20-225": "0.250.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"loc.input.label.testSelector": "Test cases to be executed",
"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.label.testPlan": "Test plan",
"loc.input.help.testPlan": "Select a test plan containing test suites with test cases.",
"loc.input.help.testPlan": "Type or paste the test plan ID containing test suites with test cases.",
"loc.input.label.testSuite": "Test suite",
"loc.input.help.testSuite": "Select one or more test suites containing test cases.",
"loc.input.label.testConfiguration": "Test configuration",
Expand Down
20 changes: 5 additions & 15 deletions _generated/AzureTestPlanV0_Node20/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": {
"Major": 0,
"Minor": 250,
"Patch": 1
"Patch": 3
},
"preview": true,
"demands": [],
Expand All @@ -36,11 +36,11 @@
},
{
"name": "testPlan",
"type": "pickList",
"type": "string",
"label": "Test plan",
"defaultValue": "",
"required": true,
"helpMarkDown": "Select a test plan containing test suites with test cases.",
"helpMarkDown": "Type or paste the test plan ID containing test suites with test cases.",
KathanS marked this conversation as resolved.
Show resolved Hide resolved
"properties": {
"DisableManageLink": "True",
"EditableOptions": "True"
Expand Down Expand Up @@ -145,16 +145,6 @@
}
],
"dataSourceBindings": [
{
"target": "testPlan",
"endpointId": "tfs:teamfoundation",
"endpointUrl": "{{endpoint.url}}/{{system.teamProject}}/_apis/test/plans?filterActivePlans=true&api-version=3.0-preview.2&$skip={{skip}}&$top=1000",
"resultSelector": "jsonpath:$.value[*]",
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{id}}} - {{{name}}}\" }",
"callbackContextTemplate": "{\"skip\": \"{{add skip 1000}}\"}",
"callbackRequiredTemplate": "{{isEqualNumber result.count 1000}}",
"initialContextTemplate": "{\"skip\": \"0\"}"
},
{
"target": "testConfiguration",
"endpointId": "tfs:teamfoundation",
Expand Down Expand Up @@ -200,8 +190,8 @@
"MultipleMatchingGradlewFound": "Multiple gradlew files found. Selecting the first matched instance"
},
"_buildConfigMapping": {
"Default": "0.250.0",
"Default": "0.250.2",
"LocalPackages": "0.249.4",
"Node20-225": "0.250.1"
"Node20-225": "0.250.3"
}
}
18 changes: 4 additions & 14 deletions _generated/AzureTestPlanV0_Node20/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": {
"Major": 0,
"Minor": 250,
"Patch": 1
"Patch": 3
},
"preview": true,
"demands": [],
Expand All @@ -36,7 +36,7 @@
},
{
"name": "testPlan",
"type": "pickList",
"type": "string",
"label": "ms-resource:loc.input.label.testPlan",
"defaultValue": "",
"required": true,
Expand Down Expand Up @@ -145,16 +145,6 @@
}
],
"dataSourceBindings": [
{
"target": "testPlan",
"endpointId": "tfs:teamfoundation",
"endpointUrl": "{{endpoint.url}}/{{system.teamProject}}/_apis/test/plans?filterActivePlans=true&api-version=3.0-preview.2&$skip={{skip}}&$top=1000",
"resultSelector": "jsonpath:$.value[*]",
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{id}}} - {{{name}}}\" }",
"callbackContextTemplate": "{\"skip\": \"{{add skip 1000}}\"}",
"callbackRequiredTemplate": "{{isEqualNumber result.count 1000}}",
"initialContextTemplate": "{\"skip\": \"0\"}"
},
{
"target": "testConfiguration",
"endpointId": "tfs:teamfoundation",
Expand Down Expand Up @@ -200,8 +190,8 @@
"MultipleMatchingGradlewFound": "ms-resource:loc.messages.MultipleMatchingGradlewFound"
},
"_buildConfigMapping": {
"Default": "0.250.0",
"Default": "0.250.2",
"LocalPackages": "0.249.4",
"Node20-225": "0.250.1"
"Node20-225": "0.250.3"
}
}