|
462 | 462 | "visibleRule": "rerunFailedTests = true" |
463 | 463 | } |
464 | 464 | ], |
465 | | - "sourceDefinitions": [ |
| 465 | + "dataSourceBindings": [ |
466 | 466 | { |
467 | 467 | "target": "testPlan", |
468 | | - "endpoint": "/$(system.teamProject)/_apis/test/plans?filterActivePlans=true&api-version=3.0-preview.2", |
469 | | - "selector": "jsonpath:$.value[*].name", |
470 | | - "keySelector": "jsonpath:$.value[*].id", |
471 | | - "authKey": "tfs:teamfoundation" |
| 468 | + "endpointId": "tfs:teamfoundation", |
| 469 | + "endpointUrl": "{{endpoint.url}}/{{system.teamProject}}/_apis/test/plans?filterActivePlans=true&api-version=3.0-preview.2&$skip={{skip}}&$top=1000", |
| 470 | + "resultSelector": "jsonpath:$.value[*]", |
| 471 | + "resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{id}}} - {{{name}}}\" }", |
| 472 | + "callbackContextTemplate": "{\"skip\": \"{{add skip 1000}}\"}", |
| 473 | + "callbackRequiredTemplate": "{{isEqualNumber result.count 1000}}", |
| 474 | + "initialContextTemplate": "{\"skip\": \"0\"}" |
472 | 475 | }, |
473 | 476 | { |
474 | 477 | "target": "testConfiguration", |
475 | | - "endpoint": "/$(system.teamProject)/_apis/test/configurations?api-version=3.0-preview.1", |
476 | | - "selector": "jsonpath:$.value[*].name", |
477 | | - "keySelector": "jsonpath:$.value[*].id", |
478 | | - "authKey": "tfs:teamfoundation" |
| 478 | + "endpointId": "tfs:teamfoundation", |
| 479 | + "endpointUrl": "{{endpoint.url}}/{{system.teamProject}}/_apis/test/configurations?api-version=3.0-preview.1", |
| 480 | + "resultSelector": "jsonpath:$.value[*]", |
| 481 | + "resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{id}}} - {{{name}}}\" }" |
479 | 482 | }, |
480 | 483 | { |
481 | 484 | "target": "testSuite", |
482 | | - "endpoint": "/$(system.teamProject)/_apis/test/plans/$(testPlan)/suites?$asTreeView=true&api-version=3.0-preview.2", |
483 | | - "selector": "jsonpath:$.value[*]", |
484 | | - "authKey": "tfs:teamfoundation" |
| 485 | + "endpointId": "tfs:teamfoundation", |
| 486 | + "endpointUrl": "{{endpoint.url}}/{{system.teamProject}}/_apis/test/plans/{{testPlan}}/suites?$asTreeView=true&api-version=3.0-preview.2", |
| 487 | + "resultSelector": "jsonpath:$.value[*]" |
485 | 488 | } |
486 | 489 | ], |
487 | 490 | "instanceNameFormat": "VsTest - $(testSelector)", |
|
0 commit comments