Hi, Cedric,
Thank you for a quick answer. Are there any plan to implement this
feature? What I am thinking is to have another annotation like
dependsOnMethodsForDataProvider (I cannot think of good name). I have
a lot of data driven test cases and would like to have setup/teardown
for each test case.
For now, what I am doing is to have a wrapper to generate in-memory
testng.xml with data provider element as parameters (without using
data provider functionality) and execute it. This way I can preserve
the method dependency for each parameter element. For the example
below, the wrapper would generate the following in memory testng.xml
and execute it.
<suite name="TestSuite">
<test name="Test1">
<parameter name="n1" value="Cedric"/>
<parameter name="n2" value="36"/>
<classes>
<class name="TestNG"/>
</classes>
</test>
<test name="Test2">
<parameter name="n1" value="Anne"/>
<parameter name="n2" value="37"/>
<classes>
<class name="TestNG"/>
</classes>
</test>
</suite>
This works but it is not clear solution since I have to work on such a
wrapper and I cannot use DataProvider anymore.
Thanks.
Kenji
> ***Cédric
> *