Debomita Bhattacharjee has Published 867 Articles

How to iterate through and access the JSON array elements using Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 12:46:27

9K+ Views

We can iterate through and access the JSON array elements using Rest Assured. First, we shall obtain a Response body which is in JSON format from a request. Then convert it to string.To obtain JSON array size, we have to use the size method on the JSON array. Then introduce ... Read More

How to get a JSON field in a nested JSON using Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 12:41:22

6K+ Views

We can get a JSON field in a complex nested JSON using Rest Assured. First, we shall obtain a Response body which is in JSON format from a request. Then convert it to string.We shall send a GET request via Postman on a mock API URL and observe its Response.Using ... Read More

How to get a JSON array field in a nested JSON using Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 12:36:40

4K+ Views

We can get a JSON array field in a nested JSON using Rest Assured. First, we shall obtain a Response body which is in JSON format from a request. Then convert it to string.Finally, to obtain a particular array value, we shall use the array index followed by the field ... Read More

How to get the size of an array within a nested JSON in Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 12:32:22

3K+ Views

We can get the size of an array within a nested JSON in Rest Assured. First, we shall obtain a Response body which is in JSON format from a request. Then convert it to string.Finally, to obtain JSON array size, we have to use the size method. We shall send ... Read More

How to incorporate TestNG assertions in validating Response in Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 12:28:58

992 Views

We can incorporate TestNG assertions in validating Response in Rest Assured. To work with TestNG we have to add the below dependency in the pom.xml in our Maven project. The link to this dependency is available in the below link −https://mvnrepository.com/artifact/org.testng/testngTo verify a response with a TestNG assertion, we need ... Read More

How to update the value of a field in a request using Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 12:24:14

1K+ Views

We can update the value of a field in a request using Rest Assured. This can be achieved with the help of the PUT request. A PUT request is used to pass data to the server for the modification of a resource. The difference between POST and PUT is that ... Read More

What are the role and Responsibilities of QA managers in Agile organizations?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 12:19:21

546 Views

The roles and responsibilities of QA managers in Agile organizations are listed below −Discover new avenues of QA growth after researching and analyzing data.QA managers are responsible for setting standards and guidelines on the choice of automation tools. They should define the testing methodologies and status of defects.QA managers collaborate ... Read More

How to open chrome default profile with selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 12:16:00

11K+ Views

We can open Chrome default profile with Selenium. To get the Chrome profile path, we need to input chrome://version/ in the Chrome browser and then press enter.We need to use the ChromeOptions class to open the default Chrome profile. We need to use the add_argument method to specify the path ... Read More

How to parse a JSON response and get a particular field from the response in Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 12:10:35

9K+ Views

We can parse a JSON response and get a particular field from Response in Rest Assured. This is done with the help of the JSONPath class. To parse a JSON response, we have to first convert the response into a string.To obtain the response we need to use the methods ... Read More

How to extract the whole JSON response as a string in Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 12:06:27

6K+ Views

We can extract the whole JSON as a string in Rest Assured. This is achieved with the help of the extract method. It shall extract the whole response as a string using the asString method.We shall send a GET request via Postman on a mock API, observe the Response.ExampleUsing Rest ... Read More

Advertisements