What is Response Specification

Response specification helps to remove the duplicate code while building the framework .
In a real project we will have lot of test cases which uses common steps to make a request or validate a response for example – Base_URI , Base_Path , Header , Status Code

All the Common response can be clubbed in a common entity and can used as Response specification

Lets Take a POST Request before applying response specification

Identify the response parameters that needs to be validated and group them in a common entity and name it as response specification and reuse them for all the test cases .

You may also like...