testing - Passing parameter externally to a TestNG class -


my @dataprovider looks restful url below. @dataprovider(name = "dbconfig") public object[][] providedbconfig() { map map = swaggerutility.getswaggerdata("http://petstore.swagger.io/v2/swagger.json");

i ideally want way pass url externally testng run or class. there way that? ideally tests integrated ci tool needs pass parameter down testng job. not see way pass parameters directly testng class. please let me know if there way around

you can pass argument system level property - read in beforeclass method using system.getproperty("nameofprop") , set variable need class.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo