Presentation is loading. Please wait.

Presentation is loading. Please wait.

Automated Testing for Dynamics CRM

Similar presentations


Presentation on theme: "Automated Testing for Dynamics CRM"— Presentation transcript:

1 Automated Testing for Dynamics CRM
Wael Hamze Ramon Tebar Automated Testing for Dynamics CRM Unit Testing Plug-Ins

2 Wael Hamze Solution Architect working for the CRM Centre of Excellence at Barclays in London Specializes in Dynamics CRM, Application Lifecycle Management & Microsoft Technology Stack @WaelHamze

3 Ramon Tebar Solution Architect working for Metro Bank in London
Design & Development of Dynamics CRM Solutions and related technologies Over 5 Years Experience with Dynamics CRM ( ) & Microsoft Technology Stack Microsoft CRM MVP

4 Automated Testing Series
Unit Testing Plug-ins in Dynamics CRM 2013 Unit Testing Custom Workflow Activities in Dynamics CRM 2013 [Wednesday, July 8] Integration Testing Plug-Ins in Dynamics CRM 2013 [Tuesday, July 29] Integration Testing Custom Workflow Activities in Dynamics CRM 2013 [Wednesday, August 27]

5 Automated Testing Series
Unit Testing Plug-ins in Dynamics CRM 2013 This session will provide you with an Introduction to Unit Testing concepts and best practices. You will learn how to apply this to fake the Dynamics CRM plug-in runtime to unit test Dynamics CRM plug-ins using Microsoft Fakes. This session will also introduce you to the xRM Test Framework and show how you can speed up the creation of your tests.

6 Unit Testing Mock 1 Mock 2 Component Unit Tests Dependency 1

7 Write Testable Code: Dependency Injection
Plugin CRM Service Provider Uses CRM Platform CRM Service Provider Creates Creates Implements Plugin IServiceProvider Uses

8 Microsoft Fakes Framework for isolating code under test released with .NET 4.5 Create Mock object implementations for the required interfaces (Stub) and classes (Shim) Mock any properties and methods by creating standard .NET delegates Invoke the Mocked properties and methods as part of your Unit Test

9 How to use Microsoft Fakes
Demo How to use Microsoft Fakes

10 Plug-In Testing Sequence
Unit Test StubIServiceProvider Plugin Create Setup Mocks Create Execute Call Verify / Assert

11 How to test a plugin using Microsoft Fakes
Demo How to test a plugin using Microsoft Fakes

12 Unit Testing Comments It is definitely Possible
It is definitely Helpful Too much effort using standard approach

13 xRM Test Framework

14 How to test a plugin using xRM Test Framework
Demo How to test a plugin using xRM Test Framework

15 Why Write Unit Tests? Validate all components work on their own
Ability to Test Plug-ins & Custom Workflow Activities without CRM Environment Ability to Test without Deployment Tests run much quicker Detect bugs very early and fix quickly Debug locally with Visual Studio

16 Thank YOU for attending!
Wael Hamze Ramon Tebar Thank YOU for attending! Unit Testing Plug-ins in Dynamics CRM 2013 Unit Testing Custom Workflow Activities in Dynamics CRM 2013 [Next! - Wednesday, July 8] Integration Testing Plug-Ins in Dynamics CRM 2013 [Tuesday, July 29] Integration Testing Customer Workflow Activities in Dynamics CRM 2013 [Wednesday, August 27]

17 Automated Testing Series
2. Unit Testing Custom Workflow Activities in Dynamics CRM 2013 This session will focus on using the Unit Testing concepts from the previous session and show you how you can apply that to test custom workflow activities using Moq. This session will also introduce you to the xRM Test Framework and show you how you can speed up the creation of your tests. Finally you will see how you can execute these unit tests as part of your builds.


Download ppt "Automated Testing for Dynamics CRM"

Similar presentations


Ads by Google