官术网_书友最值得收藏!

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]
  • Codeunit 134012 - ERM Reminder Apply Unapply:
    • OnRun:
      • [FEATURE] [Reminder] [Sales]
    • [Test] PROCEDURE CustomerLedgerEntryFactboxReminderPage:
      • [FEATURE] [UI]

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).

At this very moment, the standard test suite objects are to be found in the following ID ranges:
134000 to 139999: w1 tests
144000 to 149999: local tests
主站蜘蛛池模板: 彩票| 大方县| 新营市| 龙口市| 东平县| 丰镇市| 玛沁县| 盐源县| 河南省| 霍州市| 诸暨市| 娱乐| 阳山县| 延庆县| 江永县| 浙江省| 尼玛县| 柘城县| 马公市| 清水河县| 廉江市| 巨鹿县| 潼南县| 清河县| 东阿县| 饶阳县| 抚州市| 蓬安县| 边坝县| 泸州市| 城口县| 陕西省| 三河市| 灵武市| 天津市| 固原市| 泸水县| 潼关县| 宁津县| 滕州市| 吉隆县|