Question 530
At fictional Granite Telecom, the Business Central development team is supporting field equipment billing and reviewing automated testing and diagnostics during a production readiness review (MB820-5.1-164). The observed development issue is that a TestPage script checks that a button exists but never verifies whether the action updates the correct record. Which observed result would most clearly show the intended correction works?
Explanation
Correct Answer
This is the outcome that directly verifies the intended correction: the test fails when the action points to a wrong record despite a visible button. The related solution is to use the appropriate TestPage interaction and assert resulting business state; it is based on the principle that uI automation should validate outcomes, not only control presence.
Incorrect Answers
“Historical records remain correct across the version change” concerns the separate step “seed an older app version with representative data then test upgrade preservation”. The reported issue is that a TestPage script checks that a button exists but never verifies whether the action updates the correct record, so the direct response is to the test fails when the action points to a wrong record despite a visible button.
“The build is blocked when an AL test codeunit fails” concerns the alternative task “configure and execute supported Business Central tests in the Test Toolkit or automated test runner”, but the stated failure is that a TestPage script checks that a button exists but never verifies whether the action updates the correct record. The required measure is to the test fails when the action points to a wrong record despite a visible button.
The proposed “Repeated test runs validate behavior without real financial side effects” tests a different control: use controlled HTTP mocks or supported test isolation and fixture responses. The reported condition is that a TestPage script checks that a button exists but never verifies whether the action updates the correct record; the more direct action is to the test fails when the action points to a wrong record despite a visible button.