RE: Running TestNG Suite programitically

Hi everyone,

We are working on an automation project and are using Selenium and TestNG.

At the moment we are using Jenkins to run our tests.

However as a personal project of mine I want to create a alternative way of running our tests.

I have created a seperate JavaFX project to create a GUI, with this GUI it enables you to chose the XML using Java File Chooser, when you choose the TestNG XML, it executes.

However when it executes it cannot find it test classes that are specified within it.

Can anyone shed some light on this? Or know of ways you can get a TestNG XML Suite to run from Java code, for example you give the code the path to the XML and then the code will run the XML.

Thanks in advance.

Add Comment
2 Answers

I can suggest: “Compatibility Testing Using BrowserStack & Selenium – TestNG”  http://blog.testproject.io/2016/04/17/compatibility-testing-browserstack-and-selenium/

Train Answered on October 13, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.