Paper work

How to use Package deployer tool to deploy packages for dynamics 365

Reading Time: 3 minutes

If you are a developer then you must know what is use of package solutions into dynamics. A package solution contains entities, fields, plugins, your application logic code and etc elements. Sometimes we need more than one package to ship to our customers for their functional dependency. Package deployer tool helps to create a single package that can contain multiple packages, master data files, code, and able to contains almost most of the required elements to create a single package on which we can show custom Html to describe details about the package.

 

We can download the Package Deployer using PowerShell from below link

https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/download-tools-nuget

For creating package using visual studio we need package deployer template you can download it from below site

https://marketplace.visualstudio.com/items?itemName=DynamicsCRMPG.MicrosoftDynamicsCRMSDKTemplates

Run the CRMSDKTemplates.vsix to install the template for your visual studio.

After successful installation, create a new project of type CRM Package

New project window

In solution we have PkgFolder, Inside it we have:

Content -folder in which we can configure wizard’s html page to show information regarding package and company.

ImportConfig.xml – Configuration file for mapping data files and solutions.

Here we need to place our configdata and record files as well.

Below is the screenshot:

how to create package in package deployer

To create the data file use configuration migration tool of CRM SDK.

Update ImportConfig.xml by mentioned your files. Place the solution which you like to ship.

Update Html according to your needs.

Now Create one folder and place all the code which you found inside PackageDeployment tool.

Build the solution and copy PkgFolder and dll of the project and paste into newly created folder which has PackageDeployement files

shows package folder file

Run PackageDeployer, add your orgainization credentials and you will get the deployer wizard as below

MY EMS package tool setup wwindow
Ready to install MY EMS package tool page
Reading to MY EMS package installer configuration
executing install actions
executing install actions checklist
installation complete image
Microsoft CRM Reporting

How to optimize automation using Azure DevOps

Reading Time: 3 minutes

In this blog, we are discussing a feature of DevOps by which we can optimize automation. Manual testing is out fashioned yet it is still important but if we work on big projects we always feel the testing phase should be performed rapidly. Here at moreYeahs we are optimizing automation using DevOps.

We are using selenium to do automation for testing of the dynamics CRM project. Using the .net Unit test project we created test cases. Under the TestClasses, we defined TestMethod which is basically test cases. Test Classes categories type of test. For best practice, we should always have some basic test cases which need to be performed each time we create a new build to do further development.

Before doing all these we need to write test cases that contain test steps. Test Steps describe the execution steps and expected results that are documented against each one of those steps. Each step is marked pass or fail based on the comparison result between the expected and actual outcomes.

basic step test

Save test case and copy its id.

Now we need to associate this test to our unit project for it we need to place code on the repository. From the test explorer, we need to associate the test as below.

Save test case and copy its id.
From the test explorer, we need to associate the test as below.

You need to add the ID of the test case created in azure DevOps’s test case.

You need to add the ID of the test case created in azure DevOps’s test case.

You got the link of a test case in ID column which directly opens into azure DevOps.

Here we are ready enough to use one of the most useful features of DevOps which provide true automation. Azure Pipelines is a cloud service that you can use to automatically build and test your code project and make it available to other users. It works with just about any language or project type. Azure Pipelines combines continuous integration (CI) and continuous delivery (CD) to constantly and consistently test and build your code and ship it to any target. Azure Pipeline is its self topic which I will cover on the next blog. Here I would like to discuss the pipeline that will automate the test cases.

Before creating a pipeline we need to create a configuration of test plan in Azure DevOps. The configuration is a platform on which the test code will run. Like which OS to use, which browser to use, etc. All these definitions provided in the configuration.

You got the link of a test case in ID column which directly opens into azure DevOps.

We need to assign a configuration to test suits so suits will use configuration to run its test cases.

The configuration platform

Now we are good to use pipeline’s vsTest task add it into a pipeline and configure it below.

Select test plan from the dropdown, select test suits, select test configuration.

check Test mix contains UI test as it is automation we need to check this.

Save and queue the pipeline and run it

Save and queue the pipeline and run it. you can see real-time logs as tasks are running.

We can get a summary of test cases also we can get logs of fail test cases.

We can get a summary of test cases also we can get logs of fail test cases. All these features going to provide ease in the development process and help develop more effective softwares.

Person using laptop

Project Development + Azure DevOps = Happy Developers

Reading Time: 3 minutes

AZURE DEVOPS IN ACTION

WHAT IS AZURE DEVOPS?

Azure DevOps having a bunch of tools for developing and deploying end-to-end software. It has a very efficient capability to integrate with various leading tools used in software development. We don’t need to worry about language, a platform it supports most of it and provides you the ease of managing software development.

 

HOW AZURE DEVOPS CAN HELP?

  • Azure Boards:
    You have to accept that while working on the project your team need various tool to manage their work items. Azure Board going to provide your team bunch of tools and services that manage the work for your software projects. With integrated reporting, customizable dashboard, managing your scrums meeting.
Fabrikam Fiber Board

Azure Pipelines:
This is the most exciting feature when it is an action that gives us the power to automatically build and test your project and provide it to other users as well. It flexible for any language or project type.
Azure Pipelines combines continuous integration (CI) and continuous delivery (CD) to constantly and consistently test and build your code and ship it to any target.

CI/CD Pipline
  • Azure Repos:
    Manage your code with version control tools provides you trackability on every check-in check-out. Working as a team we always need version control for a project code. Its always good practice to implement it.Azure Repos provides two types of version control: 1)Git: distributed version control 2)Team Foundation Version Control (TFVC): centralized version control
  • Azure Artifacts:
    With Azure Artifacts you can create and share Maven, npm, and NuGet package feeds from public and private sources with teams of any size. You can add fully integrated package management to your continuous integration/continuous delivery (CI/CD) pipelines with a single click.
Azure Artifact
  • Azure Test Plans:
    Quality is a vital aspect of software systems, and manual testing and exploratory testing continue to be an important technique for maximizing this. In today’s software development processes, everybody in the team owns quality – including developers, managers, product owners, user experience advocates, and more.Azure DevOps and TFS provide rich and powerful tools everyone in the team can use to drive quality and collaboration throughout the development process. The easy-to-use, browser-based test management solution provides all the capabilities required for planned manual testing, user acceptance testing, exploratory testing, and gathering feedback from stakeholders.
Test Plan - Web Team
IN THE UPCOMING BLOG, I WILL DESCRIBE OUR USER STORY OF HOW AZURE DEVOPS HELPS US IN PROJECT DEVELOPMENT, AUTOMATING TESTING AND MANAGING WORK ITEMS. STAY TUNED AND ☮