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.