SlideShare a Scribd company logo
1 of 11
Download to read offline
MUnit Testing With Mulesoft-Part I
MUnit Testing With Mulesoft
MUnit is a mule application testing framework which allows you to build
automated tests for your mule integrations and API's. MUnit is very well
integrated with Anypoint Studio.
Various features available with Mule MUnit
 Create and build Mule tests by writing Mule code.
 Create and build Mule tests by writing Java code.
 Verify Message Processor calls.
 Mock Message Processor.
 Mock outbound endpoints.
 Disable outbound endpoints.
 Disable flow inbound connectors.
MUnit Testing With Mulesoft
 Disable inbound endpoints.
 Debug the tests.
 View coverage reports.
 Various asserts available like Assert Equals, Assert Not Equals, Assert
Payload, Assert False, Assert True, Assert Null Payload, Assert Not Null
Payload.
 Spy Message Processor.
MUnit Testing With Mulesoft
First thing you want to make sure MUnit is installed in your Anypoint Studio.
In case, if it is not installed then follow below steps.
Go to Help < Install New Software...
MUnit Testing With Mulesoft
Now, it will open new pop up windows and select MUnit Update Site from
drop down list. Check MUnit and MUnit Tools for Mule.
MUnit Testing With Mulesoft
Now, it will open new pop up windows and select MUnit Update Site from
drop down list. Check MUnit and MUnit Tools for Mule.
Finally, just click Next and accept the license terms and conditions. Click
Finish and it will install MUnit tools in your Anypoint studio.
How to create the MUnit tests for
Mule Flow?
For creating MUnit tests for your application, right click on the flow select
MUnit < Create new MUnit.
How to create the MUnit tests for
Mule Flow?
It will create MUnit tests for the flow and it will be available in folder
src/test/unit.
In Assert Payload, you need to define Expected value and in this case it
will be payload. Also, provide Test failure message , in case if value doesn't
message expected value then it will provide failure message you have
defined.
Run MUnit Tests
For running the MUnit tests, right click in the canvas region of the MUnit test
flow and select Run MUnit suite.
Run MUnit Tests
After running the MUnit suite, it will be provide details like errors, failures if
any, coverage report and test status.
In above image, green color means that your test case has been
successfully executed and passed.
Thank You.

More Related Content

What's hot

MuleSoft ESB Testing Mule Application using MUnit Test Suite
MuleSoft ESB Testing Mule Application using MUnit Test SuiteMuleSoft ESB Testing Mule Application using MUnit Test Suite
MuleSoft ESB Testing Mule Application using MUnit Test Suiteakashdprajapati
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterAutomation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterVijayChowthri Nagaprakasham
 
Load runner & win runner
Load runner & win runnerLoad runner & win runner
Load runner & win runnerHimanshu
 
JUnit and MUnit Set Up In Anypoint Studio
JUnit and MUnit Set Up In Anypoint StudioJUnit and MUnit Set Up In Anypoint Studio
JUnit and MUnit Set Up In Anypoint StudioSudha Ch
 
JMeter vs LoadRunner | Edureka
JMeter vs LoadRunner | EdurekaJMeter vs LoadRunner | Edureka
JMeter vs LoadRunner | EdurekaEdureka!
 
Mule Testing in Mulesfoft 4.X
Mule Testing in Mulesfoft 4.XMule Testing in Mulesfoft 4.X
Mule Testing in Mulesfoft 4.XAmit Singh
 
Debugging mule
Debugging   muleDebugging   mule
Debugging muleSindhu VL
 
Progressive Mobile Test Automation
Progressive Mobile Test AutomationProgressive Mobile Test Automation
Progressive Mobile Test AutomationRakhi Jain Rohatgi
 
QTP&UFT Automation Framework
QTP&UFT Automation FrameworkQTP&UFT Automation Framework
QTP&UFT Automation FrameworkYu Tao Zhang
 
