Monthly Archives: February 2014

Pass ArrayList as a parameter to Testng

public class BrowserTypes {   @DataProvider (name=”browser”) public static Object[][] browsername() throws Exception {   ArrayList<Object>list=new ArrayList<Object>(); String browsers;   Properties prop = new Properties(); InputStream input = null; input = new FileInputStream(“stageconfig.properties”); prop.load(input); browsers=prop.getProperty(“browsers”); StringTokenizer getbrowsers = new StringTokenizer(browsers, … Continue reading

Posted in Uncategorized | Leave a comment