Automated Testing for Dynamics CRM Integration Testing Custom Workflow Activities Wael Hamze Ramón Tébar
@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
@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
@CRMUG Automated Testing Series 1.Unit Testing Plug-ins in Dynamics CRM Unit Testing Custom Workflow Activities in Dynamics CRM Integration Testing Plug-Ins in Dynamics CRM Integration Testing Custom Workflow Activities in Dynamics CRM 2013 [ Wednesday, August 27 ]
@CRMUG Automated Testing Series 4. Integration Testing Custom Workflow Activities in Dynamics CRM 2013 This session will focus on how to write Integration Tests for your CRM Processes using the concepts from the previous session. We will show you how to test custom workflow activities using CRM Workflows and Custom Actions. This session will also introduce you to the xRM Test Framework and show how you can speed up the creation of your tests. Finally you will see how you can execute these integration tests as part of your builds.
@CRMUG Integration Testing Dependency 1 Component Dependency 2 Integration Tests Dependency 3
@CRMUG CWA using Workflows Integration Test Integration Test Workflow Inputs Workflow Activity Assert PassFail Trigger Check Status More verify
@CRMUG
xRM Test Framework
@CRMUG Demo CWA using Workflows
@CRMUG CWA using Actions Integration Test Integration Test Action Inputs Workflow Activity Assert PassFail Action Request Message Input Parameters ( Input Parameters ) Verify Output Action Response Message Output Parameters ( Output Parameters )
@CRMUG
Demo CWA using Actions
@CRMUG When to Run your Tests? Run your Tests before you Check-In locally Run your Tests as part of your Build Consider using Gated Check-In Builds
@CRMUG 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
@CRMUG Continuous Integration Create Automated Builds – Package CRM Components – Deploy CRM Components to Stage Environment – Run your Automated Test s to ensure quality – Release to next Environment
@CRMUG Demo Continuous Integration
@CRMUG Conclusion Test as early as possible Automate as much as you can Use xRM Test Framework for improved productivity Implement Continuous Integration Manual UI Load Performance Integration Unit
@CRMUG Wael Hamze Ramón Tébar We want to know
@CRMUG Thank YOU for attending! Wael Hamze Ramón Tébar 1. Unit Testing Plug-ins in Dynamics CRM Unit Testing Custom Workflow Activities in Dynamics CRM Integration Testing Plug-Ins in Dynamics CRM Integration Testing Custom Workflow Activities in Dynamics CRM 2013