My @DataProvider looks up some restful url as below. @DataProvider(name = "dbconfig") public Object[][] provideDbConfig() { Map map = SwaggerUtility.getSwaggerData("http://ift.tt/1AXSB4l");
I ideally want a way to pass the url externally to the TestNG run or class. Is there a way to do that? Ideally the tests would be integrated with some CI tool which needs to pass the parameter down to the TestNG job. I do not see a way to pass parameters directly to a TestNG class. Please let me know if there is a way around
Aucun commentaire:
Enregistrer un commentaire