SlideShare a Scribd company logo
1 of 15
Testing
Hamcrest and Mockito
Testing Microservices
A microservices architecture consists of focused, small services that together
create a complete application or task. Every instance of a microservice
represents a single responsibility within your application. The real advantage is
that, these services are independent of one another, which makes them
independently deployable and testable.
Types of Testing
1. Unit Testing
2. Contract Testing
3. Integration Testing
4. End-To-End Testing
5. UI/Functional Testing
Unit Testing
The scope of unit testing is internal to the service. In terms of volume of tests,
they are the largest in number. Unit tests should ideally be automated,
depending on the development language and the framework within the service.
Examples : JUnit Test, Hamcrest, Mockito
Contract Testing
Contract testing is a methodology for ensuring two separate systems are
compatible and are able to communicate with one another. It captures the
interaction that are exchanged between each service, storing them in a
contract, which can then be used to verify that both parties adhere to it.
Contract testing goes beyond schema testing, requires both parties to come to
a consensus on the allowed set of interactions and allowing for evolution over
time.
Contract Testing
Contract Testing
You can use open source contract testing tool for testing HTTP requests,
responses and message integrations by using contract test.
Example : Pack
Integration testing
Verification of the services that have been individually tested much be
performed. This critical part of microservice architecture testing relies on the
proper functioning of inter-service communications. Service call must be made
with integration to external services, including error and success cases.
Integration testing thus validates that the system is working together
seamlessly and that the dependencies between the services are present as
expected.
Integration testing
Tools for performing integration testing examples :
free application
written in the Go
language.
highly effective and used performance test
tools for testers
microservices test tool written in
Scala, which allows it to perform
simulations on many platforms. At
the end of emulation, Gatling reports
on metrics like active user numbers &
response times automatically.
Integration testing
Tools for performing integration testing examples :
an end-to-end, open-source distributed tracing tool
that checks and troubleshoots microservices-centric
systems. With tracking services across the software's
operations environ, it can carry out root-cause
scrutiny, examine key service dependencies and
discover areas for optimizing performance.
an automated, open-source API communication simulation
tool that assists with integration tests. The user can test how
APIs react to precise events, like rate limits and latency in
the network. It also runs test calls between microservices by
emulating communications and then records responses and
requests in proxy mode to confirm they work as expected.
Integration testing
Tools for performing integration testing examples :
contract test tool that monitors
HTTP and message interactions
to make sure apps are
functioning in a consumer-driven
contract manner.
a monitoring solution that monitors
resource use for apps or
microservices deployed on Amazon
Web Services. Thus, it can be a
helpful tool if you wish to execute
load tests for microservices.
Grafana is a free metric visualization
& analytics suite. One can use it to
visualize time series data to notice
how your microservices react under
real-time traffic.
End To End Testing
End-to-End testing verifies that the entire process flows work correctly,
including all service and DB integration. Thorough testing operations that affect
multiple services ensures that the system works together as a whole and
satisfies all requirements. Frameworks like JBehave help automate. Functional
testing by taking user stories and verifying that the system behaves as
expected.
End To End Testing
testRigor Avo Assure BugBug Mabl Selenium
WebDriver
Testcafe
Nightwatch Autify Endtest
UI/Functional Testing
User interface testing is the testing of the highest order as it tests the system
as an end-user would use it. Testing of this level must feel like a user trying to
interact with the system. All the databases, interfaces, internal and third-party
services must work together seamlessly to produce the expected results.
Lab

More Related Content

Similar to Testing.pptx

ParasoftServiceVirtualizationAPITestingIgnis
ParasoftServiceVirtualizationAPITestingIgnisParasoftServiceVirtualizationAPITestingIgnis
ParasoftServiceVirtualizationAPITestingIgnis
Sonya S
 
App Testing Tools and Frameworks A Comparative Analysis.pdf
App Testing Tools and Frameworks A Comparative Analysis.pdfApp Testing Tools and Frameworks A Comparative Analysis.pdf
App Testing Tools and Frameworks A Comparative Analysis.pdf
lubnayasminsebl
 

Similar to Testing.pptx (20)

Testing Strategies in .NET: From Unit Testing to Integration Testing
Testing Strategies in .NET: From Unit Testing to Integration TestingTesting Strategies in .NET: From Unit Testing to Integration Testing
Testing Strategies in .NET: From Unit Testing to Integration Testing
 
ParasoftServiceVirtualizationAPITestingIgnis
ParasoftServiceVirtualizationAPITestingIgnisParasoftServiceVirtualizationAPITestingIgnis
ParasoftServiceVirtualizationAPITestingIgnis
 
Software Testing Types Comprehensive Guide
Software Testing Types Comprehensive GuideSoftware Testing Types Comprehensive Guide
Software Testing Types Comprehensive Guide
 
Tools that have made cloud testing easy
Tools that have made cloud testing easyTools that have made cloud testing easy
Tools that have made cloud testing easy
 
Web Application Testing – The Basics of Web App Test Automation.pdf
Web Application Testing – The Basics of Web App Test Automation.pdfWeb Application Testing – The Basics of Web App Test Automation.pdf
Web Application Testing – The Basics of Web App Test Automation.pdf
 
Unit Testing Essay
Unit Testing EssayUnit Testing Essay
Unit Testing Essay
 
Ijcatr04051014
Ijcatr04051014Ijcatr04051014
Ijcatr04051014
 
Ensuring Effective Performance Testing in Web Applications.pdf
Ensuring Effective Performance Testing in Web Applications.pdfEnsuring Effective Performance Testing in Web Applications.pdf
Ensuring Effective Performance Testing in Web Applications.pdf
 
