Hi There,
Wanted to know if there is, given a test method with data providers, a TestNG method that gives us the value of that method's dataProvider?
example:
@PhasedTest(canShuffle = true)
public class PhasedSeries_L_ShuffledDPSimple {
@DataProvider(name = "create2")
public static Object[][] createData() {
return new Object[][] {{"Z"},{"M"}};
}
@Test(dataProvider = "create2")
public void step1(String val) {
// System.out.println("step1 " + val);
//PhasedTestManager.produceInStep("A");
}
}
What I want is to fetch the data provider in a listener before it is injected.
In this case it will return : {{"Z"},{"M"}}.
I would appreciate a simple solution if possible. I have a solution in mind but it seems a bit complicated.
Best regards,
Baubak