- Scenario 1: SAP GUI is running as Administrator, and user tries to run test using Leapwork Local Agent.
In this scenario, Leapwork Agent (which is a service) is running with non admin rights and SAP GUI is running as administrator, due to this difference in access levels between 'Leapwork Local Agent' and 'SAP GUI', Leapwork Agent will not be able to access SAP API and hence test will fail.
Please note: In this specific case, Leapwork Studio must be started as administrator to be able to match SAP GUI access level else it will not even execute the start block.
- Scenario 2: User is Local Administrator (in Windows 10, 8.1/8), user starts Leapwork Studio as Administrator and tries to open SAP GUI using "Start Application" block.
In this scenario, Leapwork Studio will start SAP GUI as administrator, but Leapwork Agent is still running with non administrator access, due to this difference in access levels between 'Leapwork Local Agent' and 'SAP GUI', Leapwork Agent will not be able to access SAP API and hence test will fail.
To be able to run SAP GUI test on remote agent please run SAP GUI without admin Access.
User will be able to run SAP GUI automation on Local Display(s) in Preview mode with below access levels:
- When both SAP GUI and Leapwork Studios are started as administrator.
- In case both SAP GUI and Leapwork Studios started with non administrator privilege.
- Leapwork Studio is running as administrator and SAP GUI is not.
For any clarification, please contact our Priority Support.