Forum Discussion
panoslondon645
Oct 18, 2023Copper Contributor
devops pipeline trigger by test case
Hi,
I have a devops pipeline that i want to trigger from within an azure devops test case. I was able to assciate a unit test to a test case within Visual Studio but can't see a way to associate a devops pipeline to a test case.
It seems that i would have to load the devops pipeline inside Visual Studio, test project or similar but cant see a way to do this. Thanks very much for any answers.
Panos
1 Reply
Take this:
- Associate Automated Tests with Test Cases
Seems You've already done this in Visual Studio - Create Build and Release Pipelines
- The build pipeline should compile your code and publish test binaries.
- The release pipeline should be created using the "Run automated tests from Test Manager" template.
- Configure Test Plan Settings
In Azure DevOps: - Go to Test Plans → select your test plan.
- Open Test Plan Settings.
- Link the build pipeline that produces your test binaries.
- Link the release pipeline that will run the tests.
- Run the Test Case
From the Test Suite → Execute tab, choose Run. This will trigger the release pipeline, which in turn runs the associated automated test.
- Associate Automated Tests with Test Cases