Question 360
At fictional Keystone Apparel, the Business Central development team is supporting product catalog and fulfillment and reviewing automated testing and diagnostics during a release qualification test (MB820-5.1-161). The observed development issue is that a test checks that a report launches but never confirms its output matches stored document data. Which observed result would most clearly show the intended correction works?
Explanation
Correct Answer
This is the outcome that directly verifies the intended correction: a changed report that omits lines or totals fails the test. The related solution is to assert expected dataset values or generated output with representative fixtures; it is based on the principle that report tests should verify content, not merely execution.
Incorrect Answers
“Multiple tests apply the same business expectation consistently” concerns the alternative task “use shared test helpers and a clear arrange-act-assert structure”, but the stated failure is that a test checks that a report launches but never confirms its output matches stored document data. The required measure is to a changed report that omits lines or totals fails the test.
The proposed “The test fails when the action points to a wrong record despite a visible button” tests a different control: use the appropriate TestPage interaction and assert resulting business state. The reported condition is that a test checks that a report launches but never confirms its output matches stored document data; the more direct action is to a changed report that omits lines or totals fails the test.
“Historical records remain correct across the version change” supports the separate task “seed an older app version with representative data then test upgrade preservation”, not the reported problem: a test checks that a report launches but never confirms its output matches stored document data. This case instead calls for “A changed report that omits lines or totals fails the test”.