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 :
Small and medium business | Business Central, N...
Answered

Saving data after running test code unit from test tool page

(0) ShareShare
ReportReport
Posted on by 115

Hi,
Can anyone help how can I save data after test function execution from test tool page?
I have tried the,

 [TransactionModel(TransactionModel::AutoCommit)] property by writing it above a test function but its not saving the data.
Is there any other way or i'm doing it wrong ?
thanks 

I have the same question (0)
  • faran1 Profile Picture
    115 on at
    RE: Saving data after running test code unit from test tool page

    thanks Daniel.

    Can you look at this thread and tell how one can test notifications through automated testing?

    community.dynamics.com/.../automated-testing-of-notifications

    thanks.

  • Verified answer
    Daniel Rimmelzwaan Profile Picture
    3,485 on at
    RE: Saving data after running test code unit from test tool page

    Whether data is saved is defined in the TestIsolation property of the TestRunner codeunit. If you want to save the data that is created in the test, you set the TestIsolation to Disabled, or just leave the property out altogether.

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 > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,132

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,615

#3
Sumit Singh Profile Picture

Sumit Singh 2,912

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans