I'm working in a Migration API Testing project also I'm new to API testing. I have this scenario -
- There are 2 services, Service A and Service B.
- Service A has the response like this when I request for data { "firstName":"John", "age":31, "dob":"20-12-1988" }
- Service B returns response like { "name":"John", "age":31, "dateOfBirth":"20-12-1988" }
Now, we see the values returned are same but the attribute (in bold) changes. My test is to validate whether the data is received correct with appropriate attribute. I do the same through manual way currently. But there are lots of services to be tested like this. So I thought of using some automation to do the same. I'm able to fetch the response strings for both the services but not sure how to validate them.
Is there any solution that you guys can suggest to crack this ?