Jack borden jb471909_testflight
Jack borden jb471909_testflightJack borden jb471909_testflight
Jack borden jb471909_testflightjborden33
 
DEPLOYMENT OF CALABASH AUTOMATION FRAMEWORK TO ANALYZE THE PERFORMANCE OF AN ...
DEPLOYMENT OF CALABASH AUTOMATION FRAMEWORK TO ANALYZE THE PERFORMANCE OF AN ...DEPLOYMENT OF CALABASH AUTOMATION FRAMEWORK TO ANALYZE THE PERFORMANCE OF AN ...
DEPLOYMENT OF CALABASH AUTOMATION FRAMEWORK TO ANALYZE THE PERFORMANCE OF AN ...Journal For Research
 
Journey To Excellence
Journey To ExcellenceJourney To Excellence
Journey To ExcellenceWalter Mamed
 
Mule managing cloud hub
Mule  managing cloud hubMule  managing cloud hub
Mule managing cloud hubD.Rajesh Kumar
 
Getting Started with Apache Jmeter
Getting Started with Apache JmeterGetting Started with Apache Jmeter
Getting Started with Apache JmeterMindfire Solutions
 
Performance testing using hp load runner
Performance testing using hp load runnerPerformance testing using hp load runner
Performance testing using hp load runnerReturn on Intelligence
 
Software testing tools
Software testing toolsSoftware testing tools
Software testing toolsGaurav Paliwal
 

What's hot (20)

MuleSoft ESB Testing Mule Application using MUnit Test Suite
MuleSoft ESB Testing Mule Application using MUnit Test SuiteMuleSoft ESB Testing Mule Application using MUnit Test Suite
MuleSoft ESB Testing Mule Application using MUnit Test Suite
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterAutomation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional Tester
 
Automation With A Tool Demo
Automation With A Tool DemoAutomation With A Tool Demo
Automation With A Tool Demo
 
Load runner & win runner
Load runner & win runnerLoad runner & win runner
Load runner & win runner
 
JUnit and MUnit Set Up In Anypoint Studio
JUnit and MUnit Set Up In Anypoint StudioJUnit and MUnit Set Up In Anypoint Studio
JUnit and MUnit Set Up In Anypoint Studio
 
JMeter vs LoadRunner | Edureka
JMeter vs LoadRunner | EdurekaJMeter vs LoadRunner | Edureka
JMeter vs LoadRunner | Edureka
 
Mule Testing in Mulesfoft 4.X
Mule Testing in Mulesfoft 4.XMule Testing in Mulesfoft 4.X
Mule Testing in Mulesfoft 4.X
 
Debugging mule
Debugging   muleDebugging   mule
Debugging mule
 
Automation testing
Automation testingAutomation testing
Automation testing
 
Progressive Mobile Test Automation
Progressive Mobile Test AutomationProgressive Mobile Test Automation
Progressive Mobile Test Automation
 
QTP&UFT Automation Framework
QTP&UFT Automation FrameworkQTP&UFT Automation Framework
QTP&UFT Automation Framework
 
Jack borden jb471909_testflight
Jack borden jb471909_testflightJack borden jb471909_testflight
Jack borden jb471909_testflight
 
DEPLOYMENT OF CALABASH AUTOMATION FRAMEWORK TO ANALYZE THE PERFORMANCE OF AN ...
DEPLOYMENT OF CALABASH AUTOMATION FRAMEWORK TO ANALYZE THE PERFORMANCE OF AN ...DEPLOYMENT OF CALABASH AUTOMATION FRAMEWORK TO ANALYZE THE PERFORMANCE OF AN ...
DEPLOYMENT OF CALABASH AUTOMATION FRAMEWORK TO ANALYZE THE PERFORMANCE OF AN ...
 
Test complete, work done so far
Test complete, work done so farTest complete, work done so far
Test complete, work done so far
 
Software testing tools
Software testing toolsSoftware testing tools
Software testing tools
 
Journey To Excellence
Journey To ExcellenceJourney To Excellence
Journey To Excellence
 
Mule managing cloud hub
Mule  managing cloud hubMule  managing cloud hub
Mule managing cloud hub
 
Getting Started with Apache Jmeter
Getting Started with Apache JmeterGetting Started with Apache Jmeter
Getting Started with Apache Jmeter
 
Performance testing using hp load runner
Performance testing using hp load runnerPerformance testing using hp load runner
Performance testing using hp load runner
 
Software testing tools
Software testing toolsSoftware testing tools
Software testing tools
 

Similar to MUnit Testing With Mulesoft-Part I: Automated Testing Framework

IBM MobileFirst Platform 7.0 POT InApp Feedback V0.1
IBM MobileFirst Platform 7.0 POT InApp Feedback V0.1IBM MobileFirst Platform 7.0 POT InApp Feedback V0.1
IBM MobileFirst Platform 7.0 POT InApp Feedback V0.1Banking at Ho Chi Minh city
 
MUnit - Testing Mule
MUnit - Testing MuleMUnit - Testing Mule
MUnit - Testing MuleShanky Gupta
 
Engineering Student MuleSoft Meetup#4 - API Testing With MuleSoft
Engineering Student MuleSoft Meetup#4 - API Testing With MuleSoftEngineering Student MuleSoft Meetup#4 - API Testing With MuleSoft
Engineering Student MuleSoft Meetup#4 - API Testing With MuleSoftJitendra Bafna
 
An Overview of User Acceptance Testing (UAT)
An Overview of User Acceptance Testing (UAT)An Overview of User Acceptance Testing (UAT)
An Overview of User Acceptance Testing (UAT)Usersnap
 
MuleSoft Meetup Charlotte 2019 - Dec 10
MuleSoft Meetup Charlotte  2019 - Dec 10MuleSoft Meetup Charlotte  2019 - Dec 10
MuleSoft Meetup Charlotte 2019 - Dec 10Subhash Patel
 
IBM MobileFirst Platform v7.0 POT App Mgmt Lab v1.1
IBM MobileFirst Platform  v7.0 POT App Mgmt Lab v1.1IBM MobileFirst Platform  v7.0 POT App Mgmt Lab v1.1
IBM MobileFirst Platform v7.0 POT App Mgmt Lab v1.1Banking at Ho Chi Minh city
 
IBM MobileFirst Platform v7.0 POT Offers Lab v1.0
IBM MobileFirst Platform v7.0 POT Offers Lab v1.0IBM MobileFirst Platform v7.0 POT Offers Lab v1.0
IBM MobileFirst Platform v7.0 POT Offers Lab v1.0Banking at Ho Chi Minh city
 
Convert Postman APIs collections to JMeter
Convert Postman APIs collections to JMeterConvert Postman APIs collections to JMeter
Convert Postman APIs collections to JMeterBasant Dewangan
 
Munit In Mule 4 | Patna MuleSoft Meetup #26
Munit In Mule 4 | Patna MuleSoft Meetup #26Munit In Mule 4 | Patna MuleSoft Meetup #26
Munit In Mule 4 | Patna MuleSoft Meetup #26shyamraj55
 
Case study on testing
Case study on testingCase study on testing
Case study on testingShivani Joshi
 
What is munit and how to create your first unit test
What is munit and how to create your first unit testWhat is munit and how to create your first unit test
What is munit and how to create your first unit testAlexandra N. Martinez
 
Mule debugging
Mule   debuggingMule   debugging
Mule debuggingSindhu VL
 
Mule Meetup Hyderabad - Aug 2020
Mule Meetup Hyderabad - Aug 2020Mule Meetup Hyderabad - Aug 2020
Mule Meetup Hyderabad - Aug 2020Sravan Lingam
 
