Skip to content
Advertisement

TestNG: More than one @DataProvider for one @Test

I’m using TestNG for Eclipse.

Is it possible to give two data providers step by step to the same test-function?

I could put both providers in one, but that is not what I want.

I need (not like in this example) to generate independently data.

JavaScript

I want to give both providers to the same test. Is this possible?

JavaScript

Advertisement

Answer

No, but nothing stops you from merging these two data providers into one and specifying that one as your data provider:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement