Postman Articles

Found 43 articles

Disadvantages of Monitors in Postman

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 620 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 we are. Thus it makes it difficult to determine the performance of a Collection in a different network.To solve this problem, we need to buy the Postman pro-version. On doing so, the Postman shall then give us another IP address with which we would be able to execute Monitors.Postman Monitors ...

Read More

Analyzing Monitor Results in Postman

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 207 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 the above image, we see the red bars which depict tests have failed for the request. A green bar points to the fact that tests have passed. On hovering on a particular bar, we shall get date, time, Response time and the percentage of test result for a particular run.Also, ...

Read More

What are Postman Monitors?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 1K+ Views

Postman Monitors are used to ensure that the performance and the Response obtained from an API are being maintained properly. Monitors are scheduled on a regular interval of minutes, hours or weeks for the entire day.The steps to create a Postman Monitor are listed below −Step 1 − Click on the arrow symbol to the right of the Collection name. Then click on the Monitors tab.Step 2 − Click on the Create a Monitor button.Please Note −  we have to Sign in to a Postman account in order to create a Monitor.Step 3 − Provide an input to the Monitor ...

Read More

How to Generate Newman Reports on Jenkins using Postman?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 437 Views

We can generate Newman reports on Jenkins. The reports obtained from Jenkins are a pictorial and organized representation of test execution results. These reports can also be shared with all the stakeholders of the project.Jenkins reports can be generated in several formats and can be controlled by adding different flags in the build commands. Also, it is necessary to specify the path where the reports shall be saved in build commands.The steps to generate Newman reports on Jenkins are listed below −As a prerequisite, Jenkins should be configured in the system. The details available in the link − https://www.tutorialspoint.com/jenkins/index.htm. Also, ...

Read More

How to Run Postman Collection on Jenkins using Newman Commands?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 546 Views

We can run Postman Collection on Jenkins using Newman commands. To achieve this, we should first have a Collection with a minimum one request and a test. Also, we should have Newman installed in our system.Step 1 − Click on the arrow to the right of the Collection name. Then click on the Share button.Step 2 − The SHARE COLLECTION1 window opens up. Go to the Get public link tab.Then copy the link which is highlighted in the below image.Please note − This link is unique to a user.Step 3 − Open Jenkins and navigate to the Jenkins Job below ...

Read More

Setting test iterations using Newman (Postman)

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 2K+ Views

We can set test iterations using Newman with the help of the option –n.Newman's command to list down all options is − newman run –h. Options in Newman is grouped into these categories −UtilityBasic setupRequest optionsOther Misc. OptionsThus complete command to set iterations for two times should be −newman run Collection1.json -n 2Or,newman run Collection1.json --iteration-count 2

Read More

Newman Optional Parameters & Configurations using Postman

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 526 Views

There are multiple options parameters and configurations that can be used in a Collection via Newman. The command to obtain a list of options is − newman run –h. Options in Newman can be of types – Utility, Basic setup, Request options and Misc.Utility-h, --help – to display usage details.-v, --version - to display version number.Basic Setup--folder [name of folder] – To point to a particular folder in Collection for execution.-e, --environment [name of file| URL] - To point to an Environment in the form of a JSON file.-d, --iteration-data [file] – To mention a data file to utilize either ...

Read More

How to write Assertions in Postman with Chai Assertion Library?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 419 Views

We can write Assertions in Postman with Chai Assertion Library. Assertions are added in tests to verify if the actual and expected results are similar. In case, they are dissimilar, an Assertion error gets thrown along with the cause of the error.Boolean value of either true or false is returned by an Assertion. In Postman, Assertion is handled by Chai Assertion Library which is developed in JavaScript. It is provided in the Postman application by default.Assertions in Postman are added under the Tests tab. The documentation of the Chai library details are present in the link − https://www.chaijs.com/.Let us create ...

Read More

How to get the response in different format in Mock Server using Postman?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 763 Views

We can get the Response in different formats in Mock Server. A Mock Server is created to avoid sending requests on the real time or production data. The steps to create a Response in different format in Mock Server are listed below −Step 1 − Click on New from the top of the Postman application. Then click on the Mock Server link.Step 2 − Choose the option GET from the Method field. Add /user/home in the Request Path, 200 in Response Code and the text – This is Postman Tutori in Tutorialspoint in the Response Body field.Step 3 − Provide ...

Read More

How to Import Collection in Postman?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 2K+ Views

We can import Collections in Postman. To perform the this task, follow the below steps −Step 1 − Click on the Import menu in the Postman application.Step 2 − Import pop-up shall open with the options to import from a File, Folder, Link, Raw text and Code Repository.Step 3 − We can either import by clicking on the Upload Files button or by drag and drop option. From the Code repository tab, we can import from GitHub.

Read More
Showing 1–10 of 43 articles
« Prev 1 2 3 4 5 Next »
Advertisements