How to create a TestNG Suite
Answered
I trying to figure out how to create a testng .xml file to run 4 of my java test files. I can run them individually and they run fine and pass testing. Now I'd like to put them all into one testNG .xml file but I'm not sure how to create that file and more importantly, where in my folder structure it should be created?
Thanks for any help.
Please sign in to leave a comment.
See https://www.mkyong.com/unittest/testng-tutorial-5-suite-test.
Suite file can be anywhere in the project. You specify its location here:
I created the .xml file and updated its location as you show above and I can see the .xml file in my IDE but when I right click on it I don't see any run as test ng menu selection?
Add run configuration manually for TestNG as shown on my screenshot.
I don't see a "run configuration manually" in your screen shot above?
In case you don't know how to create run/debug configurations: https://www.jetbrains.com/help/idea/2017.1/creating-and-editing-run-debug-configurations.html
OK got it working...thanks much for the help.