Getting Started

To start using the xRM Test Framework, you basically have two options:
  1. Install Visual Studio Extension: it enables several templates and configure the required assembly references. This is specially recommended if you are starting from scratch and you don't have yet any test project.
  2. Add the Xrm.Framework.Test assembly to your existing test project.

Webcasts and Slides

  • Unit Testing Plugins
    • 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 CRM plug-in 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.
  • Unit Testing Custom Workflow Activities
    • 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.
  • Integration Testing Plugins
    • 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.

Creating your first tests

The next section points you to different "How to" test samples. C# code blocks have been included to help you to understand each example easily. These snippets are just part of our Framework Sample solution, whose code has been published and it is part of this project.

Create a Unit Test Project

Create an Integration Test Project

Understanding the xRM Test Framework

This section contains more details about how this test framework has been developed and its implementation behind the scene.
  • Test Types: class diagram with the base class hierarchy

Last edited Aug 27, 2014 at 6:07 PM by rtebar, version 41

Comments

No comments yet.