POSTMAN
The Dark Knight of API testing
From simple API test to E2E scenario
“Tonight you are all
going to be part of
a social experiment”
What is API
Application programming interface.
A set of routines, protocols, and tools for building software applications.
Specifies how software components should interact.
There are many different types of APIs for operating systems,
applications or websites.
“Before I learned software development, API sounded like a kind of beer.
Today I use the term so often that I have in fact recently tried to order an API at a bar.
The bartender’s response was to throw a 404: resource not found.”
Petr Gazarov, freeCodeCamp
SOAP
API implementation approaches
REST
Representational State Transfer
Only works on top of the HTTP
CRUD (HTTP-requests)
XML, JSON, text
Efficiency, less network traffic
Lack of standardization
Hard to enforce security
Simple Object Access Protocol
Protocol independent
WSDL (Web Services Description Language)
Structured XML
XML overhead in Network
Not human readable
Hard to implement
Request - Response
Send request
View response
Examples of API tests
Status: the correct response code was returned
Performance: the response was returned within a certain time
Syntax: the content type of the returned content was as expected
Syntax: the server accepts correct input
Error handling: the server rejects incorrect input
Error handling: excluding a required parameter results in an error
Error handling: submitting incorrect data types results in an error
Validate API response
“Wanna know
how I got these tests?”
“It’s all part of the plan.”
Start with the plan
Manage environments
Use variables
Create workflows
Run scenario
Run tests with Newman
“I took UI tests, and brought them down to API level.
It wasn’t hard.
Y’see, quality, as you know, is like gravity.
All it takes is a little…push.”
POSTMAN FEATURES
Environments Variables Assertions
Data Driven Tests Newman
In-App Postman
Lessons
Forking
TemplatesMocks
Team work
Echo Monitoring Docs
THANKS!
Any questions?
linkedin.com/in/koptiev/
sgkoptev@gmail.com

Postman. From simple API test to end to end scenario