示例#1
0
        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); };
        }
示例#2
0
        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); };
        }