Question 300
An AL extension team encounters the following situation: A new report calculates correct amounts for one customer but breaks when records contain multiple currencies. Which technical principle best explains the relevant risk or failure?
Explanation
Correct Answer
The underlying mechanism is that narrow fixtures can conceal grouping and currency-boundary errors. Therefore the developer should add realistic multicurrency data fixtures and assert each expected group subtotal. Confirm with: The test report reconciles every currency group to its expected source entries.
Incorrect Answers
That reasoning explains the different problem: A test extension cannot invoke a target procedure because it is internal to another app. It does not account for a new report calculates correct amounts for one customer but breaks when records contain multiple currencies. The governing factor is Narrow fixtures can conceal grouping and currency-boundary errors.
This option serves the scenario “A company upgrades its Business Central environment and assumes existing automated tests remain valid without rerunning them”. The underlying mechanism is that platform updates can change behavior at published extension points or dependencies. The present scenario is distinguished by “Narrow fixtures can conceal grouping and currency-boundary errors”.
This alternative addresses the separate case “A team tests an extension using only the happy path and later finds duplicate document handling errors”. The underlying mechanism is that reliable transactions need coverage of rejected conditions and repeated requests. The deciding requirement here is “Narrow fixtures can conceal grouping and currency-boundary errors”.