What is Postman Console

Debomita Bhattacharjee
Updated on 25-Jun-2021 16:03:19

760 Views

The Postman Console can be opened from the Postman application View menu Show Postman Console. Or using the shortcut Ctrl+Alt+C.Postman Console WindowInitially the message – No logs yet gets reflected in the Postman Console. There is an option to search for logs in the Console. We can clear all previous logs with the Clear button. Also, we have the option to filter all the levels of the Logs like Error, Log, Info and Warning from the All Logs dropdown.Every network request sent gets logged in the Postman Console. Once a request is sent, we can get the Response Body, code, ... Read More

What is Pre-request Script in Postman

Debomita Bhattacharjee
Updated on 25-Jun-2021 16:01:44

1K+ Views

The Pre-Request Script is used to run a JavaScript prior to the execution of a request. By incorporating a Pre-Request Script for a Collection, request or a folder, we can execute precondition steps like defining a variable, Parameters, Headers, Response, or logging console output.We can include a Pre-Request Script to set the order of execution of requests within a Collection. A Pre-Request Script can also handle a scenario in which a value yielded from the request one has to be fed to the next request or the value yielded from the request one has to be processed before moving to ... Read More

Set a Test in Postman Using JavaScript Method

Debomita Bhattacharjee
Updated on 25-Jun-2021 16:00:15

300 Views

We can set a Test in Postman with JavaScript method. In Postman, a test executes provided a Request is successful. This is because a test is created to include checkpoint and validate various parameters of the Response.Tests implemented in the JavaScript method are written within the Tests tab.Add the below JavaScript test −tests["Verify Response Time"] = responseTime > 600The tests is a variable of type array which can store data types- integer, string, Boolean and so on. Verify Response Time is the test name. The responseTime captures the time taken to obtain the Response.Select a GET request and enter an ... Read More

Run Collection Runner in Postman

Debomita Bhattacharjee
Updated on 25-Jun-2021 13:58:38

804 Views

We can run Collection Runner in Postman with the help of the below steps −Click on the Runner menu in the Postman application.The Collection Runner window gets launched.Click on the Collection name from the section – Choose a collection or folder.Choose an Environment from the Environment list box and enter the number of Iterations. Also, we can set a delay time in milliseconds.We have to select a file type from the Data field if we are utilizing data from a file. Then click on the Run Collection1 button.The Collection Runner result page gets opened. The tests get triggered as per ... Read More

Difference Between Find Element and Find Elements in Selenium

Debomita Bhattacharjee
Updated on 25-Jun-2021 13:50:16

5K+ Views

There are differences between findElement and findElements method in Selenium webdriver. Both of them can be used to locate elements on a webpage. The findElement points to a single element, while the findElements method returns a list of matching elements.The return type of findElements is a list but the return type of findElement is a WebElement. If there is no matching element, a NoSuchElementException is thrown by the findElement, however an empty list is returned by the findElements method.A good usage of findElements method usage is counting the total number of images or accessing each of images by iterating with ... Read More

Cypress Support for API Automation Testing

Debomita Bhattacharjee
Updated on 25-Jun-2021 13:49:20

341 Views

Yes Cypress supports API automating testing also. XHR is known as the XML HTTP Request. It is an API which is used as an object. Its methods pass data between a server and browser. An XHR object can obtain data from a server in the form of a Response.Cypress can not only be used for UI automation, but can also be used to supervise the network traffic by directly acquiring the XHR objects. It is capable of mocking or stubbing a Response. An XHR information is obatined in the Network tab in the browser.XHR HeaderResponseTo trigger an XHR request, the ... Read More

Unable to Launch Chrome Browser on Mac Using Selenium WebDriver

Debomita Bhattacharjee
Updated on 25-Jun-2021 13:48:37

3K+ Views

While working with Selenium webdriver, we may be unable to launch the Chrome browser on Mac. However, it can be avoided by following the steps listed below −Step1 − Navigate to the link:https://sites.google.com/chromium.org/driver/ and click on the download link of the chromedriver version which is compatible with our local chrome browser.Step2 − Click on the chromedriver link available for the Mac operating system.Step3 − Once the download of the zip file gets completed, unzip it to get the chromedriver.exe file. Save it to a desired location.Step4 − While mentioning the path of the chromedriver.exe file in the System.setProperty method, we ... Read More

Handle Windows-Based Pop-Ups in Selenium

Debomita Bhattacharjee
Updated on 25-Jun-2021 13:47:33

5K+ Views

Yes, it is possible to handle Windows based pop-ups in Selenium webdriver. Sometimes on clicking a link or a button, another window gets opened. It can be a pop up with information or an advertisement.The methods getWindowHandles and getWindowHandle are used to handle child windows. The getWindowHandles method stores all the handle ids of the opened windows in the form of Set data structure.The getWindowHandle method stores the handle id of the window in focus. Since the getWindowHandles method holds all the opened window handle ids, we can iterate through these handle ids with the iterator and next methods.To switch ... Read More

Difference Between Assert and Verify in Selenium

Debomita Bhattacharjee
Updated on 25-Jun-2021 13:45:55

4K+ Views

There are differences between Assert and Verify in Selenium. Both of these are used to verify if a webelement is available on the page. If the Assert fails, the test execution shall be stopped.The moment an Assertion has not passed in a step, the test steps after that step shall be hopped. However, this can be avoided by adding a try-catch block and incorporating the Assertion within this block.So the flow of the program execution continues if the Assertion yields a true condition. If not, the following steps after the failed step gets bypassed from the execution.To overcome this issue, ... Read More

Postman with Newman and Jenkins

Debomita Bhattacharjee
Updated on 25-Jun-2021 13:44:09

493 Views

We can integrate Postman with Newman and Jenkins. Newman is used to verify and execute a Collection. To integrate Newman and Jenkins, we have to follow the below steps −Step1 − We have to complete the installation and configuration of Jenkins. The steps to perform this task is discussed in details in the below link −https://www.tutorialspoint.com/jenkins/jenkins_installation.htmStep2 − We have to install npm and Nodejs. For installation of Nodejs can be done from the below link −https://nodejs.org/en/download/current/Step3 − The npm is allocated with Nodejs so once we download the Nodejs, the npm gets downloaded automatically.Step4 − We have to install Newman ... Read More

Advertisements