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

Apache NiFi ExecuteScript: Groovy script to replace Json values via a mapping file -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -