Interface IGuiSession
A SAP GUI for Windows session.
public interface IGuiSession : ITestObject, ITestObjectDescriber, ISupportsNativeObject
- Inherited Members
- Extension Methods
Properties
ActiveWindow
The name of the window that has focus.
string ActiveWindow { get; }
Property Value
ApplicationServer
The name of the application server. Applies only when the connection specifies an application server and is not using load balancing.
string ApplicationServer { get; }
Property Value
Client
The client selected on the login screen.
string Client { get; }
Property Value
CodePage
The code page for this session.
long CodePage { get; }
Property Value
Flushes
The number of flushes or passes of data during server communication to the client.
long Flushes { get; }
Property Value
Group
Login group information. Applies only when connection is using load balancing.
string Group { get; }
Property Value
Id
The session's unique identifier in text format.
string Id { get; }
Property Value
InterpretationTime
The time, in milliseconds, it takes for the client to interpret the information received from the server.
long InterpretationTime { get; }
Property Value
Language
The language the user is working in.
string Language { get; }
Property Value
MessageServer
The name of the message server. Applies only when connection is using load balancing.
string MessageServer { get; }
Property Value
Name
The name of the session.
string Name { get; }
Property Value
Program
The name of the SAP source program that is executing.
string Program { get; }
Property Value
ResponseTime
The server response time in milliseconds.
long ResponseTime { get; }
Property Value
RoundTrips
The number of communications between client and server while the client is locked and waiting for data from the server.
long RoundTrips { get; }
Property Value
ScreenNumber
The number of the displayed screen.
long ScreenNumber { get; }
Property Value
SystemName
The name of the SAP system.
string SystemName { get; }
Property Value
SystemNumber
The system number. Applies only when connection specifies an application server and is not using load balancing.
long SystemNumber { get; }
Property Value
Transaction
The transaction the user is executing.
string Transaction { get; }
Property Value
Type
The GUI component type.
ComponentType Type { get; }
Property Value
User
The user name.
string User { get; }
Property Value
Methods
Close()
Closes the SAP GUI for Windows session without displaying a warning message.
void Close()
Remarks
You can invoke this method at the end of an action or test iteration to close sessions that were opened during the test run. This ensures that each iteration begins with the same number of open SAP Gui for Windows sessions.
Reset()
Navigates to the session initial screen.
void Reset()
Remarks
We recommend using this method to ensure that tests are rerun from the initial screen of the session.
Reset(string)
Navigates to the specified transaction.
void Reset(string transactionCode)
Parameters
transactionCodestringthe transaction to navigate to.
Sync()
Suspends execution until the SAP GUI for Windows session is available.
void Sync()
Sync(long)
Suspends execution until the SAP GUI for Windows session is available or until timed out.
void Sync(long timeOut)
Parameters
timeOutlongmilliseconds.
Remarks
After time-out, the test run continues regardless of the session status.
You can use this method when invoking a new session from an existing session or when moving from a session that is open on one server to a new session on a different server.