Tips and tricks - SAP GUI

The following tips and tricks are specific for testing SAP GUI applications.

Work with the SAP GUI SDK

Make sure you include:



Back to top

Declare your SAP GUI session in your test.

Even if you are working with objects from an application model, declare your SAP GUI session in the context of your test and then pass the GUISession as an argument when you instantiate your application model class:


IGuiSession session = GuiSessionFactory.Launch("ECC 6.0", "800", "qa01", "55c1b303f6a77cb79fcbb321af78eed77befc906");
mySAPGUIModel mySAPGUISiteModel = new mySAPGUISiteModel(session); 


GuiSession session = GuiSessionFactory.launch("ECC 6.0", "800", "qa01", "55c1b303f6a77cb79fcbb321af78eed77befc906");
mySAPGUIModel mySAPGUISiteModel = new mySAPGUISiteModel(session);

Back to top

Decide which SAP GUI session to use in your SAP GUI steps.

  • Use the GuiSessionFactory.Launch method to open a new SAP GUI session.
  • Use the GuiSessionFactory.Attach method to run your steps on an open SAP GUI session.

Back to top

See also:

Got it!
Welcome to the help center for UFT Developer, formerly known as LeanFT. UFT Developer is part of the new Micro Focus UFT family of integrated functional testing solutions.