web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

RSAT Regression Suite Automation Tool in Microsoft Dynamics 365 Finance and Operations - execution

Rahul Mohta Profile Picture Rahul Mohta 21,032

RSAT Regression Suite Automation Tool in Microsoft Dynamics 365 Finance and Operations - execution

Continuous service updates under Modern Lifecycle Policy and testing rigor using RSAT Regression Suite Automation Tool in Microsoft Dynamics 365 Finance and Operations One version - part III

We need to leverage the user manual for RSAT for completing RSAT installation and configuration which spans installing a certificate, getting thumbprint, installing selenium for your type of browser, etc.

 

Sharing information with visuals :

1) Download latest RSAT from https://www.microsoft.com/en-us/download/details.aspx?id=57357

 

RSAT has to execute as a local admin on the client machine (by design) where RSAT is installed. It is a requirement of the security model we use to authenticate.

Get Windows 10 SDK from https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk

Install below 2 components

  1. Windows SDK Signing Tools for Desktop Apps
  2. Windows SDK for UWP Managed Apps.

pastedimage1574925194699v1.png

 

Important to have certificate generated on the same computer that the test tool is running on.

 

 

generate a certificate file, open a command line window as Administrator and run the following command

from a command window. When you are prompted to enter a private key password, enter None.

 

Create C:\Temp folder if it does not already exist on your computer.

 

On command prompt running as admin : C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\makecert.exe -n "CN=127.0.0.1" -ss My -sr LocalMachine -a sha256 -len 2048 -cy end -r -eku 1.3.6.1.5.5.7.3.1 c:\temp\authCert.cer

pastedimage1574925194700v2.png

After certificate is successfully installed, in details tab copy the thumbprint and take out special characters.

 

add Thumbprint to your wif configuration file with only one command using open source tool

https://github.com/d365collaborative/d365fo.tools/blob/development/docs/Initialize-D365RsatCertificate.md

pastedimage1574925194702v3.png

Ensure the wif.config in AOS service in IIS looks like below

pastedimage1574925194703v4.png

After making changes to AOS wif file and restarting IIS

Thumbprint is an important one and if needed type in manually without special characters.

 

 

 

Tip: Be careful in removing special characters including spaces and then copy the thumbprint.

 

 

Get latest RSAT and install 1.200.28056.8

May 18 2019

https://www.microsoft.com/en-us/download/details.aspx?id=57357

 

 

 

Ensure selenium is installed and configured as per manuals provided in RSAT.

Download Selenium 3.13.1 http://docs.seleniumhq.org/download/ > "Previous Releases" (the top left corner) > 3.13 and download

"selenium-dotnet-strongnamed-3.13.1.zip"

 

Install the Selenium libraries

Unzip the downloaded file.

Unpack the file dist\Selenium.WebDriver.StrongNamed.3.13.1.nupkg (To unpack this file, add the .zip suffix to the file and unzip it).

 

Copy the contents of the folder Selenium.WebDriver.StrongNamed.3.13.1.nupkg\lib to

"C:\Program Files (x86)\Regression Suite Automation Tool\Common\External\Selenium"

 

Download the Internet Explorer driver version 3.4.0 , GO back in the browser, open the 3.4 folder and download "IEDriverServer_x64_3.4.0.zip"

You would get error on execution if this file is NOT copied during run/execution of RSAT

pastedimage1574925194705v5.png

Unzip the downloaded file and move the file IEDriverServer to C:\Program Files (x86)\Regression Suite Automation Tool\Common\External\Selenium

 

 

 

 

RSAT config

Admin user name - needs to be email address of the admin user who deployed D365FO on LCS and thereby admin in D365FO as well

 

 

Below is a visual of configuring RSAT with your LCS project, DevOps and D365FO instance.

pastedimage1574925194705v6.png

Provide the your DevOps URL, access token, Test Plan, hostname (D365FO URL), hostname soap URL and admin user (O365) and test connection.

 

Note the files generated when New button is clicked with option - execution and parameters

pastedimage1574925194706v7.png

Once parameters and execution files are ready, you could RUN/execute the test

pastedimage1574925194708v8.png

Upon Running of test, RSAT would initiate a new IE browser session and using selenium would carry out the test as per the steps in Task recorder and values in parameter file

pastedimage1574925194709v9.png

Note the test result as Passed or failed in RSAT

pastedimage1574925194709v10.png

Also can see the test execution details in DevOps as

pastedimage1574925194709v11.png

Tips

 

If you have an older version of RSAT already installed, close it and uninstall it before you install this new version.

- Remember to regenerate test automation files when you install a new version. Use submenu New->Generate Execution Files only to re-generate execution files only and leave Excel files untouched (no need to regenerate Excel files unless you want to take advantage of some of the new features in the Excel parameter file).

 

 

Many times you may get an error on thumbprint as below where with care remove special characters

pastedimage1574925194710v12.png

Error handling

 

1) All error messages are also available locally under

C:\Users\$YourUserName\AppData\Roaming\regressionTool\errormsg-<TestCaseId>.txt

 

 

2) Review company ID in task recorder to match up with the company setup in RSAT config

 

Get more details from DevOps test run

pastedimage1574925194712v13.png

Note* IIS is on the server that houses the F&O environment. The user will need Admin access to that in order to update the wifconfig file with the thumbprint

Comments

*This post is locked for comments