TestPage.Close() Method
Version: Available or changed with runtime version 1.0.
Closes an open test page.
Syntax
TestPage.Close()
Parameters
TestPage
Type: TestPage
An instance of the TestPage data type.
Remarks
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.
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;
See Also
TestPage Data Type
Get Started with AL
Developing Extensions
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for