harmans
13 years agoOccasional Contributor
Data Driven testing with JSON POST Request in REST Services
Hi,
I am testing REST web services using SOAPUI.
I am sending JSON POST requests.
It works great when i add the POST request in the text area (in the request editor).
for e.g.
{ "operation": "PayTxn.Account,CanLogin", "sessionid": 0, "parms": [{"UserName": "abcd", "Password": "password"}] }
So if i have to test manually one request at a time, its works fine but i am not sure how to do Data Driven testing. I have several POST JSON request (see below)and i would like to store all the request data in an excel or txt file.
{ "operation": "PayTxn.Account,CanLogin", "sessionid": 0, "parms": [{"UserName": "abcd", "Password": "password"}] }
{ "operation": "PayTxn.Misc,GetCountryCodes", "sessionid": 0 }
{ "operation": "PayTxn.Misc,GetAllMerchants", "sessionid": 0 }
I am familiar with DataSource and DataSource Loop (available in SOAP Pro).
So basically i want to know the best approach to do data driven testing for JSON POST requests. Thanks a lot in advance
Regards
H
I am testing REST web services using SOAPUI.
I am sending JSON POST requests.
It works great when i add the POST request in the text area (in the request editor).
for e.g.
{ "operation": "PayTxn.Account,CanLogin", "sessionid": 0, "parms": [{"UserName": "abcd", "Password": "password"}] }
So if i have to test manually one request at a time, its works fine but i am not sure how to do Data Driven testing. I have several POST JSON request (see below)and i would like to store all the request data in an excel or txt file.
{ "operation": "PayTxn.Account,CanLogin", "sessionid": 0, "parms": [{"UserName": "abcd", "Password": "password"}] }
{ "operation": "PayTxn.Misc,GetCountryCodes", "sessionid": 0 }
{ "operation": "PayTxn.Misc,GetAllMerchants", "sessionid": 0 }
I am familiar with DataSource and DataSource Loop (available in SOAP Pro).
So basically i want to know the best approach to do data driven testing for JSON POST requests. Thanks a lot in advance
Regards
H