Notifications
Announcements
No record found.
Hi Axperts,
Looking for inputs on creating unit test cases for Custom data entities using systestframework.
Regards,
Maneendra
Hi,
Do you operate D365FO or AX2012?
Best regards,
Ludwig
What kind of input? Could you please explain what problem do you need to address?
D365FO
Hi Martin,
I am looking for an approach to be followed to create the automated unit test cases using systest framework for Custom data entities.
moved to the d365 community forum
Does it mean that you don't know the unit testing framework at all and you're looking for an introduction, or that you have a problem specific to data entities?
If you know how to use tables in unit tests, you should be able to use data entities as well.
Obviously we can't address your problem unless you tell us what it is.
I have a problem specific to data entities. I don't understand how to create the test cases for dataentity methods.
I followed below docs to understand the systest framework.
docs.microsoft.com/.../testing-validation
Here they are calling the table methods and passing test data. but i doubt that how to code the unit test case for the data entities as entities expect the run time entity context and data source context.
It seems that you mean methods like updateEntityDataSource(), but is it the right level of testing?
Consider two other options:
Maybe you consider the entity being the unit, and you'll test it via its public interface. What you'll call to update data of an entity will be update() method, not updateEntityDataSource().
Or you want to test a specific piece of logic, which will be encapsulated in a method - let's call it method1(). This method will be called from updateEntityDataSource(). But then you want to write a test against method1() and not updateEntityDataSource(), don't you?
Yeah Martin, I am already following the second option. I just want to check any framework available to generate the test methods for the standard entity methods.
Thanks for your inputs Martin.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 451 Most Valuable Professional
André Arnaud de Cal... 428 Super User 2025 Season 2
BillurSamdancioglu 239 Most Valuable Professional