SlideShare uma empresa Scribd logo
1 de 26
2/14/2019 API Testing World 1
API TESTING WORLD
Galuh Duchri
System Analyst
galuhduchri
Galuh Duchri
+62812 1199 8877
M. Iskandar Maulana
Quality Engineer
Iskandarma27
Iskandar Maulana
+6283850262193
API CONCEPT & TESTING
2/14/2019 API Testing World 2
API
What is
2/14/2019 API Testing World 3
API Concept
User
(Mobile App)
Waiter
(API) (Application)
Kitchen
Request
Response Response
Request
2/14/2019 API Testing World 4
API TESTING
2/14/2019 API Testing World 5
01
API Testing
02
03
04
05
Functionality
Negative Case
Load Testing
Security
Penetration
2/14/2019 API Testing World 6
Testing Layer
Presentation
Layer
Business
Layer
Database
Layer
2/14/2019 API Testing World 7
API Testing Process
Record,
Define API
Information
Parsing, Filter or
Recording API
Data And then
extract
Reconstruction
API calls, and
sent them from a
simulate client
Test Validation
2/14/2019 API Testing World 8
API Testing
Tools
62/14/2019 API Testing World 9
Automation
OR
Manual
2/14/2019 API Testing World 10
API Testing
Automation
• Repeatable
• Mandatory
• Long Term
• Regression
Text Here
Manual
• Explorary
• Frequently
2/14/2019 API Testing World 11
VS
It’s Time For
GAMES
2/14/2019 API Testing World 12
2/14/2019 API Testing World 13
2/14/2019 API Testing World 14
2/14/2019 API Testing World 15
Collaboration in
Software
Development
Produc
t
Owner
Syste
m
Analys
t
Software
Engineer
Quality
Assuranc
e
2/14/2019 API Testing World 16
Normal Scenario Abnormal Scenario
2/14/2019 API Testing World 17
Behavior Driven
Development with JBehave
BDD With JBehave
The Step Overview
Gherkin Syntax
(Given, When, Than)
Write Story
Configure steps
script and validation
Map Steps to Java
Combine stories and
steps
Configure Stories
IntellijIDEA,
maven
Run Stories
Make a report using
Serenity
View Reports
1 2 3 4 5
2/14/2019 API Testing World 18
REST ASSURED
And The Features
Use of Hamcrest matches for checks (equalTo)
Supports for HTTP methods
User of Gpath for selecting element from JSON response
Java library for API testing
Supports for BDD / Gherkin (Given, When, Then)
2/14/2019 API Testing World 19
WRITING THE TEST
Using Rest Assured
RestAssured
.when()…
.given()…
.then()…
Test Setup
Test Action
Test Verification
.contentType()
.header()
.get(url), .post(), .put(), .delete(), etc.
.log().all()
.statusCode()
.body(“data.nama”, equalTo(“Kentir”))
2/14/2019 API Testing World 20
JSON SCHEMA
{
“data” : {
"credit_balance” : 0,
"debit_balance” : 0,
"total_balance” : 0
}
}
JSON Response
JSON Schema
2/14/2019 API Testing World 21
REPORTING BY SERENITY
Overall Test Results Test Details
2/14/2019 API Testing World 22
2/14/2019 API Testing World 22
DEMO
NEVER TRUST
THE SOFTWARE ENGINEER
BEFORE WE PROVIDE
A QUALITY TEST.
- Andik Wiko

Mais conteúdo relacionado

Mais procurados

API Readiness: Visualizing and Virtualizing
API Readiness: Visualizing and VirtualizingAPI Readiness: Visualizing and Virtualizing
API Readiness: Visualizing and Virtualizing
Lorinda Brandon
 

Mais procurados (20)

Introduction to APIs & how to automate APIs testing with selenium web driver?
Introduction to APIs & how to automate APIs testing with selenium web driver?Introduction to APIs & how to automate APIs testing with selenium web driver?
Introduction to APIs & how to automate APIs testing with selenium web driver?
 