HP Software Testing project (Advanced)
HP Software Testing project (Advanced)HP Software Testing project (Advanced)
HP Software Testing project (Advanced)
 
Automated Front End Testing_ Navigating Types and Tools for Optimal Web Devel...
Automated Front End Testing_ Navigating Types and Tools for Optimal Web Devel...Automated Front End Testing_ Navigating Types and Tools for Optimal Web Devel...
Automated Front End Testing_ Navigating Types and Tools for Optimal Web Devel...
 
12 considerations for mobile testing (march 2017)
12 considerations for mobile testing (march 2017)12 considerations for mobile testing (march 2017)
12 considerations for mobile testing (march 2017)
 
Why Enterprises Should Opt for Cloud-Based Real Device App Testing.pdf
Why Enterprises Should Opt for Cloud-Based Real Device App Testing.pdfWhy Enterprises Should Opt for Cloud-Based Real Device App Testing.pdf
Why Enterprises Should Opt for Cloud-Based Real Device App Testing.pdf
 
Implementing a testing strategy
Implementing a testing strategyImplementing a testing strategy
Implementing a testing strategy
 
Web application automated testing types and tools
Web application automated testing types and toolsWeb application automated testing types and tools
Web application automated testing types and tools
 
How to test a microservice?
How to test a microservice?How to test a microservice?
How to test a microservice?
 
Load Runner Methodology to Performance Testing
Load Runner Methodology to Performance TestingLoad Runner Methodology to Performance Testing
Load Runner Methodology to Performance Testing
 
App Testing Tools and Frameworks A Comparative Analysis.pdf
App Testing Tools and Frameworks A Comparative Analysis.pdfApp Testing Tools and Frameworks A Comparative Analysis.pdf
App Testing Tools and Frameworks A Comparative Analysis.pdf
 
project on Agile approach
project on Agile approachproject on Agile approach
project on Agile approach
 
Webapp Automation Testing of performance marketing and media platform
Webapp Automation Testing of performance marketing and media platformWebapp Automation Testing of performance marketing and media platform
Webapp Automation Testing of performance marketing and media platform
 
load_testing
load_testingload_testing
load_testing
 

Recently uploaded

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Recently uploaded (20)

Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

Testing.pptx

  • 2. Testing Microservices A microservices architecture consists of focused, small services that together create a complete application or task. Every instance of a microservice represents a single responsibility within your application. The real advantage is that, these services are independent of one another, which makes them independently deployable and testable.
  • 3. Types of Testing 1. Unit Testing 2. Contract Testing 3. Integration Testing 4. End-To-End Testing 5. UI/Functional Testing
  • 4. Unit Testing The scope of unit testing is internal to the service. In terms of volume of tests, they are the largest in number. Unit tests should ideally be automated, depending on the development language and the framework within the service. Examples : JUnit Test, Hamcrest, Mockito
  • 5. Contract Testing Contract testing is a methodology for ensuring two separate systems are compatible and are able to communicate with one another. It captures the interaction that are exchanged between each service, storing them in a contract, which can then be used to verify that both parties adhere to it. Contract testing goes beyond schema testing, requires both parties to come to a consensus on the allowed set of interactions and allowing for evolution over time.
  • 7. Contract Testing You can use open source contract testing tool for testing HTTP requests, responses and message integrations by using contract test. Example : Pack
  • 8. Integration testing Verification of the services that have been individually tested much be performed. This critical part of microservice architecture testing relies on the proper functioning of inter-service communications. Service call must be made with integration to external services, including error and success cases. Integration testing thus validates that the system is working together seamlessly and that the dependencies between the services are present as expected.
  • 9. Integration testing Tools for performing integration testing examples : free application written in the Go language. highly effective and used performance test tools for testers microservices test tool written in Scala, which allows it to perform simulations on many platforms. At the end of emulation, Gatling reports on metrics like active user numbers & response times automatically.
  • 10. Integration testing Tools for performing integration testing examples : an end-to-end, open-source distributed tracing tool that checks and troubleshoots microservices-centric systems. With tracking services across the software's operations environ, it can carry out root-cause scrutiny, examine key service dependencies and discover areas for optimizing performance. an automated, open-source API communication simulation tool that assists with integration tests. The user can test how APIs react to precise events, like rate limits and latency in the network. It also runs test calls between microservices by emulating communications and then records responses and requests in proxy mode to confirm they work as expected.
  • 11. Integration testing Tools for performing integration testing examples : contract test tool that monitors HTTP and message interactions to make sure apps are functioning in a consumer-driven contract manner. a monitoring solution that monitors resource use for apps or microservices deployed on Amazon Web Services. Thus, it can be a helpful tool if you wish to execute load tests for microservices. Grafana is a free metric visualization & analytics suite. One can use it to visualize time series data to notice how your microservices react under real-time traffic.
  • 12. End To End Testing End-to-End testing verifies that the entire process flows work correctly, including all service and DB integration. Thorough testing operations that affect multiple services ensures that the system works together as a whole and satisfies all requirements. Frameworks like JBehave help automate. Functional testing by taking user stories and verifying that the system behaves as expected.
  • 13. End To End Testing testRigor Avo Assure BugBug Mabl Selenium WebDriver Testcafe Nightwatch Autify Endtest
  • 14. UI/Functional Testing User interface testing is the testing of the highest order as it tests the system as an end-user would use it. Testing of this level must feel like a user trying to interact with the system. All the databases, interfaces, internal and third-party services must work together seamlessly to produce the expected results.
  • 15. Lab