Automated Testing for Dynamics CRM
Integration Testing Plug-ins
Wael Hamze
Ramón Tébar
@CRMU
Wael Hamze
 Solution Architect
 @WaelHamze
 http://www.linkedin.com/in/waelhamze
@CRMU
Ramon Tebar
 Solution Architect
 Microsoft CRM MVP
 http://www.ramontebar.com
@CRMU
Automated Testing Series
1. Unit Testing Plug-ins in Dynamics CRM 2013
2. Unit Testing Custom Workflow Activities in
Dynamics CRM 2013
3. Integration Testing Plug-Ins in Dynamics
CRM 2013 [Tuesday, July 29]
4. Integration Testing Custom Workflow Activities in
Dynamics CRM 2013 [Wednesday, August 27]
@CRMU
Automated Testing Series
3. Integration Testing Plug-ins in Dynamics CRM
2013
 This session will provide you with an Introduction to Integration
Testing concepts and best practices.
 We will look at the plug-in pipeline and see how you can apply the
concepts to write automated integration tests for both synchronous
and asynchronous plug-ins.
 This session will also introduce you to the xRM Test Framework and
show how you can speed up the creation of your tests.
@CRMU
Integration Testing
Dependency 1
Component
Dependency 2
Integration Tests
Dependency 3
S
c
o
p
e
@CRMU
Plug-insIntegration
Test
Organization
Service
Pre-Validate
Plug-in
Pre-
Operation
Plug-in
Platform
Post-
Operation
Plug-in
Asynchronous
Plug-inDB
Trigger
@CRMU
Testing Stages
 Setup
 Do
 Verify
 Clean up
@CRMU
Demo
Sync
Plug-ins
https://xrmtestframework.codeplex.com
@CRMU
Async Plug-ins
Integration Test Organization Service Async Operation
Trigger (RequestId)
Query Status (RequestId)
Verify
Execute Plugin (RequestId)
Waiting
In Progress
Completed
@CRMU
xRM Test Framework
@CRMU
xRM Test Framework
@CRMU
Demo
Async Plug-in
https://xrmtestframework.codeplex.com
@CRMU
Why Write Integration Tests?
 Make sure Plug-ins & Custom Workflow Activities
work within the CRM Environment
 Make sure Deployment process works
 Create Automated Tests that be re-run to detect
Integration Issues between different components
in the same solution or other solutions

Automated Testing for Dynamics CRM 3 - CRMUG 2014

Editor's Notes