API Testing
API TestingAPI Testing
API Testing
 
An Introduction To Automated API Testing
An Introduction To Automated API TestingAn Introduction To Automated API Testing
An Introduction To Automated API Testing
 
Automate REST API Testing
Automate REST API TestingAutomate REST API Testing
Automate REST API Testing
 
Api testing
Api testingApi testing
Api testing
 
Testing APIs in the Cloud
Testing APIs in the CloudTesting APIs in the Cloud
Testing APIs in the Cloud
 
How to Automate API Testing
How to Automate API TestingHow to Automate API Testing
How to Automate API Testing
 
Super powered API testing
Super powered API testing Super powered API testing
Super powered API testing
 
An introduction to api testing | David Tzemach
An introduction to api testing | David TzemachAn introduction to api testing | David Tzemach
An introduction to api testing | David Tzemach
 
API Test Automation Tips and Tricks
API Test Automation Tips and TricksAPI Test Automation Tips and Tricks
API Test Automation Tips and Tricks
 
Using Postman to Test OAuth/OIDC
Using Postman to Test OAuth/OIDCUsing Postman to Test OAuth/OIDC
Using Postman to Test OAuth/OIDC
 
Belajar Postman test runner
Belajar Postman test runnerBelajar Postman test runner
Belajar Postman test runner
 
10x Test Coverage, Less Drama: Shift Left Functional & Performance Testing
10x Test Coverage, Less Drama: Shift Left Functional & Performance Testing10x Test Coverage, Less Drama: Shift Left Functional & Performance Testing
10x Test Coverage, Less Drama: Shift Left Functional & Performance Testing
 
Migrating Automation Tests to Postman Monitors and ROI
Migrating Automation Tests to Postman Monitors and ROIMigrating Automation Tests to Postman Monitors and ROI
Migrating Automation Tests to Postman Monitors and ROI
 
Preparing for Holiday Performance, API edition
Preparing for Holiday Performance, API editionPreparing for Holiday Performance, API edition
Preparing for Holiday Performance, API edition
 
API Testing with Open Source Code and Cucumber
API Testing with Open Source Code and CucumberAPI Testing with Open Source Code and Cucumber
API Testing with Open Source Code and Cucumber
 
Postman Galaxy Tour - Keynote Presentation
Postman Galaxy Tour - Keynote PresentationPostman Galaxy Tour - Keynote Presentation
Postman Galaxy Tour - Keynote Presentation
 
Postman 101 for Students
Postman 101 for StudentsPostman 101 for Students
Postman 101 for Students
 
API Readiness: Visualizing and Virtualizing
API Readiness: Visualizing and VirtualizingAPI Readiness: Visualizing and Virtualizing
API Readiness: Visualizing and Virtualizing
 
Postman Webinar: "API Governance with Postman"
Postman Webinar: "API Governance with Postman"Postman Webinar: "API Governance with Postman"
Postman Webinar: "API Governance with Postman"
 

Semelhante a Meetup #5 API Testing World

Mobile api test approach
Mobile api test approachMobile api test approach
Mobile api test approach
Indium Software
 
CWIN17 New-York / Drive continuous delivery with continous testing
CWIN17 New-York / Drive continuous delivery with continous testingCWIN17 New-York / Drive continuous delivery with continous testing
CWIN17 New-York / Drive continuous delivery with continous testing
Capgemini
 
Beyond 200 OK.pptx
Beyond 200 OK.pptxBeyond 200 OK.pptx
Beyond 200 OK.pptx
Pricilla Bilavendran
 

Semelhante a Meetup #5 API Testing World (20)

Using ML to make your UI tests more robust
Using ML to make your UI tests more robustUsing ML to make your UI tests more robust
Using ML to make your UI tests more robust
 
DevOps Fest 2019. Володимир Кімак. Mobile CI/CD. Cross-platform app approach
DevOps Fest 2019. Володимир Кімак. Mobile CI/CD. Cross-platform app approachDevOps Fest 2019. Володимир Кімак. Mobile CI/CD. Cross-platform app approach
DevOps Fest 2019. Володимир Кімак. Mobile CI/CD. Cross-platform app approach
 
Continuous Testing - The Final Frontier
Continuous Testing - The Final FrontierContinuous Testing - The Final Frontier
Continuous Testing - The Final Frontier
 
APIdays Paris 2019 - Zero Downtime in API Management by Waldemar Rosenfeld, A...
APIdays Paris 2019 - Zero Downtime in API Management by Waldemar Rosenfeld, A...APIdays Paris 2019 - Zero Downtime in API Management by Waldemar Rosenfeld, A...
APIdays Paris 2019 - Zero Downtime in API Management by Waldemar Rosenfeld, A...
 
[WSO2 Integration Summit Nairobi 2019] Identity and Access Management in an A...
[WSO2 Integration Summit Nairobi 2019] Identity and Access Management in an A...[WSO2 Integration Summit Nairobi 2019] Identity and Access Management in an A...
[WSO2 Integration Summit Nairobi 2019] Identity and Access Management in an A...
 
WSO2 - Yenlo Integration Summit Stuttgart 15 May 2019 - IAM in an API Driven ...
WSO2 - Yenlo Integration Summit Stuttgart 15 May 2019 - IAM in an API Driven ...WSO2 - Yenlo Integration Summit Stuttgart 15 May 2019 - IAM in an API Driven ...
WSO2 - Yenlo Integration Summit Stuttgart 15 May 2019 - IAM in an API Driven ...
 
[WSO2 Summit Sydney 2019] Identity and Access Management in an API-driven World
[WSO2 Summit Sydney 2019] Identity and Access Management in an API-driven World[WSO2 Summit Sydney 2019] Identity and Access Management in an API-driven World
[WSO2 Summit Sydney 2019] Identity and Access Management in an API-driven World
 
Mobile api test approach
Mobile api test approachMobile api test approach
Mobile api test approach
 
Raising the Speed Limit on Mobile App Development
Raising the Speed Limit on Mobile App DevelopmentRaising the Speed Limit on Mobile App Development
Raising the Speed Limit on Mobile App Development
 
[WSO2 Integration Summit Stuttgart 2019] Identity and Access Management in an...
[WSO2 Integration Summit Stuttgart 2019] Identity and Access Management in an...[WSO2 Integration Summit Stuttgart 2019] Identity and Access Management in an...
[WSO2 Integration Summit Stuttgart 2019] Identity and Access Management in an...
 
Bulletproofing Your APIs: Why Users’ Feedback Matters
Bulletproofing Your APIs: Why Users’ Feedback MattersBulletproofing Your APIs: Why Users’ Feedback Matters
Bulletproofing Your APIs: Why Users’ Feedback Matters
 
CWIN17 New-York / Drive continuous delivery with continous testing
CWIN17 New-York / Drive continuous delivery with continous testingCWIN17 New-York / Drive continuous delivery with continous testing
CWIN17 New-York / Drive continuous delivery with continous testing
 
[WSO2 Integration Summit Madrid 2019] Identity and Access Management in an AP...
[WSO2 Integration Summit Madrid 2019] Identity and Access Management in an AP...[WSO2 Integration Summit Madrid 2019] Identity and Access Management in an AP...
[WSO2 Integration Summit Madrid 2019] Identity and Access Management in an AP...
 
Continuous Performance Testing
Continuous Performance TestingContinuous Performance Testing
Continuous Performance Testing
 
Agile Methodologies For Android Development: How Continuous Delivery can redu...
Agile Methodologies For Android Development: How Continuous Delivery can redu...Agile Methodologies For Android Development: How Continuous Delivery can redu...
Agile Methodologies For Android Development: How Continuous Delivery can redu...
 
How to kill test flake in appium
How to kill test flake in appiumHow to kill test flake in appium
How to kill test flake in appium
 
[WSO2 Integration Summit Johannesburg 2019] Identity and Access Management in...
[WSO2 Integration Summit Johannesburg 2019] Identity and Access Management in...[WSO2 Integration Summit Johannesburg 2019] Identity and Access Management in...
[WSO2 Integration Summit Johannesburg 2019] Identity and Access Management in...
 
[WSO2 API Day Chicago 2019] Sustainable Competitive Advantage
[WSO2 API Day Chicago 2019] Sustainable Competitive Advantage [WSO2 API Day Chicago 2019] Sustainable Competitive Advantage
[WSO2 API Day Chicago 2019] Sustainable Competitive Advantage
 
Beyond 200 OK.pptx
Beyond 200 OK.pptxBeyond 200 OK.pptx
Beyond 200 OK.pptx
 
8. globus tool kit 3
8. globus tool kit 38. globus tool kit 3
8. globus tool kit 3
 

Mais de Malang QA Community

Mais de Malang QA Community (20)

Driving Software Quality Across Platform
Driving Software Quality Across PlatformDriving Software Quality Across Platform
Driving Software Quality Across Platform
 
Driving Software Quality Across Platform
Driving Software Quality Across PlatformDriving Software Quality Across Platform
Driving Software Quality Across Platform
 
Dockerizing react app
Dockerizing react appDockerizing react app
Dockerizing react app
 
USABILITY TESTING TO IMPROVE USER EXPERIENCE
USABILITY  TESTING TO  IMPROVE USER EXPERIENCEUSABILITY  TESTING TO  IMPROVE USER EXPERIENCE
USABILITY TESTING TO IMPROVE USER EXPERIENCE
 
CI CD react app with docker
CI CD react app with dockerCI CD react app with docker
CI CD react app with docker
 
Build testable react app
Build testable react appBuild testable react app
Build testable react app
 
Automated test Using NodeJS
Automated test Using NodeJSAutomated test Using NodeJS
Automated test Using NodeJS
 
Refine your ci:cd pipeline with automated test
Refine your ci:cd pipeline with automated testRefine your ci:cd pipeline with automated test
Refine your ci:cd pipeline with automated test
 
Build testable laravel app
Build testable laravel appBuild testable laravel app
Build testable laravel app
 
Build testable laravel app
Build testable laravel appBuild testable laravel app
Build testable laravel app
 
The Importance of clearly defined requirements
The Importance of clearly defined requirementsThe Importance of clearly defined requirements
The Importance of clearly defined requirements
 
Test Case Management Tools
Test Case Management ToolsTest Case Management Tools
Test Case Management Tools
 
Scrum myth buster
Scrum myth busterScrum myth buster
Scrum myth buster
 
Technical documentation in software development types, best practices, and t...
Technical documentation in software development  types, best practices, and t...Technical documentation in software development  types, best practices, and t...
Technical documentation in software development types, best practices, and t...
 
How to survive in industrial world
How to survive in industrial worldHow to survive in industrial world
How to survive in industrial world
 
Peranan SQA dalam bisnis (mobayar)
Peranan SQA dalam bisnis (mobayar)Peranan SQA dalam bisnis (mobayar)
Peranan SQA dalam bisnis (mobayar)
 
E2 e test with testcafe
E2 e test with testcafeE2 e test with testcafe
E2 e test with testcafe
 
Agile Testing
Agile TestingAgile Testing
Agile Testing
 
Software testing fundamental Part 2
Software testing fundamental Part 2Software testing fundamental Part 2
Software testing fundamental Part 2
 
Software testing fundamental Part 1
Software testing fundamental Part 1Software testing fundamental Part 1
Software testing fundamental Part 1
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Meetup #5 API Testing World