Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

Test framework - queries to database not working - Dyn365FO

$
0
0
For some reason this test, code below, fails when it shouldn't.
The reason is, as you might have guessed, that the Find method doesn't return a record.
But it should because there actually is a record in the DMFDefinitionGroup table that complies with the Find method criteria.
So my question is, how come? Why?
[SysTestMethodAttribute]
    public void testDemo()
    {
        definitionGroupName = "A definition group that actually exists";
        DMFDefinitionGroup definitionGroup;
       
        definitionGroup = DMFDefinitionGroup::find(definitionGroupName);
       
        this.assertNotNull(definitionGroup, strFmt(DefinitionNotCreatedMsg, definitionGroupName));
     }


Viewing all articles
Browse latest Browse all 143529

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>