How to run mutiple test case using TestNG in the same class using @Test Annotation

Hello There,

I have done the framework step by step (Online Store) as per the instruction, but when tried to implement in one of my actual test application I have realized I need some more robust, easy to use framework.


As per the framework, in the test data sheet there are 2 test case/row and there are 2 class for each.

But, I need to have/build framework where set of test case (say 10) to be called in the same/one class itself and each test case are called in Test Annotation. Could some please help in the direction towards this approach – steps to be followed, share code if any has.

Many Thanks in advance.



Add Comment
  • 0 Answer(s)
  • Your Answer

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