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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Regression Suite Autom...
Finance forum

Regression Suite Automation Tool

(0) ShareShare
ReportReport
Posted on by

Hi 

Has anyone worked with Regression Suite Automation Tool. 

I am not able to run the tool from my local machine to run the test on environment. I am getting the below error message:

MS.Dynamics.TestTools.CloudCommonTestUtilities.Exceptions.WebAuthenticationException: Failed finding the certificate for minting tokens by thumbprint: XXXXXXXXXXXXX.

Though, if i installed the tools on the server itself and run it, it is working fine. 

Anyone can help, if it is possible to run the test from my local machine? Or how can i solve this out?

Thanks

I have the same question (0)
  • Mea_ Profile Picture
    60,286 on at

    You need to generate self signed certificate, it could be done manually as described in documentation www.microsoft.com/.../details.aspx or using d365tools github.com/.../functions

  • Community Member Profile Picture
    on at

    Thanks for your feedback.

    I created the signature needed described in the manual. But this is not working.

    On my local machine > created a new certificate > toke that thumpprint pasted it as below inside "wif.config" of the server hosting the Dynamics application.

    But still same issue.

    <authority name="CN=127.0.0.1">

    <keys>            

    <add thumbprint="ccbc124d0a119xxxxxxxxxxxxxxxxxxxx841e797" />

    </keys>

    <validIssuers>

    <add name="CN=127.0.0.1" />

    </validIssuers>

    </authority>

  • Jie G Profile Picture
    Microsoft Employee on at

    Hi MO Alawneh,

    In this tutorial, there are properly reasons and solutions for the Certificate thumbprint error in the "Troubleshooting" section

    docs.microsoft.com/.../perfsdk-tutorial

  • Community Member Profile Picture
    on at

    Hi,

    I have done exactly the same steps. But still same issue. Test Case Fails and in VSTS i am getting this error message:

    Status: Test case failed.

    ERROR:

    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: System.TypeInitializationException: The type initializer for 'MS.Dynamics.TestTools.CloudCommonTestUtilities.Authentication.UserManagement' threw an exception. ---> MS.Dynamics.TestTools.CloudCommonTestUtilities.Exceptions.WebAuthenticationException: Failed finding the certificate for minting tokens by thumbprint: 1abcbc9068d88e8e0c4fb501bae5440e06ac059f

    Install the offline certificate or add the thumbprint of a trusted certificate to the CloudEnvironment.config file at: C:\Program Files (x86)\Regression Suite Automation Tool\CloudEnvironment.Config

    at MS.Dynamics.TestTools.CloudCommonTestUtilities.Authentication.SelfMintedTokenAuthenticator.MintToken(String email, String nameId, String identityProvider, String audience, String certThumbprint, Double tokenLifetimeInHours)

    at MS.Dynamics.TestTools.CloudCommonTestUtilities.Authentication.SelfMintedTokenAuthenticator.SignIn()

    at MS.Dynamics.TestTools.CloudCommonTestUtilities.Authentication.AuthenticatorFactory.get_AdminAuthenticatorToken()

    at MS.Dynamics.TestTools.CloudCommonTestUtilities.Authentication.UserManagement.get_Service()

    at MS.Dynamics.TestTools.CloudCommonTestUtilities.Authentication.UserManagement.PopulateAxUsers()

    at MS.Dynamics.TestTools.CloudCommonTestUtilities.Authentication.UserManagement..cctor()

    --- End of inner exception stack trace ---

    at MS.Dynamics.TestTools.CloudCommonTestUtilities.Authentication.UserManagement.get_AdminUser()

    at MS.Dynamics.Performance.Application.TaskRecorder.PO11Base.TestSetup()

    at MS.Dynamics.Performance.Application.TaskRecorder.PO11Base.TestSetup()

    --- End of inner exception stack trace ---

    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

    at Microsoft.Dynamics.RegressionSuite.Loader.ExecuteMethod(String methodName, Object[] parameters) in D:\a\1\s\Business Process Test Tool\TaskRecordingRegressionTool\RegressionSuite\TestRunnerHelper.cs:line 275

    at Microsoft.Dynamics.RegressionSuite.TestRunnerHelper.PlaybackOnlyFromExcel(String excelSource, Int32 playbackIndex, TimeSpan timeout) in D:\a\1\s\Business Process Test Tool\TaskRecordingRegressionTool\RegressionSuite\TestRunnerHelper.cs:line 145

  • Community Member Profile Picture
    on at

    Did you ever find a solution to this? Having same issue following MSFT instructions.

  • SteffenOlesen Profile Picture
    on at

    I am having the exact same issues here.

  • Community Member Profile Picture
    on at

    No... The only way is to install it on same system where AX is installed.

    Otherwise, it will never access the link.

    Though, MS mentioned, you can install it to any machine has internet access.

  • Community Member Profile Picture
    on at

    No... The only way is to install it on same system where AX is installed.

    Otherwise, it will never access the link.

    Though, MS mentioned, you can install it to any machine has internet access

  • Verified answer
    PA-22040759-0 Profile Picture
    6,194 on at

    I see that you have "pasted" the thumbprint into wif.config. There's is a problem with copy-n-paste from the certificated dialog. The dialog is unicode enabled and that doesn't work very well when pasting the value.

    You can use a command prompt to list a thumbprint that is suitable for copy-n-paste.

    Use "certutil -store my" for the machine certificates. The thumbprint can be located in the line that starts with "Cert Hash(sha1)".

    Another workaround is to paste the thumbprint to a new Notepad file, save the txt file, reopen the text file and then copy the thumbprint from there.

    Reference: support.microsoft.com/.../certificate-thumbprint-displayed-in-mmc-certificate-snap-in-has-extra

  • Verified answer
    eone Profile Picture
    40 on at

    Just ran in to the same issue myself.

    The solution for me was:

    1. Generate new certificates:
      • makecert -n "CN=127.0.0.1" -ss Root -sr LocalMachine -a sha256 -len 2048 -cy end -r -eku 1.3.6.1.5.5.7.3.1 -sv c:\temp\authcert.pvk c:\temp\authcert.cer
      • pvk2pfx -pvk c:\temp\authCert.pvk -spc c:\temp\authcert.cer -pfx c:\temp\authcert.pfx
    2. Install the pfx on the computer where you run the tool under localmachine\my
    3. Get the certificate thumbprint by running the following PS command:
      • get-childitem cert:\localmachine\my
    4. Update/add the new thumbprint in the wif.config and restart IIS also make sure you update thumbprint in your settings for the tool.

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans