SlideShare a Scribd company logo
Testing Microservices
with REST Assured
KUSHAN AMARASIRI
MOBILE 0768027773
What is Web Services ?
• IA web service is a function that can be accessed by other programs
over the web (Http)
• Example: I can go to maps.google.com, and type in my home
address, and see a map of where I live in my browser.
REST vs SOAP
• REST allows a greater variety of data formats, whereas SOAP only
allows XML.
• REST is generally faster and uses less bandwidth.
• REST is simple to handle than SOAP.
• REST more secure as compared to SOAP as it can be integrated with
any security protocol.
• REST is very restrictive than SOAP.
• REST runs on HTTP where SOAP runs on XML
Testing microservices with rest assured
How we do testing Web Services
• Read theWDSL file obtain information such as End Point, Parameters
and Expected Response.
• Use tools such as SOAP UI, ReadyAPI, SOAP Sonar, Fiddler or POST
MAN
• Send requests with different parameters and checks for response.
• Should do positive as well as exploratory (negative) test onWeb
Services.
Test Automation of Web Services
• Web Service testing should be automated if its viable.
• There are different tool sets to automateWeb Services test
Micro services Test Automation
What is a Microservice ?
Micro Services is also a form of a Service Oriented Architecture which now talk of the town.
In a Micro Services Architecture (MCA) there are many autonomous service components,
which are called processors that communicate each other via an HTTP channel.This is also
called inter process communication.
These services are;
· Developed in different programming languages and uses different databases
· They can be easily added/replaced or removed within the architecture
· They can be easily plugged to user interfaces
· They can have different context, autonomously developed and integrated
independently
These services architecture helps continues delivery as easily each individual micro service
component can be added to the architecture without interrupting the existing functionality
and interconnections.
· Allows and achieves benefits of scalability
Testing microservices with rest assured
Types of Microservices Testing
UnitTesting –This is to test internal working of individual
Micro Services test unit.These can be automated at each
programming level using automated unit testing framework.
ContractTesting –This is to test that each Micro Services unit
adheres to the given functionalities provided in the contract
established. Here each service component is tested
individually as a black box.
IntegrationTesting –This checks that more than one service
communicates each other and provides the desired results
given in the service functional level document.
UI FunctionalTesting –This where services are integrated with a UI
and testing is done via a UI where inputs needed by the Micro
Services are given via the UI and desired output is also tested via a
UI.
Internet of Things Automation
Testing microservices with rest assured
IOT Usage
How to test IOT?
Test the Web Service the IOT device communicates. Create automation test scripts that will test the
functionality of the IOT application
Jump Start REST Assured
Jump start REST Assured
• Create a Maven Project in your Eclipse and add the following
dependency.
• Do a Clean and Install
Jump start REST Assured
• Import for the following libraries
• Create a method in the and use theTestNG library
Jump Start Karate
Jump start Karate
• It’s an Open SourceTool
• Can be integrated to Java as a Maven Project
• Write simple BDD based scenarios
• Most less coding needed
• Anyone can start automation with Karate
Jump start Karate
• Create a Maven Project in your Eclipse and add the following
dependency.
• Do a Clean and Install
Jump start Karate
• Write the following feature file
• Create the following Junit test runner file

More Related Content

What's hot (20)

PDF
4 Major Advantages of API Testing
QASource
 
PPTX
Test in Rest. API testing with the help of Rest Assured.
Artem Korchevyi
 
PDF
API for Beginners
Sébastien Saunier
 
PPTX
Automation With Appium
Knoldus Inc.
 
PDF
2015-StarWest presentation on REST-assured
Eing Ong
 
PPTX
Automation Testing With Appium
Knoldus Inc.
 
PDF
An Introduction To Automated API Testing
Sauce Labs
 
PPTX
Api testing
Keshav Kashyap
 
PPTX
Automation test framework with cucumber – BDD
123abcda
 
PPTX
Test Automation and Selenium
Karapet Sarkisyan
 
PPSX
API Test Automation
SQALab
 
PDF
JUnit & Mockito, first steps
Renato Primavera
 
PPT
Native, Web or Hybrid Mobile App Development?
Sura Gonzalez
 
PPTX
Saving Time By Testing With Jest
Ben McCormick
 
PPTX
Api gateway in microservices
Kunal Hire
 
PPTX
Rest assured
Yaniv Rodenski
 
PDF
Cucumber ppt
Qwinix Technologies
 
PPTX
Jenkins multibranch pipeline workshop sep 2018
Oleksandr Metelytsia
 
PPTX
Automation using Appium
Livares Technologies Pvt Ltd
 
PDF
API for Beginners
Gustavo De Vita
 
4 Major Advantages of API Testing
QASource
 
Test in Rest. API testing with the help of Rest Assured.
Artem Korchevyi
 
API for Beginners
Sébastien Saunier
 
Automation With Appium
Knoldus Inc.
 
2015-StarWest presentation on REST-assured
Eing Ong
 
Automation Testing With Appium
Knoldus Inc.
 
An Introduction To Automated API Testing
Sauce Labs
 
Api testing
Keshav Kashyap
 
Automation test framework with cucumber – BDD
123abcda
 
Test Automation and Selenium
Karapet Sarkisyan
 
API Test Automation
SQALab
 
JUnit & Mockito, first steps
Renato Primavera
 
Native, Web or Hybrid Mobile App Development?
Sura Gonzalez
 
Saving Time By Testing With Jest
Ben McCormick
 
Api gateway in microservices
Kunal Hire
 
Rest assured
Yaniv Rodenski
 
Cucumber ppt
Qwinix Technologies
 
Jenkins multibranch pipeline workshop sep 2018
Oleksandr Metelytsia
 
Automation using Appium
Livares Technologies Pvt Ltd
 
API for Beginners
Gustavo De Vita
 

Similar to Testing microservices with rest assured (20)

PDF
Testing Microservices
Nagarro
 
PDF
Testing the Migration of Monolithic Applications to Microservices on the Cloud
Nagarro
 
PDF
Scale and Load Testing of Micro-Service
IRJET Journal
 
PPTX
SOA testing tools
runzyme
 
PPT
Using Service Discovery and Service Proxy
IBM
 
PDF
SOA testing tools
runzyme
 
DOC
Soap ui documentation
Follower Test
 
PPTX
Silk Performer Presentation v1
Sun Technlogies
 
PPTX
Tools that have made cloud testing easy
BugRaptors
 
PPTX
Disruptive Trends in Application Development
WaveMaker, Inc.
 
PDF
How to Build Front-End Web Apps that Scale - FutureJS
Phil Leggetter
 
PPTX
Microservices
SmartBear
 
PDF
White paper ready api
Nithin Bijjala
 
PPTX
Micro Service automation by Srijit Jain
Software Testing Board
 
PPTX
Visual Studio 2015 - Lançamento está próximo
Daniel Semedo
 
PDF
Top 11 api testing tools for 2022
Aparna Sharma
 
PDF
Continuous Integration and Continuous Delivery to Facilitate Web Service Testing
Cognizant
 
PDF
Patterns and practices for building enterprise-scale HTML5 apps
Phil Leggetter
 
PDF
Tech Talk on Cloud Computing
ITviec
 
PPTX
Microservice Pattern Launguage
Inho Kang
 
Testing Microservices
Nagarro
 
Testing the Migration of Monolithic Applications to Microservices on the Cloud
Nagarro
 
Scale and Load Testing of Micro-Service
IRJET Journal
 
SOA testing tools
runzyme
 
Using Service Discovery and Service Proxy
IBM
 
SOA testing tools
runzyme
 
Soap ui documentation
Follower Test
 
Silk Performer Presentation v1
Sun Technlogies
 
Tools that have made cloud testing easy
BugRaptors
 
Disruptive Trends in Application Development
WaveMaker, Inc.
 
How to Build Front-End Web Apps that Scale - FutureJS
Phil Leggetter
 
Microservices
SmartBear
 
White paper ready api
Nithin Bijjala
 
Micro Service automation by Srijit Jain
Software Testing Board
 
Visual Studio 2015 - Lançamento está próximo
Daniel Semedo
 
Top 11 api testing tools for 2022
Aparna Sharma
 
Continuous Integration and Continuous Delivery to Facilitate Web Service Testing
Cognizant
 
Patterns and practices for building enterprise-scale HTML5 apps
Phil Leggetter
 
