Now Available in Community - New TechTalk Videos for 2020
2020 release wave 1 Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 Timeline
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
Looking for inputs on creating unit test cases for Custom data entities using systestframework.
Do you operate D365FO or AX2012?
What kind of input? Could you please explain what problem do you need to address?
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.
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.
Business Applications communities