Error When Running The Test in Azure DevOps
I am getting following error whenever I am trying to run the tests on Azure DevOps cloud.
Though it sounds illogical, I tried to set path of my local machine, it did not work.
I already gave dependency for selenium and java in pom.xml, it did not work.
I also tried to upload the geckodriver online and used that path in pom.xmo, it did not work.
Have you set the web driver executable path in your code?
Here is the snippet of my code that is launching the browser fine when I run the test as TestNG, run as Maven in local, and individual .class file. But, when I run the test in Azure DevOps cloud, it gives error as mentioned earlier.
As i noticed your code snippet, i can see that System.setproperty part for webdriver.gecko.driver is commented out which is causing the issue
Additionally, keep the executable directly in the system itself.
Please close this for now. Thanks.
We offer online selenium and UFT/QTP training. The course is very comprehensive and covers every aspect of automation testing with UFT/QTP and selenium. All types of frameworks are covered in depth - data driven framework, hybrid framework, page object model with a live project
© 2020 Whizdom Trainings. All rights Reserved - Powered by Whizdom Trainings