MuleSoft Surat Meetup#46 - Deep Dive into MUnit With MuleSoft
MuleSoft Surat Meetup#46 - Deep Dive into MUnit With MuleSoftMuleSoft Surat Meetup#46 - Deep Dive into MUnit With MuleSoft
MuleSoft Surat Meetup#46 - Deep Dive into MUnit With MuleSoftJitendra Bafna
 
Vancouver mulesoft meetup_23-july
Vancouver mulesoft meetup_23-julyVancouver mulesoft meetup_23-july
Vancouver mulesoft meetup_23-julyVikalp Bhalia
 
Debugging with MuleSoft Anypoint Studio
Debugging with MuleSoft Anypoint StudioDebugging with MuleSoft Anypoint Studio
Debugging with MuleSoft Anypoint StudioJitendra Bafna
 

Similar to MUnit Testing With Mulesoft-Part I: Automated Testing Framework (20)

Introduction to munit
Introduction to munitIntroduction to munit
Introduction to munit
 
IBM MobileFirst Platform 7.0 POT InApp Feedback V0.1
IBM MobileFirst Platform 7.0 POT InApp Feedback V0.1IBM MobileFirst Platform 7.0 POT InApp Feedback V0.1
IBM MobileFirst Platform 7.0 POT InApp Feedback V0.1
 
MUnit - Testing Mule
MUnit - Testing MuleMUnit - Testing Mule
MUnit - Testing Mule
 
Engineering Student MuleSoft Meetup#4 - API Testing With MuleSoft
Engineering Student MuleSoft Meetup#4 - API Testing With MuleSoftEngineering Student MuleSoft Meetup#4 - API Testing With MuleSoft
Engineering Student MuleSoft Meetup#4 - API Testing With MuleSoft
 
An Overview of User Acceptance Testing (UAT)
An Overview of User Acceptance Testing (UAT)An Overview of User Acceptance Testing (UAT)
An Overview of User Acceptance Testing (UAT)
 
MuleSoft Meetup Charlotte 2019 - Dec 10
MuleSoft Meetup Charlotte  2019 - Dec 10MuleSoft Meetup Charlotte  2019 - Dec 10
MuleSoft Meetup Charlotte 2019 - Dec 10
 
IBM MobileFirst Platform v7.0 POT App Mgmt Lab v1.1
IBM MobileFirst Platform  v7.0 POT App Mgmt Lab v1.1IBM MobileFirst Platform  v7.0 POT App Mgmt Lab v1.1
IBM MobileFirst Platform v7.0 POT App Mgmt Lab v1.1
 
Mule debugging-sample
Mule debugging-sampleMule debugging-sample
Mule debugging-sample
 
Munit
MunitMunit
Munit
 
IBM MobileFirst Platform v7.0 POT Offers Lab v1.0
IBM MobileFirst Platform v7.0 POT Offers Lab v1.0IBM MobileFirst Platform v7.0 POT Offers Lab v1.0
IBM MobileFirst Platform v7.0 POT Offers Lab v1.0
 
Convert Postman APIs collections to JMeter
Convert Postman APIs collections to JMeterConvert Postman APIs collections to JMeter
Convert Postman APIs collections to JMeter
 
Munit In Mule 4 | Patna MuleSoft Meetup #26
Munit In Mule 4 | Patna MuleSoft Meetup #26Munit In Mule 4 | Patna MuleSoft Meetup #26
Munit In Mule 4 | Patna MuleSoft Meetup #26
 
Case study on testing
Case study on testingCase study on testing
Case study on testing
 
What is munit and how to create your first unit test
What is munit and how to create your first unit testWhat is munit and how to create your first unit test
What is munit and how to create your first unit test
 
Mule debugging
Mule   debuggingMule   debugging
Mule debugging
 
Mule Meetup Hyderabad - Aug 2020
Mule Meetup Hyderabad - Aug 2020Mule Meetup Hyderabad - Aug 2020
Mule Meetup Hyderabad - Aug 2020
 
Tmote_invent
Tmote_inventTmote_invent
Tmote_invent
 
MuleSoft Surat Meetup#46 - Deep Dive into MUnit With MuleSoft
MuleSoft Surat Meetup#46 - Deep Dive into MUnit With MuleSoftMuleSoft Surat Meetup#46 - Deep Dive into MUnit With MuleSoft
MuleSoft Surat Meetup#46 - Deep Dive into MUnit With MuleSoft
 
Vancouver mulesoft meetup_23-july
Vancouver mulesoft meetup_23-julyVancouver mulesoft meetup_23-july
Vancouver mulesoft meetup_23-july
 
Debugging with MuleSoft Anypoint Studio
Debugging with MuleSoft Anypoint StudioDebugging with MuleSoft Anypoint Studio
Debugging with MuleSoft Anypoint Studio
 

More from akshay yeluru

Mulesoft anypoint batch processing
Mulesoft anypoint batch processingMulesoft anypoint batch processing
Mulesoft anypoint batch processingakshay yeluru
 
Basics of Mulesoft Anypoint connector
Basics of Mulesoft Anypoint connectorBasics of Mulesoft Anypoint connector
Basics of Mulesoft Anypoint connectorakshay yeluru
 
Transformers in Mulesoft Anypoint
Transformers in Mulesoft AnypointTransformers in Mulesoft Anypoint
Transformers in Mulesoft Anypointakshay yeluru
 
MQ CONNECTOR IN ANYPOINT STUDIO
MQ CONNECTOR IN ANYPOINT STUDIOMQ CONNECTOR IN ANYPOINT STUDIO
MQ CONNECTOR IN ANYPOINT STUDIOakshay yeluru
 
Mulesoft Cloudhub connector
Mulesoft Cloudhub connectorMulesoft Cloudhub connector
Mulesoft Cloudhub connectorakshay yeluru
 
Introduction to mule application
Introduction to mule applicationIntroduction to mule application
Introduction to mule applicationakshay yeluru
 
RAML BASED REST API with Mulesoft anypoint
RAML BASED REST API with Mulesoft anypointRAML BASED REST API with Mulesoft anypoint
RAML BASED REST API with Mulesoft anypointakshay yeluru
 
Mulesoft Aggregator and Spiltter
Mulesoft Aggregator and SpiltterMulesoft Aggregator and Spiltter
Mulesoft Aggregator and Spiltterakshay yeluru
 
Security in mulesoft
Security in mulesoftSecurity in mulesoft
Security in mulesoftakshay yeluru
 
Howtouseforeachcomponent
HowtouseforeachcomponentHowtouseforeachcomponent
Howtouseforeachcomponentakshay yeluru
 
Mulesoftchampionsprogram
MulesoftchampionsprogramMulesoftchampionsprogram
Mulesoftchampionsprogramakshay yeluru
 
Mulesoftmelbasics 150904031330-lva1-app6891
Mulesoftmelbasics 150904031330-lva1-app6891Mulesoftmelbasics 150904031330-lva1-app6891
Mulesoftmelbasics 150904031330-lva1-app6891akshay yeluru
 

More from akshay yeluru (15)

Mulesoft Filters
Mulesoft FiltersMulesoft Filters
Mulesoft Filters
 
Mulesoft anypoint batch processing
Mulesoft anypoint batch processingMulesoft anypoint batch processing
Mulesoft anypoint batch processing
 
Basics of Mulesoft Anypoint connector
Basics of Mulesoft Anypoint connectorBasics of Mulesoft Anypoint connector
Basics of Mulesoft Anypoint connector
 
Transformers in Mulesoft Anypoint
Transformers in Mulesoft AnypointTransformers in Mulesoft Anypoint
Transformers in Mulesoft Anypoint
 
MQ CONNECTOR IN ANYPOINT STUDIO
MQ CONNECTOR IN ANYPOINT STUDIOMQ CONNECTOR IN ANYPOINT STUDIO
MQ CONNECTOR IN ANYPOINT STUDIO
 
