Sangeetha
10 years agoOccasional Contributor
How to make test case redundant in REST for different parameter in each testcase?
Hi,
My first REST test request is as follows:
Request:
{
Parameter1: "value"
}
My Second REST test request has the same steps as first request but it has additional one parameter in the request. I need to add that to my second request.
Request:
{
Parameter1: "value",
Parameter2:"value"}
Likewise i need to execute 18 test scenarios with different parameter. Is there any easy automation work to reduce my additional efforts? Please clarify?
Are you using query parameter? If so, maybe you can add all parameters without any values in your first test request and create it 18 times in your test scenarios based on this test request. Then in each test secnario you only add the value to the parameters you want to use.