Convert resultset object to list of map

Convert the resultset object to list of map


In some cases, while we doing API automation, we need to fetch the value from the DB and have to validate it. in such a case the value which we get can be convert into List of map will be easy to iterate. 


Passing multiple object in dataprovider in Testng

When we want to pass an object in TestNg data provider we use to follow the below steps.






But This can be rewritten in this way for a cleaner code 




Convert resultset object to list of map

Convert the resultset object to list of map In some cases, while we doing API automation, we need to fetch the value from the DB and hav...