- Automated Testing in Microsoft Dynamics 365 Business Central
- Luc van Vugt
- 309字
- 2021-06-24 14:56:53
Categorization by FEATURE
By inspecting the names of the standard test codeunits, we got an impression of what kind of tests this collateral is made. Microsoft, however, has a better structured categorization, which so far, due to low priority, hasn't been explicitly shared with the outside world. Now that automated testing is being picked up more and more, it's pressing on Microsoft to put this on higher priority. But for now, we can access it already inside most of the test codeunits. You need to look for the FEATURE tag. This tag is part of the Acceptance Test-Driven Development (ATDD) test case design pattern, which we will be discussing later in Chapter 4, Test Design. Using the [FEATURE] tag, Microsoft categorizes their test codeunits and, in some cases, individual test functions. Note that this tagging is far from complete as not all test codeunits have it, yet.
Have a look at the (partial) abstract of the following codeunits:
- Codeunit 134000 - ERM Apply Sales/Receivables:
- OnRun:
- [FEATURE] [Sales]
- [Test] PROCEDURE VerifyAmountApplToExtDocNoWhenSetValue:
- [FEATURE] [Application] [Cash Receipt]
- [Test] PROCEDURE PmtJnlApplToInvWithNoDimDiscountAndDefDimErr:
- [FEATURE] [Dimension] [Payment Discount]
- OnRun:
- Codeunit 134012 - ERM Reminder Apply Unapply:
- OnRun:
- [FEATURE] [Reminder] [Sales]
- [Test] PROCEDURE CustomerLedgerEntryFactboxReminderPage:
- [FEATURE] [UI]
- OnRun:
In later chapters, we will look in more detail at various standard test functions. You will see how to take them as examples for your own test writing (Chapter 4, Test Design, Chapter 5, From Customer Wish to Test Automation - The Basics, Chapter 6, From Customer Wish to Test Automation - Next Level, and Chapter 7, From Customer Wish to Test Automation - And Some More), and how to get them to run on your own solution (Chapter 9, Getting Business Central Standard Tests Working on Your Code).
134000 to 139999: w1 tests
144000 to 149999: local tests
- 餐廳員工培訓(xùn)大全(第3版)
- 榕樹型企業(yè):設(shè)計(jì)和復(fù)制組織基因
- 商業(yè)的核心:新時(shí)代的企業(yè)經(jīng)營原則
- 滾雪球II——福特:商業(yè)的秘密
- 邏輯突圍
- 副職領(lǐng)導(dǎo)手冊(cè)
- 企業(yè)信息安全管理:從0到1
- HR說,讓招聘沖出重圍
- 保羅·麥爾分享成功的智慧
- 六項(xiàng)精進(jìn)實(shí)踐(珍藏版)
- 管理的常識(shí):讓管理發(fā)揮績效的7個(gè)基本概念
- 世界500強(qiáng)企業(yè)培訓(xùn)(大全集)(超值典藏版)
- CSR3.0與可持續(xù)創(chuàng)新創(chuàng)業(yè)
- 發(fā)現(xiàn)商業(yè)模式
- 基于知識(shí)結(jié)構(gòu)演化分析的創(chuàng)業(yè)導(dǎo)向?qū)?chuàng)業(yè)績效的影響機(jī)制研究