I’m new in TestNG. In my project I have a few TestNG classes
and I want to run methods of each classes by one ‘click’.
Do anyone know how to do it?
I use Eclipse Indigo.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This should be useful. You could create a TestNG suite, include all the tests in that and then run the Suite in a single click.
Once you have created the above suite, you can create a TestNG launch configuration. Select the
Run / Run... (or Run / Debug...)menu and create a new TestNG configuration:If you do not have the TestNG plugin installed, you can do so by following the official TestNG-For-Eclipse guide here.
And finally, for the One-Click-Joy, if you mark this Launch Configuration as a Favorite in the
Commontab of the launch Configuration :Once, you do that, this launch configuration shall be available in the Eclipse Toolbar :