0

Currently I have a test class which has multiple methods all using the same data provider. Each time testng loops through the different methods, it recomputes the data provider method. Is there any way I can make the data provider run once?

Thanks!

Jason

jbwt
  • 384
  • 5
  • 14

1 Answers1

1

Factories are exactly what you are looking for.

juherr
  • 5,640
  • 1
  • 21
  • 63