Example #1
0
        public void LoginAnotherUserTest()
        {
            string[] users = new string[] { "invalidNameInvalidPass", "invalidPass", "invalidName", "ke.pleven" };

            foreach (var key in users)
            {
                var user = AccessExcelData.GetTestData <User>("TestName", key, "Users", BaseConstants.UsersXlsxFilename);
                this.loginPage.AnotherUserLogin(user, BaseConstants.TestCRMUrl);

                if (user.AssertType == "valid")
                {
                    loginPage.AssertValidUser();
                }
                else
                {
                    loginPage.AssertInvalidUser();
                }
            }
        }