Modifier

Partager via


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;  

TestPage Data Type
Get Started with AL
Developing Extensions