Hi Everyone,
I was using executeMultipleRequest to Execute multiple requests at the same time in my plugin. Now I just want to write my Unit test cases to cover my plugin code.
Did anyone worked on executeMultipleRequest in unit test Cases?
Daryl LaBar do you have it covered in your Unit Test framework?
I should cover, I'm trying but getting error.
Sreekanth, Daryl, who I referred in my reply created on of UnitTesting frameworks for Plugins so I asked him to join the thread and reply if he has covered it in his framework.
Andrew Butenko Got it. Thanks.
Stop it. Stop it right now. Don't ever use MS Fakes for the IOrganizationService. It's horrible.
Here is a video of me explaining how to do it for the RetrieveMultiple Request using fakes, and how to do it with FakeXrmEasy, and my framework XrmUnitTest.
youtu.be/dRz1X6pdsk4
Hi Daryl LaBar, I agree with you, but I can't use FakeXrmEasy. I should only use MS Fakes and there is no alternative for me.
Anyhow thanks for your prompt reply.
Kind regards,
Sreekanth.
I'd argue with you on the "but I can't" part.
That video I gave shows how to use MS Fakes to fake out the RetrieveMulitpleRequest, and you'd basically follow the same method for the executeMultipleRequest. You'd have to Fake out the Execute, and then check for the request to be an ExecuteMultipleRequest, and have it return an ExeucteMultipleResponse.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Rishabh Kanaskar 258
MVP-Daniyal Khaleel 179
Tom_Gioielli 127 Super User 2025 Season 2