Share this page

Attach Method (GuiSessionFactory)
Returns a new IGuiSession instance that is attached to a session that was not opened by OpenText Functional Testing for Developers (for example, a session that was opened manually or by the AUT).
Remarks
GuiSessionDescription is used only when attaching to the session so transient properties like GuiSessionDescription.Name can be used.
OpenText Functional Testing for Developers recognizes SAP GUI Session and tabs that it opens (for example, via Launch(String)). If a GUI Session is opened outside of the OpenText Functional Testing for Developers context, you need to use the Attach method to acquire the GUI session.

C# Syntax

    public static IGuiSession Attach(
       GuiSessionDescription desc
    )

Parameters

desc
  GuiSessionDescription for filtering the open sessions.

Return Value

IGuiSession for the launched session if a single matching sessions was found.
Exceptions

Exception | Description
--- | ---
HP.LFT.SDK.ReplayObjectNotFoundException | No open sessions matches the description.
HP.LFT.SDK.ReplayObjectNotUniqueException | More than one session matches the description.

Tips to improve your search results... OpenText™ Functional Testing for Developers .NET SDK Version: 25.2 OpenText™ Functional Testing for Developers SDK 25.2 All View Local Help Center View Online Help Center Version: