Mule 4 - Create MUnit Test Cases using MUnit Test Recorder feature | MUnits for Error Scenarios
Вставка
- Опубліковано 5 гру 2020
- This video shows full coverage on creating MUnit Test cases using the MUnit test recorder feature. We all know that we cannot create Munit Test cases for error scenarios with the help of the MUnit Test recorder feature. But I have shown you a small trick on how to achieve that as well!
If you are interested to learn MuleSoft? Or wanted to suggest to anyone?
Here are full series of lectures for MuleSoft for Beginners :
Session 1 Recording:
lnkd.in/dpUNdp7
Session 2 Recording:
lnkd.in/dEeNVPt
Session 3 Recording :
lnkd.in/dXeBe9K
Session 4 Recording :
lnkd.in/d_Wtt5f
Session 5 Recording:
lnkd.in/dHmgH-h
Session 6 recording :
lnkd.in/dMw32bb
Session 7 recording :
lnkd.in/g3Mh5YJ
Session 8 recording :
lnkd.in/g3Mh5YJ
Session 9 recording :
lnkd.in/dPthXsz
Session 10 recording:
• Session 10: Deploying ...
~-~~-~~~-~~-~
Please watch: "Implement an API using Anypoint Code Builder #ACB @sravanlingam #mule4 #mulesoft #salesforce"
• Implement an API using...
~-~~-~~~-~~-~
Requesting you to do a video on all Munit tools which are required for testing using Munit Record option.
Thanks a lot for creating this amazing content! Really helpful.
My pleasure - @sravanlingam
Well explained!
Thanks Sravan sir your videos helping us lot
Ma maaan! as always, THE BEST.
Thank you, great explanation
Thank You ☺️☺️
very nice way of explanation tq.
very helpful . thankyou
Wonderful explanation, it helped a lot, than you sir..
This was much helpful .Great👍😊
Fantastic @sravan doing excellent job, no words to say.....
Easily we can understand. Very Good.
Thank you
really good video! Thanks for sharing
U made MUnit easy
Not me 😃 MULE made it easy
@@MuleSoftTechZone 😂 u portrayed it in a easy way
is it possible to convert a mule subflow into a connector?
Thans for the content but one doubt over here, if we are testing our flows through postman and we are able to debug and check the results in studio, then why we need this munit testing? Is there any significance for this?
Explained well !!
Have questions
1. I hv multiple flow reference in one flow can it be tested at once ?
2. If i am trying to stop recording its keep on showing me a disable button " stopping recording " and its not enabling start recording. Is there a fix on that?
3. What should be the maven configuration under windows 》 prefarences 》maven ?
I m using munit version 2.3.2 and anypoint studio 7.8
Thank you
And
1) yes, test recorder has limitation for flow ref. It will actually mock flow ref rather than going to the flows those are reffered and are to be covered. In such case , normal process of writing Munits saves time than using test recorder
2) stopping recording is a bug I see in later studio version, I faced it too. Only way to overcome is to close and open project. If still exists, restart studio
3) just use mvn clean install
To skip Munits , add -DskipMunitTests
what to do in set variable? what is the values u set in the expression?
if you have system, process, and experience API in a single application how do you run Munit.
Hi. I am not getting the valid response to postman when i record the request. Could you help on this please.
does it work for global error handler too?
Great Tutorial. Really Useful... #mule4 #munit
Glad you liked it!
ohh..god bless u..Sravan n team.. #helpful!!
Good explanation, suppose if application contains any vm arguments ${mule.env} to deploy app in local this type of cases how to do handle in test recorder?.
Pass in VM arguments
Nice video!!
I have a mule api with domain project and has runtime properties, tried recording but it's not deploying. On local the API is working fine but with error it's not deploying.
Error is something like ${mule.env} not found. I tried giving the property in configuration but still same error. Any hint???
Did u configure the "configuration" element?
@@MuleSoftTechZone yes I have added the Global property to config. Can we please connect?
@@scbharde While giving Run configurations left side there is munit tab there also u should give the run properties
Mule palsette is not showing could u plz guide me
In mule 4 we have to write m unit test cases like in java j unit test cases
Yes
Please share source code