Skip to content
+91-7795206615
|
info@habilelabs.io

  • Home
  • About
  • Services
    • Custom Application Development
    • UI/UX Designing
    • Web Application Development
    • Offshore Product Services
    • Technical Outsourcing
    • ERP Services
  • Company
    • Careers
    • Case Studies
  • Specialization
    • Frontend Frameworks
      • Angular
      • ReactJS
      • VueJS
      • HTML / CSS
      • Javascript /Jquery
      • Bootstrap
      • Material design
    • Backend Frameworks
      • NodeJS
      • Meteor
      • GraphQL
      • Loopback
      • Salesforce
      • Spring Boot
      • Odoo
      • Laravel
    • Database / ORM
      • MySQL
      • PostgreSQL
      • Oracle
      • MongoDB
      • Google Firebase
      • Mongoose
      • Sequelize
      • Hibernate / JPA
    • Languages
      • Java Script
      • Dot Net
      • Java
      • Python
      • C / C++
      • PHP
      • AI / ML
      • Type Script
    • Mobile Frameworks
      • Ionic
      • Native Script
      • Native Android App
      • Native iOS App
      • Google Flutter
      • React Native
  • Blog
  • Hire Us

API Testing Using POSTMAN

Categories

  • Angular
  • Business Strategies
  • Cloud Services
  • CRM
  • Design Pattern
  • E-commerce
  • ERP Applications
  • Javascript
  • Meteor
  • Mobile development
  • Mongo DB
  • Node JS
  • Odoo
  • Our Partners
  • PHP
  • React
  • SAAS
  • Salesforce
  • SAP
  • Selenium
  • Tech stack Migration
  • Testing
  • UI-UX Design
  • Uncategorized
  • VAPT
  • Visualforce
  • Web Development
  • Web Security

Categories

  • Angular
  • Business Strategies
  • Cloud Services
  • CRM
  • Design Pattern
  • E-commerce
  • ERP Applications
  • Javascript
  • Meteor
  • Mobile development
  • Mongo DB
  • Node JS
  • Odoo
  • Our Partners
  • PHP
  • React
  • SAAS
  • Salesforce
  • SAP
  • Selenium
  • Tech stack Migration
  • Testing
  • UI-UX Design
  • Uncategorized
  • VAPT
  • Visualforce
  • Web Development
  • Web Security
postman-api-testing

POSTMAN is rest client. It is used to hit REST APIs.  REST is “Representational State Transfer” Architecture. REST APIs are based on some HTTP methods like-

  • GET: It is used for fetching data from the server
  • POST: It is used for creating data in server
  • PUT: It is used for updating data in the server
  • DELETE: It is used for deleting data from the server

Postman is also used for automation. Test scripts can also be written using it. It is also used for creating bulk data on the server. Postman provides a collection runner for creating the bulk data.

How to Use Postman for API Testing?

Data for API:

url: https://localhost:8081/api/v1/register-node method: post

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
requestPayload:
{
"hostName": "win64",
"osType": "Windows",
"osVersion":"10",
"osEdition":"home",
"platform": 1,
"deviceType":"Laptop",
"trustedCertificateList": [
{
"certificateName": "testCert",
"hash": "#$67<em>432@", "store": "Data store" } ], "macIPAddresses": [ { "name": "Ethernet adapter", "mac": "38-AF-D7-38-F2-FF", "ipAddresses": "[192.168.1.99]" } ], "disks": [ "SanDisk SSD PLUS 120 GB" ], "drives": [ "C:" ], "versionNumber": "1.0.0" } requestPayload: { "hostName": "win64", "osType": "Windows", "osVersion":"10", "osEdition":"home", "platform": 1, "deviceType":"Laptop", "trustedCertificateList": [ { "certificateName": "testCert", "hash": "#$67</em>432@",
"store": "Data store"
}
],
"macIPAddresses": [
{
"name": "Ethernet adapter",
"mac": "38-AF-D7-38-F2-FF",
"ipAddresses": "[192.168.1.99]"
}
],
"disks": [
"SanDisk SSD PLUS 120 GB"
],
"drives": [
"C:"
],
"versionNumber": "1.0.0"
}

Content-Type: application/json

Explanation:

url: https:// (Protocol) + localhost:8081 (applink+port) +  api/v1/register-node (Endpoint)

requestPayload: type=> JSON (Javascript Object Notation)

Content-Type: application/json=> Request payload is in JSON

In postman select method: POST (A method is used to create data on a server. It is the HTTP method.)

Enter URL in Postman. Meanwhile, the URL will have a protocol, port, endpoint & server IP. Server IP represents the application server.

  • Payload should have a valid JSON. Key & value pairs should only be included in JSON.
  • Click on the send button.
  • When we click on send button then it will send a request to the server. The server will analyze this request.

Enter headers in postman. Headers can change according to the request body.

Enter payload in the ‘body’ row section.

  • Payload should have a valid JSON. Key & value pairs should only be included in JSON.
  • Click on the send button.
  • When we click on send button, it will send a request to the server. The server will analyze this request.
  • It will send a request to the server and the server will validate the request and send the response.

The response will be –

Some Response Code is-

  • 200: OK
  • 404: Not Found
  • 409: Conflict
  • 500: Internal Server Error
  • 400: Bad Request

Conclusion

It is an easy-to-use tool. The end-user can learn it easily. If we compare it with soap UI then JSON is very simple and understandable. All methods are HTTP-based. User Interface is very easy to use. Response codes are readable and simple. We can also check responses in HTML and XML as well.

Also read-

Salesforce Testing: A Beginners’ Guide
Automation Using Cypress End to End Testing Tool

Posted byadarshMay 4, 2021May 5, 2021Posted inMobile development, Testing, UI-UX Design, Web DevelopmentTags: Postman API Testing, Rest API Design, REST APIs, Testing

Post navigation


:

Leave a comment

Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • PyScript – Python for the Web Browser

    PyScript – Python for the Web Browser

  • Cross-Database with Association in Postgres with Sequelize

    Cross-Database with Association in Postgres with Sequelize

  • How can You Improve Your Communication Skills – Effective Tips

    How can You Improve Your Communication Skills – Effective Tips

  • 5 Reasons that Make CRM Software Beneficial for Every Business

    5 Reasons that Make CRM Software Beneficial for Every Business

  • Do Low-Code Solutions have a Future in Web Development?

    Do Low-Code Solutions have a Future in Web Development?

  • A Revenue Management Reset in Consumer Goods

    A Revenue Management Reset in Consumer Goods

Talk to our experts now

Have a project or looking for development team? Contact us.

Get a quote

About Us

Habilelabs Private Limited is the ISO 9001:2015 certified IT company, which has marked its flagship in 20+ countries with 100+ projects successfully

Company

  • About
  • Blog
  • Careers
  • Hire Us
  • Privacy Policy

Contact Us

  • +91-9828247415
  • +91-9887992695
  • info@habilelabs.io

Follow Us

Office

  • Habilelabs Private Limited
    4th Floor, I.G.M. School Campus,
    Sec-93 Agarwal Farm, Mansarovar,
    Jaipur, Rajasthan India
    Pin:302020