Skip to main content
edited body
Source Link
João Farias
  • 11k
  • 2
  • 20
  • 40

I need to prepare some data before running some test methods in my test class. But these data will be used only in 5 test methods only. The entire test class has 25 test cases.

So is there any way to trigger before Method only for specific test methods. In my case, only for above 4 test methods? Its java Java,TestNg TestNg

I need to prepare some data before running some test methods in my test class. But these data will be used only in 5 test methods only. The entire test class has 25 test cases.

So is there any way to trigger before Method only for specific test methods. In my case, only for above 4 test methods? Its java ,TestNg

I need to prepare some data before running some test methods in my test class. But these data will be used only in 5 test methods only. The entire test class has 25 test cases.

So is there any way to trigger before Method only for specific test methods. In my case, only for above 4 test methods? Its Java, TestNg

Source Link
ChathuD
  • 2.1k
  • 23
  • 48

Is there any way to trigger before Method only for specific test methods

I need to prepare some data before running some test methods in my test class. But these data will be used only in 5 test methods only. The entire test class has 25 test cases.

So is there any way to trigger before Method only for specific test methods. In my case, only for above 4 test methods? Its java ,TestNg