Tech Talk on Cloud Computing
ITviec
 
Microservice Pattern Launguage
Inho Kang
 
Ad

More from Kushan Shalindra Amarasiri - Technical QE Specialist (13)

PPTX
Selenium test automation framework design & development
Kushan Shalindra Amarasiri - Technical QE Specialist
 
PPTX
Mobile test automation in simple steps
Kushan Shalindra Amarasiri - Technical QE Specialist
 
PPTX
Manipulating web elements with web driver
Kushan Shalindra Amarasiri - Technical QE Specialist
 
PPTX
End to end test automation with cypress
Kushan Shalindra Amarasiri - Technical QE Specialist
 
PPTX
How to be an awesome test automation professional
Kushan Shalindra Amarasiri - Technical QE Specialist
 
PPTX
Test automation within a scrum process
Kushan Shalindra Amarasiri - Technical QE Specialist
 
Ad

Recently uploaded (20)

PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Advancing WebDriver BiDi support in WebKit
Igalia
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Advancing WebDriver BiDi support in WebKit
Igalia
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 

Testing microservices with rest assured

  • 1. Testing Microservices with REST Assured KUSHAN AMARASIRI MOBILE 0768027773
  • 2. What is Web Services ? • IA web service is a function that can be accessed by other programs over the web (Http) • Example: I can go to maps.google.com, and type in my home address, and see a map of where I live in my browser.
  • 3. REST vs SOAP • REST allows a greater variety of data formats, whereas SOAP only allows XML. • REST is generally faster and uses less bandwidth. • REST is simple to handle than SOAP. • REST more secure as compared to SOAP as it can be integrated with any security protocol. • REST is very restrictive than SOAP. • REST runs on HTTP where SOAP runs on XML
  • 5. How we do testing Web Services • Read theWDSL file obtain information such as End Point, Parameters and Expected Response. • Use tools such as SOAP UI, ReadyAPI, SOAP Sonar, Fiddler or POST MAN • Send requests with different parameters and checks for response. • Should do positive as well as exploratory (negative) test onWeb Services.
  • 6. Test Automation of Web Services • Web Service testing should be automated if its viable. • There are different tool sets to automateWeb Services test
  • 7. Micro services Test Automation
  • 8. What is a Microservice ? Micro Services is also a form of a Service Oriented Architecture which now talk of the town. In a Micro Services Architecture (MCA) there are many autonomous service components, which are called processors that communicate each other via an HTTP channel.This is also called inter process communication. These services are; · Developed in different programming languages and uses different databases · They can be easily added/replaced or removed within the architecture · They can be easily plugged to user interfaces · They can have different context, autonomously developed and integrated independently These services architecture helps continues delivery as easily each individual micro service component can be added to the architecture without interrupting the existing functionality and interconnections. · Allows and achieves benefits of scalability
  • 10. Types of Microservices Testing UnitTesting –This is to test internal working of individual Micro Services test unit.These can be automated at each programming level using automated unit testing framework. ContractTesting –This is to test that each Micro Services unit adheres to the given functionalities provided in the contract established. Here each service component is tested individually as a black box. IntegrationTesting –This checks that more than one service communicates each other and provides the desired results given in the service functional level document. UI FunctionalTesting –This where services are integrated with a UI and testing is done via a UI where inputs needed by the Micro Services are given via the UI and desired output is also tested via a UI.
  • 11. Internet of Things Automation
  • 14. How to test IOT? Test the Web Service the IOT device communicates. Create automation test scripts that will test the functionality of the IOT application
  • 15. Jump Start REST Assured
  • 16. Jump start REST Assured • Create a Maven Project in your Eclipse and add the following dependency. • Do a Clean and Install
  • 17. Jump start REST Assured • Import for the following libraries • Create a method in the and use theTestNG library
  • 19. Jump start Karate • It’s an Open SourceTool • Can be integrated to Java as a Maven Project • Write simple BDD based scenarios • Most less coding needed • Anyone can start automation with Karate
  • 20. Jump start Karate • Create a Maven Project in your Eclipse and add the following dependency. • Do a Clean and Install
  • 21. Jump start Karate • Write the following feature file • Create the following Junit test runner file