Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
Now that OneVersion is here and providing us with so many benefits, it’s also safe to say that the update cadence is presenting many customers and partners with a nice challenge to test every update in a timely fashion. Regression testing is now more than ever a crucial recurring activity with every update. Luckily, we have the Regression Suite Automation Tool (RSAT) to help us to do that. Using the Task Recorder, we can record user interactions and feed those recordings to the tool. From there we can automatically playback those recordings and perform the necessary validations.
At this point in time, the tool has been adopted by many customers and partners improving overall efficiency of regression testing. But can we take this a step further? The past few weeks I’ve received the following question a number of times: Can we make RSAT an integral part of our DevOps pipelines? The answer of course is yes! And that is exactly what we are going to do: Include RSAT in a build pipeline.
Before we dive in, let’s make things clear. The goal of this article is to show how it can be done. Whether we should do it as a part of the build pipeline is a different discussion. The scenario for this post is to have RSAT executed as the testing part of a build pipeline (Not necessarily a CI build, but think of a build pipeline used before initiating deployment to other environments). Another good scenario is after deployment of a build to a testing environment, run the RSAT as a test cycle on that environment.
Currently we are using the build VM to host our build agent so we can leverage that VM to install and configure RSAT. We will also need some scripts to automate RSAT execution and pass the testing results back to the pipeline. These scripts can be found at the bottom of this article. The installation of RSAT itself is described very well in the documentation that comes with the tool so at this point it is assumed you have RSAT configured and can run the tool on the build machine.
Perform the following steps on the build machine to prepare it for running RSAT: (Any needed scripts will be in the links later in this post)
For our scenario here, we are using a new Pipeline with only one step to run RSAT. To put it in the Dynamics 365 For Finance And Operations build pipeline it is exactly the same step.
Now first go to the Options tab page and add a Demand to make sure only agents are selected that have the DynamicsRSATFolder environment variable. Also add this demand to the existing build pipeline if you are running RSAT in there.
Then go back to the tasks page and add a PowerShell task with the following parameters:
So let’s take a look at how this looks like during pipeline execution.
Marked in red is the actual output you would get from the ConsoleApp.exe executable. The area marked in blue is where we parse the actual results from the log files. In case of errors, the build will fail.
That’s it, all done!
Business Applications communities