Debomita Bhattacharjee has Published 867 Articles

How to use Selenium WebDriver for Web Automation?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

516 Views

We can use Selenium webdriver for web automation. For this we need to follow the below steps −Step 1 − The Webdriver should be created. For example,    WebDriver driver = new ChromeDriver();The above piece of code is used to create a webdriver instance and initiate the script execution in ... Read More

How to verify JSON response headers in Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 11:53:43

3K+ Views

We can verify JSON response headers in Rest Assured. This is achieved with the help of the header method. We shall send a GET request via Postman on a mock API, observe the Response Headers.Headers −ExampleUsing Rest Assured, we shall verify the value of the Content-Length in the Headers.Code Implementationimport ... Read More

How to pass the request body from an external file in a separate package in Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 11:45:51

1K+ Views

We can pass the request body from an external file in a separate package in Rest Assured and pass that file directly to a request as a payload. This technique can be used for static payloads or payloads having slight changes.The RequestSpecification interface has a method called the body. It ... Read More

How to verify a JSON response body using Assertions in Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 11:39:15

9K+ Views

We can verify the JSON response body using Assertions in Rest Assured. This is done with the help of the Hamcrest Assertion. It uses the Matcher class for Assertion.To work with Hamcrest we have to add the Hamcrest Core dependency in the pom.xml in our Maven project. The link to ... Read More

Uploading file to S3 using Rest Assured multipart.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 11:32:43

855 Views

We can upload files to S3 using Rest Assured multipart with the help of the below techniques −Rest Assured has the default URL encoding feature. The issue with S3 URLs is that they contain special characters such as %2A, %3D. As the URL encoding feature is configured to true value ... Read More

How to parameterize tests with multiple data sets using Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 11:28:38

2K+ Views

We can parameterize tests with multiple data sets using Rest Assured. Using data providers we can execute a single test case in multiple runs. To know more about TestNG data providers visit the below link −https://www.tutorialspoint.com/testng/testng_parameterized_test.htmThis technique can be used for dynamic payloads. For this, we shall create a Java ... Read More

How to create a project with Cucumber and Rest Assured dependencies?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 17-Nov-2021 11:11:59

678 Views

We can create a project with Cucumber and Rest Assured dependencies. This can be done by following the below steps −Step 1 − Create a Maven project. The details on how to create a Maven project is discussed in detail in the below link −https://www.tutorialspoint.com/maven/index.htmStep 2 − Add the following ... Read More

Test and Collection Runner in Postman

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 03-Aug-2021 14:38:03

396 Views

We can have checkpoints to verify the Response from a request. This is done by adding scripts in the Tests tab. These scripts get executed if the request has executed successfully.The scripts added under the Tests tab are developed in JavaScript. After a request has been sent and a Response ... Read More

Disadvantages of Monitors in Postman

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 03-Aug-2021 14:34:35

465 Views

Though Monitors in Postman have many features, it has some disadvantages as well. However, it is up to the end user if he should consider these features as drawbacks for Monitors.Disadvantages of monitors are listed below −Postman Monitors are non-functional provided the Postman server resides in the same server where ... Read More

Analyzing Monitor Results in Postman

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 03-Aug-2021 14:32:11

125 Views

Once a scheduled Collection Monitor gets triggered, we have to analyze the results. Click on the Monitor name available under the Monitors tab.A new window opens in the browser that shall redirect to the Postman account that we are signed in.If we analyze the performance graph of the API in ... Read More

Advertisements