Posts

Showing posts with the label #rest-assured

Postman AI features

Image
1. For all the Request in a Postman Collection, we can create tests by clicking on 'Generate Tests' which generate scripts for each request that validates request response and other parameters which can be custommized 2.  Using Postbot we can do a lot with test cases like "adding tests", "fixing tests", "add documentation"

Rest Assured Basics

Agenda To cover basic concepts of rest-assured framework, that will enable us to achieve API automation. Introduction API(Application Programming Interface) is an interface between client and server, which makes a request in specific format and gets response in a specific format. Terminology Endpoint/base uri : Address where API is hosted GET, POST, PUT, DELETE --> common methods to interact with REST API's, often we call them as CRUD operations (Create, Retrieve, Update, Delete) GET --> used to extract data from server POST --> used to send data to server PUT --> to replace existing resources on server DELETE --> to delete a resource on server Resource --> more of a package under endpoint. google/maps, google/docs --> where maps and docs are resources. Parameters Path Parameters: points to specific resource within a collection https://google.com/images/123 Query Parameters: used to sort or filter the resources https://amazon.com/orders?sort_by=4/28/2022 A...