The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.
CLOSE Method (TestPage)
Closes an open test page.
The test page that you want to close.
If TestPage has never been opened or is already closed, then a run-time error occurs, and the outcome of the test method is FAILURE.
This example requires that you create a TestPage variable named CustTestPage with a Subtype of Customer List and that the codeunit in which you write the code is a test codeunit.
// Open the test page. CustPage.OPENEDIT; // Add code to test the Customer List page. // … // Close the Customer Card CustPage.CLOSE;