Mulesoft Cloudhub connector
Mulesoft Cloudhub connectorMulesoft Cloudhub connector
Mulesoft Cloudhub connector
 
Mulesfot scopes
Mulesfot scopesMulesfot scopes
Mulesfot scopes
 
Introduction to mule application
Introduction to mule applicationIntroduction to mule application
Introduction to mule application
 
RAML BASED REST API with Mulesoft anypoint
RAML BASED REST API with Mulesoft anypointRAML BASED REST API with Mulesoft anypoint
RAML BASED REST API with Mulesoft anypoint
 
Mulesoft Aggregator and Spiltter
Mulesoft Aggregator and SpiltterMulesoft Aggregator and Spiltter
Mulesoft Aggregator and Spiltter
 
Security in mulesoft
Security in mulesoftSecurity in mulesoft
Security in mulesoft
 
Mulesoft Raml APIs
Mulesoft Raml APIsMulesoft Raml APIs
Mulesoft Raml APIs
 
Howtouseforeachcomponent
HowtouseforeachcomponentHowtouseforeachcomponent
Howtouseforeachcomponent
 
Mulesoftchampionsprogram
MulesoftchampionsprogramMulesoftchampionsprogram
Mulesoftchampionsprogram
 
Mulesoftmelbasics 150904031330-lva1-app6891
Mulesoftmelbasics 150904031330-lva1-app6891Mulesoftmelbasics 150904031330-lva1-app6891
Mulesoftmelbasics 150904031330-lva1-app6891
 

Recently uploaded

Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....ShaimaaMohamedGalal
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 

Recently uploaded (20)

Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 

MUnit Testing With Mulesoft-Part I: Automated Testing Framework

  • 1. MUnit Testing With Mulesoft-Part I
  • 2. MUnit Testing With Mulesoft MUnit is a mule application testing framework which allows you to build automated tests for your mule integrations and API's. MUnit is very well integrated with Anypoint Studio. Various features available with Mule MUnit  Create and build Mule tests by writing Mule code.  Create and build Mule tests by writing Java code.  Verify Message Processor calls.  Mock Message Processor.  Mock outbound endpoints.  Disable outbound endpoints.  Disable flow inbound connectors.
  • 3. MUnit Testing With Mulesoft  Disable inbound endpoints.  Debug the tests.  View coverage reports.  Various asserts available like Assert Equals, Assert Not Equals, Assert Payload, Assert False, Assert True, Assert Null Payload, Assert Not Null Payload.  Spy Message Processor.
  • 4. MUnit Testing With Mulesoft First thing you want to make sure MUnit is installed in your Anypoint Studio. In case, if it is not installed then follow below steps. Go to Help < Install New Software...
  • 5. MUnit Testing With Mulesoft Now, it will open new pop up windows and select MUnit Update Site from drop down list. Check MUnit and MUnit Tools for Mule.
  • 6. MUnit Testing With Mulesoft Now, it will open new pop up windows and select MUnit Update Site from drop down list. Check MUnit and MUnit Tools for Mule. Finally, just click Next and accept the license terms and conditions. Click Finish and it will install MUnit tools in your Anypoint studio.
  • 7. How to create the MUnit tests for Mule Flow? For creating MUnit tests for your application, right click on the flow select MUnit < Create new MUnit.
  • 8. How to create the MUnit tests for Mule Flow? It will create MUnit tests for the flow and it will be available in folder src/test/unit. In Assert Payload, you need to define Expected value and in this case it will be payload. Also, provide Test failure message , in case if value doesn't message expected value then it will provide failure message you have defined.
  • 9. Run MUnit Tests For running the MUnit tests, right click in the canvas region of the MUnit test flow and select Run MUnit suite.
  • 10. Run MUnit Tests After running the MUnit suite, it will be provide details like errors, failures if any, coverage report and test status. In above image, green color means that your test case has been successfully executed and passed.