whenever we use dataprovider in our tests , the test data which is being used will also gets print on the console, how can we disable this functionality ? Can anyone pls help me on this ?
eg:
@Test(dataProvider = "data-provider", dataProviderClass = DataProviderClass.class)
public void testMethod(String data)
{
System.out.println("Data is: " + data);
}
@DataProvider(name = "data-provider")
public static Object[][] dataProviderMethod()
{
return new Object[][] { { "data one" }, { "data two" } };
}
o/p:Data is: data one
Data is: data two
PASSED: testMethod(“data one”)
PASSED: testMethod(“data two”)
here the testdata which is being used is also getting printed ,how can we disable this functionality?