public static void Login(SAPLoginData data) { SAPLogon l = new SAPLogon(); l.StartProcess(); l.OpenConnection(data.Address); l.Login(data.UserName, data.Password, data.Client, data.Language); SAPTestHelper.Current.SetSession(l); //SAPTestHelper.Current.OnRequestError += (s, e) => { throw new Exception(e.Message); }; }
public static SAPLogon Login(SAPLoginData data) { SAPLogon l = new SAPLogon(); l.StartProcess(); l.OpenConnection(data.Address); l.Login(data.UserName, data.Password, data.Client, data.Language); return(l); //SAP.OnRequestError += (s, e) => { throw new Exception(e.Message); }; }