Presentation is loading. Please wait.

Presentation is loading. Please wait.

Automated Testing for Dynamics CRM Unit Testing Custom Workflow Activities Wael Hamze Ramón Tébar.

Similar presentations


Presentation on theme: "Automated Testing for Dynamics CRM Unit Testing Custom Workflow Activities Wael Hamze Ramón Tébar."— Presentation transcript:

1 Automated Testing for Dynamics CRM Unit Testing Custom Workflow Activities Wael Hamze Ramón Tébar

2 @CRMUG 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  http://www.linkedin.com/in/waelhamze  http://www.waelhamze.com

3 @CRMUG Ramón Tébar  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 CRM MVP  @RamonTebar  http://www.linkedin.com/in/ramontebar  http://www.ramontebar.com

4 @CRMUG Automated Testing Series 1.Unit Testing Plug-ins in Dynamics CRM 2013 2. Unit Testing Custom Workflow Activities in Dynamics CRM 2013 [ Tuesday, July 8 ] 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]

5 @CRMUG 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.  Breaking limitations: Shims  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.

6 @CRMUG CRM Workflow Runtime Process Custom Workflow Activity Sync. Workflows Async. Workflows Dialogs Custom Actions

7 @CRMUG Unit TestMock Workflow Runtime Create Setup Mocks Create + Inputs Create + Inject Activity + Extensions Execute Workflow Activity Invoke Call Verify Outputs

8 @CRMUG Demo Our first test https://xrmtestframework.codeplex.com

9 @CRMUG  It is definitely Possible  It is definitely Helpful  Too much effort using standard approach Unit Testing Comments

10 @CRMUG xRM Test Framework

11 @CRMUG Demo Now using Xrm Test Framework https://xrmtestframework.codeplex.com https://xrmtestframework.codeplex.com

12 @CRMUG Demo Data Driven Test with an External Service Dependency

13 @CRMUG 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

14 @CRMUG When to Run your Tests?  Run your Tests locally before you Check-In  Run your Tests as part of your Build  Consider using Gated Check-In Builds

15 @CRMUG Demo Using your tests: Continuous Integration

16 @CRMUG Thank YOU for attending! Wael Hamze contact@waelhamze.com Ramón Tébar contact@ramontebar.com 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 [Next! - Tuesday, July 29] 4.Integration Testing Customer Workflow Activities in Dynamics CRM 2013 [Wednesday, August 27]

17 @CRMUG 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.


Download ppt "Automated Testing for Dynamics CRM Unit Testing Custom Workflow Activities Wael Hamze Ramón Tébar."

Similar presentations


Ads by Google