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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Test automation Dynamics ax 7 with selenium

(0) ShareShare
ReportReport
Posted on by

Hello, I work on the subject of automation tests on dynamics ax 7. So I contact you to ask for help, because in fact I want to use the Selenium tool, and I don't find many supports that will help me, so if you can offer me some documents, tutorials ... I will be very grateful. Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    236,320 Most Valuable Professional on at
    RE: Test automation Dynamics ax 7 with selenium

    Are you aware of the fact that performance tests generated from task guides in AX 7 already use Selenium under the hood? You can utilize the same SDK that Microsoft uses for these tests and build more logic on top of it, instead of using pure Selenium and likely building again pieces that Microsoft has already written.

  • Community Member Profile Picture
    on at
    RE: Test automation Dynamics ax 7 with selenium

    Okay thank you, I'll analyze what you sent.

  • Community Member Profile Picture
    on at
    RE: Test automation Dynamics ax 7 with selenium

    OK ! so please does a framework exist for automated testing built into dynamics 365 ?

  • Martin Dráb Profile Picture
    236,320 Most Valuable Professional on at
    RE: Test automation Dynamics ax 7 with selenium

    Yes, of course. Did you see the link I gave you above?

    And there is also a framework for unit testing.

  • Community Member Profile Picture
    on at
    RE: Test automation Dynamics ax 7 with selenium

    So I'm a student in the 2nd year of master, and I'm in a period of internship, and I just started working on dynamics ax.

    So it's been two months that I'm looking for documentations about, and I didn't do anything concrete, so can you offer me the steps I must follow to make automation on dynamics 365, because I'm really lost.

  • Martin Dráb Profile Picture
    236,320 Most Valuable Professional on at
    RE: Test automation Dynamics ax 7 with selenium

    I'm not sure what you need from us. The steps you're asking for are explained in the document I gave you in my first reply; there is even a video showing the steps. Please take a look at it.

  • Community Member Profile Picture
    on at
    RE: Test automation Dynamics ax 7 with selenium

    Hello,

    I'm working on the tutorial that you recommended, I added the selenium reference to my project, I generated the certificate and modified in the CloudEnvironment.Config file and in wif.config. and afterwards I created the solution. and when I ran the test, these errors are displayed:

    Test Name: Purchase_order_creation
    Test FullName: MS.Dynamics.Performance.Application.TaskRecorder.Purchase_order_creationBase.Purchase_order_creation
    Test Source: C:\PerfSDK\SampleProject\PerfSDKSample\Generated\Purchase_order_creationBase.cs : line 106
    Test Outcome: Failed
    Test Duration: 0:00:00.004458

    Result StackTrace:
    at Microsoft.IdentityModel.SecurityTokenService.X509SigningCredentials..ctor(X509SecurityToken token, SecurityKeyIdentifier ski, String signatureAlgorithm, String digestAlgorithm)
    at Microsoft.IdentityModel.SecurityTokenService.X509SigningCredentials..ctor(X509Certificate2 certificate)
    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.Purchase_order_creationBase.TestSetup() in C:\PerfSDK\SampleProject\PerfSDKSample\Generated\Purchase_order_creationBase.cs:line 45
    Result Message:
    Initialization method MS.Dynamics.Performance.Application.TaskRecorder.Purchase_order_creationBase.TestSetup threw exception. System.TypeInitializationException: System.TypeInitializationException: The type initializer for 'MS.Dynamics.TestTools.CloudCommonTestUtilities.Authentication.UserManagement' threw an exception. ---> System.ArgumentException: ID2057: Cannot construct a X509SigningCredentials instance for a certificate without the private key.
    Parameter name: token.

  • Martin Dráb Profile Picture
    236,320 Most Valuable Professional on at
    RE: Test automation Dynamics ax 7 with selenium

    Didn't you forget to install the certificate?

  • Community Member Profile Picture
    on at
    RE: Test automation Dynamics ax 7 with selenium

    No, I installed it

  • Martin Dráb Profile Picture
    236,320 Most Valuable Professional on at
    RE: Test automation Dynamics ax 7 with selenium

    The error message says that the private key can't be found. Check again that you created and installed it correctly (on all machines where you want to use it), because something is wrong.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans