Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Closes an open test page.
Syntax
TestPage.CLOSE
Parameters
TestPage
Type: TestPage
The test page that you want to close.
Remarks
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.
Example
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;