'How to call a parameterized method which is using dataprovider from a different class?
@Factory(dataProvider="get") public WebDriver addDate(WebDriver driver,String a,String b,String c) throws InterruptedException { ---------- ----------
return driver;
}
@DataProvider(name="get")
public static Object[][] getData()
{
Object[][] data=new Object[2][3];
//data[1][0]="[email protected]";
//data[1][1]="78910";
return data;
}
}
i need to call adddate() method in another class in the same package.Please let me know how to do it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
