What is a specification?
In order to avoid duplicate request parameters and/or response expectations for multiple tests, we can create specification objects which are reusable.
There are two types of specification builder Java classes as mentioned below:
This is used when a few common parameters are needed for multiple and/or different tests while creating a request.
Let’s understand this concept better with the help of a sample code snippet for creating a
RequestSpecification using RequestSpecBuilder.