SUBODH SINGHsubodhsingh.hashnode.dev·Sep 22, 2023RestAssured #19 - Creating POJO With Lombok (Serialization & De-Serialization)What is Lombok? Lombok is a Java library that aims to reduce boilerplate code in Java classes by providing annotations to automatically generate common methods such as getters, setters, and constructors. Using Lombok annotations in Java classes can s...Discuss·118 readsAPI Testing | Rest AssuredRest Assured
SUBODH SINGHsubodhsingh.hashnode.dev·Aug 12, 2023RestAssured #18 - Schema ValidationIntroduction When working with APIs, ensuring the integrity and structure of data exchanged between clients and servers is crucial. One effective way to achieve this is through schema validation. Schema validation involves comparing the structure of ...Discuss·1 like·159 readsAPI Testing | Rest AssuredRest Assured
SUBODH SINGHsubodhsingh.hashnode.dev·May 25, 2023RestAssured #17 - API Automation Practice (Part 4)- Delete Crocodiles (DELETE Request)Validation for DELETE Crocodiles End point (DELETE Request)- https://test-api.k6.io/my/crocodiles/{id} Below are validations for deleted crocodiles - Status Code - 204 (DELETE Request) No content To GET updated crocodile details for the user send a...Discuss·98 readsAPI Testing | Rest AssuredRest Assured
SUBODH SINGHsubodhsingh.hashnode.dev·May 23, 2023RestAssured #16 - API Automation Practice (Part 3)- Validate Crocodiles (GET Request)What are Hamcrest Matchers? Hamcrest Matchers is a library that provides a rich set of matchers for performing flexible and readable assertions in Java. It is commonly used in testing frameworks like JUnit and TestNG to write expressive and readable ...Discuss·98 readsAPI Testing | Rest AssuredRest Assured
SUBODH SINGHsubodhsingh.hashnode.dev·May 7, 2023RestAssured #15 - API Automation Practice (Part 2)- Update Crocodiles (PUT & PATCH Request)Below are details of the Test case covered in this article Difference between PUT and PATCH request To update resources there are two methods PUT - It is used to replace resources where entire representation of the resource needs to be sent in the...Discuss·58 readsAPI Testing | Rest AssuredRest Assured
SUBODH SINGHsubodhsingh.hashnode.dev·Apr 29, 2023RestAssured #14 - API Automation Practice (Part 1)- Crocodile API - Create Crocodiles (POST Request)This article will cover the Create Crocodiles test case automation to demonstrate POST Request automation using POJO for request and response payload. Also, it will create a basic structure to organise code in a better way. Below are the steps we ne...Discuss·37 readsAPI Testing | Rest AssuredRest Assured
SUBODH SINGHsubodhsingh.hashnode.dev·Apr 8, 2023RestAssured #13 - Converting response payload in JSON to POJO using De-SerializationUsing de-serialization to convert JSON to POJO In this section, we are going to see how to convert a response in json to POJO using De-serialization. To get a response in json using GET request will use this endpoint https://reqres.in/api/users which...Discuss·70 readsAPI Testing | Rest AssuredRest Assured
SUBODH SINGHsubodhsingh.hashnode.dev·Apr 1, 2023RestAssured #12 - Converting request payload to JSON using POJO with SerializationWhat are serialization and deserialization? Serialization is translating a data structure or object state into a format that can be stored or transmitted and reconstructed later. The opposite operation, extracting a data structure from a series of b...Discuss·188 readsAPI Testing | Rest AssuredRest Assured
SUBODH SINGHsubodhsingh.hashnode.dev·Mar 25, 2023RestAssured #11 - How to authenticate REST requestIntroduction To understand how to authenticate users in REST, we will use a private end-point which requires an authenticated user to access this end-point. For example, I am using this endpoint to create crocodiles created by a given user. Endpoint ...Discuss·80 readsAPI Testing | Rest AssuredRest Assured
SUBODH SINGHsubodhsingh.hashnode.dev·Feb 25, 2023RestAssured #10 - Automating POST Request (User Registration API) - Part 2Introduction In this article, we are going to see the below concepts with examples - Response Header validation How to enable logs for request and response Response Header validation Headers are name and value pairs. To validate the header in Res...Discuss·64 readsAPI Testing | Rest AssuredRest Assured