Export (0) Print
Expand All

CLOSE Function (TestPage)

Microsoft Dynamics NAV 2013

Closes an open test page.

TestPage.CLOSE

Parameters

TestPage
Type: TestPage

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;
Show:
© 2014 Microsoft