Skip to content

Getting Started

TYLEROL edited this page May 15, 2018 · 4 revisions

Getting Started with EasyRepro

This page is designed to help setup EasyRepro using Visual Studio 2017. Once setup is complete within Visual Studio, the remaining steps will provide guidance to execute a sample test. For more detailed scenarios, see the Walkthrough Examples page

Prerequisites

  • Visual Studio 2015 or 2017
  • Supported Operating System (Windows 7 / 8 / 8.1 / 10 or Windows Server 2008 / 2008 R2 / 2012 / 2012 R2)
  • Supported Dynamics Organization (8.1.X / 8.2.X / 9.0.X)
  • Chrome Browser

Clone the EasyRepro repository to Visual Studio

  1. Navigate to the GitHub Microsoft/EasyRepro library

  2. Click on the Clone or Download button

  3. Choose the Clone with HTTPS option

    1. Copy the Git web URL (https://github.com/Microsoft/EasyRepro.git)
    • Clone with HTTPS

    Note: Alternative options available are Open in Desktop (GitHub Desktop), Download ZIP, or Open in Visual Studio

  4. Open Visual Studio

    1. From the menu bar, click on Team
    2. Click Manage Connections
    • Clone with HTTPS
    1. In Team Explorer, under Local Git Repositories, select Clone
    2. Enter the URL of the Git repo from Step 3.1
    3. Choose a local folder to store the Repo and click Clone
    • Clone with HTTPS
    1. Wait for the clone process to finish
    • Clone with HTTPS
  5. In Solution Explorer, click on the Solutions and Folders button, then select the UIAutomation.sln solution

    1. Wait for the solution to finish loading

Executing a Sample Test

  1. From Solution Explorer, expand the Microsoft.Dynamics365.UIAutomation.Sample project

    • Clone with HTTPS
  2. Open the app.config file and input the following details for accessing the desired Dynamics 365 org

    • Clone with HTTPS
    1. OnlineUsername
    2. OnlinePassword
    3. OnlineCrmUrl
  3. In Solution Explorer, right-click on Solution 'UIAutomation' and select Build Solution

    • Clone with HTTPS
  4. From the menu bar, click Test, click Windows, then click Test Explorer

    • Clone with HTTPS
  5. From Test Explorer, select the test WEBTestCreateNewAccount

    1. Right-click and choose Run Selected Tests
    • Clone with HTTPS
  6. Congratulations! You've successfully created an Account record in Dynamics 365 using the Automation APIs

    • Clone with HTTPS