I use Azure DevOps Test Plans and Test Suites to execute automated tests in a YAML build pipeline. For each release I create a new Test Plan with new Test Suites. Actual I search manually for IDs of Test Plan and Test Suites and copy them to the YAML file.
- task: VSTest@2
displayName: 'Run automated UI tests'
inputs:
testSelector: testPlan
testPlan: 585
testSuite: 586,929,930,680,683,684,685,931,681,686,687,688,767,682,689,690,691,768,692
testConfiguration: 2
uiTests: true
testRunTitle: 'Automated UI testing'
Is there a possibility to do that automatically? Or a possibility to reduce the manual effort e.g. just change the Test Plan ID in Pipeline and all Test Suites are automatically included?