How to run individual tests from a testng Suite?

Hi All,

I am able to run a complete test suite while using a testng suite but not able to run individual tests.
Can anyone please help.

Right click on java class file and click option Run as TestNG test. It will run only test cases which are present in this java file.

If there are lot of test cases in single java file then use annotation

@enabled=false for all test cases u dont want to run
@enabled=true for all test cases u want to run

1 Like

Thanks @amitjaincoer191 I will try this and let you know the result.