CLOSE Function (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 function 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;
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.