XrmRealContext #34
Replies: 1 comment 6 replies
-
Hi @victorsolaya , interesting question. Why do you need that method in the XrmRealContext class? It's indeed there, mostly because of being inherited from a common interface but I never used it nor it's documented in that way. What I did find useful sometimes, for troubleshooting, was the GetPluginContextFromSerialisedProfile, which allows you to replay a plugin execution after a serialised, compressed plugin execution context you can get from the plugin profiler. But this wasn't intented for integration testing, mostly to debug a plugin against a target environment to troubleshoot something. As per integration testing, you can always call methods on the IOrganizationService that will make any plugins trigger (i.e. service.Create() will trigger any plugins registered against Create message), that's what I would do for integration testing if needed. Although I mostly heavily rely on unit testing alone along with the new pipeline simulation capability to execute chains of plugin executions In-Memory alone sometimes. |
Beta Was this translation helpful? Give feedback.
-
Hi, I have been playing a little bit with the new 2.1.0 release version, however I have some doubts about the XrmRealContext.
Before in the v1 you could do a xrmRealContext.getDefaultPluginContext(), however that option in the v2 doesnt appear.
How is supposed to work this feature in order to perform IntegrationTesting?
Many thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions