0

I am using Selenium Java for writing automation scripts, also using maven for handling dependencies. and using TestNG to execute test cases. My plan is to Integrate automation with DevOps and trigger automation test cases whenever the latest build is deployed to UAT or any server.

I don't have an Idea how to trigger/execute automation script in azure DevOps. The automation will be headless it will work in the background

akshay patil
  • 670
  • 7
  • 20
  • Hi akshay patil; I'm afraid this question is much too broad for this site. What you need to do is to read up on the ways you can [UI test with Selenium](https://learn.microsoft.com/en-us/azure/devops/pipelines/test/continuous-test-selenium?view=azure-devops) in azure pipelines, **try it out** and ask *specific* questions here if you run into specific problems. – Vince Bowdren Jan 21 '22 at 10:36
  • @VinceBowdren I will check it out, also the above article is for .Net not Java – akshay patil Jan 21 '22 at 11:00

1 Answers1

0

This Article can be useful for you https://medium.com/@kiranreddy365/how-to-run-selenium-tests-using-maven-through-command-line-f4f48b37aba4

Step 2.d explains running tests through command line, use the same command line in your azure devops pipeline script task to execute tests as part of your pipeline. Of course the pipeline yaml should be present in the same git repo where tests are kept!

scorpio
  • 1,587
  • 2
  • 15
  • 27