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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Running Integration Tests in D365 Finance - How to define User/Role to use

(0) ShareShare
ReportReport
Posted on by 96

Hi Folks,

I am currently struggling when it comes to run an integration test in Dynamics 365 Finance. My Integration Tests requires the integration of the database and I want to run this integration test automated. So I have installed an Azure Agent on our Integration Stage of D365 Finance. In this stage we have fully valid database with D365 Finance security configured.

So I asked myself this question: Hoow can I setup the agent or my Integration Test to use the right user/role? I have found this article https://www.d365ug.com/axug/blogs/alex-meyer/2019/02/07/automated-role-access-testing-in-d365fo which describes the attribute SysTestSecurityAttribute. The only explanation which I have found for this attribute was here: https://docs.microsoft.com/de-at/archive/blogs/axdevalm/automated-testing-guidance-for-ax-7

So my questions would be:

- Are the test attributes from AX7 still in D365 Finance fully supported?

- Is this specific attribute SysTestSecurityAttribute still supported and this is the way how to set up the security for an Integration Test?

- Installing an Azure Agent on a T1 machine and running their the integration tests, is this a valid approach?

Thank you guys in advance.

Cheers,

Chico

I have the same question (0)
  • ToddB Profile Picture
    on at

    Hi Cihan,

    Were you able to resolve your issue?

    If not, can you please clarify what you are doing?

    NOTE: Connecting directly to the database is not a supported method.

  • Chicinho54 Profile Picture
    96 on at

    Hi,

    the issue is fixed by the fact that the test framework from Dynamics D365 Finance & SCM is using a user which has System Administrator rights. Can you confirm this?

    Best Regards,

    Cihan

  • ToddB Profile Picture
    on at

    Hi Cihan,

    I confirmed you need to use System Admin.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,119 Super User 2025 Season 2 on at

    Hi Cihan,

    As per RSAT version 2.2, you can use non administrator users to perform the tests. This is a huge improvement to verify if the processes are still working correctly with the assigned role.

    Check the documentation: Configure non-administrator users to use the Regression suite automation tool (RSAT) - Finance & Operations | Dynamics 365 | Microsoft Docs

  • Chicinho54 Profile Picture
    96 on at

    Hi André,

    Integration Tests does not mean that you use automatically RSAT. RSAT is just one technology which you can use for Integration Tests.

    My question was for Integration Tests coded in X++. Nevertheless thank you for your time to answer me.

    Kind regards,

    Chico

  • André Arnaud de Calavon Profile Picture
    301,119 Super User 2025 Season 2 on at

    Hi Chico,

    My bad, I think I misinterpreted or misread your question. My reply is indeed not related to your question.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans