Run Java Selenium tests in Azure DevOps release pipeline

后端 未结 1 1911
天涯浪人
天涯浪人 2021-01-27 15:00

I\'m doing a POC for a Java project in an AzureDevops CI/CD pipeline. I created a Maven project that has Selenium tests (TestNG) that run against a demo website which is indepen

相关标签:
1条回答
  • 2021-01-27 15:46

    You can try just adding a test task in your release pipeline just as in the build pipeline. And add a copy task in the build pipeline to copy the test codes and files to the build artifacts and publish it to release pipeline.

    Below steps is just for reference(in classic view). Help it can be of some hope.

    1, Add copy file task in the build pipeline to copy the all test files and all the dependent setting files to the test folder in artifacts.

    2, Publish artifacts to release pipeline

    3, In the release pipeline, add the task to execute the tests just like the way you do in build pipeline

    0 讨论(0)
提交回复
热议问题