Forum Discussion

panoslondon645's avatar
panoslondon645
Copper Contributor
Oct 18, 2023

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:

     

    1. Associate Automated Tests with Test Cases
      Seems You've already done this in Visual Studio
    2. 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. 
    3. 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.
    4. Run the Test Case
      From the Test SuiteExecute tab, choose Run. This will trigger the release pipeline, which in turn runs the associated automated test.

Resources