**Error in the method :** @BeforeMethod(alwaysRun=true) @org.testng.annotations.Parameters(value={"config", "environment"}) public void setUp(String config_file, String environment) throws Exception { JSONParser parser = new JSONParser(); JSONObject config = (JSONObject) parser.parse(new FileReader("src/test/resources/conf/" + config_file)); JSONObject envs = (JSONObject) config.get("environments");