SessionCleanup Property


Indicates whether to close all SAP sessions opened by the test or component when the test or component closes.

Property type

Read-write property


Visual Basic
Public Property SessionCleanup As Boolean

Return value

  • True--UFT closes all SAP GUI for Windows sessions that were opened during the current run session when the test is closed. This includes all SAP GUI for Windows sessions that were invoked from the Record and Run Settings dialog box, plus any sessions that may have been invoked during the run session using a SAPGuiUtil statement or the Open New Session button in the SAP GUI for Windows application that was being recorded.

  • False--UFT does not close SAP sessions when the test closes, unless the SAPLauncher.CloseOnExit option is set to True.


See Also