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?
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?
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.
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.
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.
Andrew Butenko Got it. Thanks.
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.
I should cover, I'm trying but getting error.
Daryl LaBar do you have it covered in your Unit Test framework?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156