Sunday, October 16, 2022

DevOps 01: What is DevOps and How it benefits organizations?

DevOps is a culture in an organization, where the development team and operations team help each other by sharing information, process and tools to successfully develop and maintain a software application.

Software development and software testing are not separate in DevOps world, Dev includes software development and it's testing.

Ops (Operations) team is responsible for software deployment and it's maintenance in the production or live environment, with no or limited communication with the dev team.

DevOps bridges the gap between the Dev and Ops team for successful software development and deployment.

Saturday, October 1, 2022

API Testing 08: How to send POST request in REST-assured?

POST is a http method, it is used for creating the new resources on the server. In particular, it is used for creating the subordinate resources.

When we POST the request, the service will associate the new resource with the parent resource assigning an ID. On successful creation of new resource the request returns a location header with link to newly created header and HTTP status code 201 (created). 

POST request consists of request line, headers and body/payload. The body/payload can be of different types like Simple Object (String, Map, JsonObject), File and Model (POJO). In this tutorial we will send the payload as simple object (String). Please check the below code.

API Testing 07: How to send GET request in REST-assured?

GET is one of the HTTP method which is used for retrieving the representation of the resource. If the resource is found on server-side it returns JSON or XML format response with HTTP response code 200 (OK).

If the resource not found, it returns the HTTP status code 404 (NOT FOUND).

We will be using https://reqres.in/api/users for demo purpose. In the below example using get() method we are sending the request to server.

DevOps 01: What is DevOps and How it benefits organizations?

DevOps is a culture in an organization, where the development team and operations team help each other by sharing information, process and t...