What is Request Specification

Request 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 request can be clubbed in a common entity and can be used as Request Specification

Lets Take an example, considering a POST request before applying Request Specification

Identify the common request parameters and group them in a common entity and name it as request specification and reuse them for all the Test cases .


You may also like...