public void RegistrationForm_ErrorMessage_Confirm_Password_13()

        {
            RegistrationPage regPage = new RegistrationPage(this.driver);
            RegistrationUser user    = AccessExcelData.GetTestData("passwordconf");

            regPage.NavigateTo();
            regPage.FillRegistrationForm(user);
            regPage.AssertErrorMessageConfirmPasswordReq("* This field is required");
        }
        public void RegistrationForm_ErrorMessage_Confirm_PasswordMatch_14()

        {
            RegistrationPage regPage = new RegistrationPage(this.driver);
            RegistrationUser user    = AccessExcelData.GetTestData("passwordmatch");

            regPage.NavigateTo();
            regPage.FillRegistrationForm(user);
            regPage.AssertStrenfght("Mismatch");
        }
        public void RegistrationForm_ErrorMessage_Password8Dig_12()

        {
            RegistrationPage regPage = new RegistrationPage(this.driver);
            RegistrationUser user    = AccessExcelData.GetTestData("password8");

            regPage.NavigateTo();
            regPage.FillRegistrationForm(user);
            regPage.AssertErrorMessagePasswordReq("* Minimum 8 characters required");
        }
        public void RegistrationForm_ErrorMessage_InvalidEmail_10()

        {
            RegistrationPage regPage = new RegistrationPage(this.driver);
            RegistrationUser user    = AccessExcelData.GetTestData("invalidemail");

            regPage.NavigateTo();
            regPage.FillRegistrationForm(user);
            regPage.AssertErrorMessageEmailReq("* Invalid email address");
        }
        public void RegistrationForm_ErrorMessage_EmailReqTest_9()

        {
            RegistrationPage regPage = new RegistrationPage(this.driver);
            RegistrationUser user    = AccessExcelData.GetTestData("email");

            regPage.NavigateTo();
            regPage.FillRegistrationForm(user);
            regPage.AssertErrorMessageEmailReq("* This field is required");
        }
        public void RegistrationForm_ErrorMessage_Phone10_Test_7()

        {
            RegistrationPage regPage = new RegistrationPage(this.driver);
            RegistrationUser user    = AccessExcelData.GetTestData("phone10");

            regPage.NavigateTo();
            regPage.FillRegistrationForm(user);
            regPage.AssertErrorMessagePhone10Digits("* Minimum 10 Digits starting with Country Code");
        }
示例#7
0
        public void RegistrationWithoutPhoneNumberandInvalidEmail()
        {
            var regPage = new RegistrationPage(this.driver);
            var user    = AccessExcelData.GetTestData("RegistrationWithoutPhoneNumberandInvalidEmail");

            regPage.NavigateTo();
            regPage.FillRegistrationForm(user);

            regPage.AssertErrorMessagageInvalidEmailAddress("* Invalid email address");
            regPage.AssertPhoneErrorMessage("* This field is required");
        }
        public void GetBookByInvalidId(string id)
        {
            var response        = GetHelpMethods.ReturnBooksById(id);
            var responseJson    = response.Content.ReadAsStringAsync().Result;
            var error           = JsonConvert.DeserializeObject <Error>(responseJson);
            var messageFormat   = AccessExcelData.GetTestData <Error>("Name", "missingId", "Errors", EndpointsConstants.BooksXlsxFilename).Message;
            var expectedMessage = string.Format(messageFormat, id);

            Assert.AreEqual(HttpStatusCode.NotFound, response.StatusCode);
            Assert.AreEqual(expectedMessage, error.Message);
        }
示例#9
0
        public void PasswordChangeWithWrongCurrentPassword()
        {
            ManagePage.ManageAccountButton.Click();

            ManagePage.PasswordChangeButton.Click();
            var user = AccessExcelData.GetTestData <ManagePageUserModel>("RegisterPageData.xlsx", "DataSet2", "PasswordChangeWithWrongCurrentPassword");

            ManagePage.FillChangePasswordForm(user);
            ManagePage.AssertFirstPasswordErrorMessage("Incorrect password.");
            ManagePage.LogoutBtnAsUser.Click();
        }
示例#10
0
        public void RegistrationWithoutUsernameAndEmail()
        {
            var regPage = new RegistrationPage(this.driver);
            var user    = AccessExcelData.GetTestData("RegistrationWithoutUsernameAndEmail");

            regPage.NavigateTo();
            regPage.FillRegistrationForm(user);

            regPage.AssertErrorMessageNoUsername("* This field is required");
            regPage.AssertErrorMessageNoEmailAddress("* This field is required");
        }
示例#11
0
        public void RegistrationWithShortPasswordAndInvalidPhoneNumber()
        {
            var regPage = new RegistrationPage(this.driver);
            var user    = AccessExcelData.GetTestData("RegistrationWithShortPasswordAndInvalidPhoneNumber");

            regPage.NavigateTo();
            regPage.FillRegistrationForm(user);

            regPage.AssertErrorMessageShortPassword("* Minimum 8 characters required");
            regPage.AssertErrorInvalidNumber("* Minimum 10 Digits starting with Country Code");
        }
示例#12
0
        public void PasswordChangeWithInvalidSymbols()
        {
            ManagePage.ManageAccountButton.Click();

            ManagePage.PasswordChangeButton.Click();
            var user = AccessExcelData.GetTestData <ManagePageUserModel>("RegisterPageData.xlsx", "DataSet2", "PasswordChangeWithInvalidSymbols");

            ManagePage.FillChangePasswordForm(user);
            //Origanl Aseert
            Assert.AreEqual("A potentially dangerous Request.Form value was detected from the client (NewPassword=\"</\").", ManagePage.InvalidDataErrorMessage.Text);
        }
示例#13
0
        public void PasswordChangeWithoutConfirmPassword()
        {
            ManagePage.ManageAccountButton.Click();

            ManagePage.PasswordChangeButton.Click();
            var user = AccessExcelData.GetTestData <ManagePageUserModel>("RegisterPageData.xlsx", "DataSet2", "PasswordChangeWithoutConfirmPassword");

            ManagePage.FillChangePasswordForm(user);
            ManagePage.AssertFirstPasswordErrorMessage("The new password and confirmation password do not match.");
            ManagePage.LogoutBtnAsUser.Click();
        }
示例#14
0
        public void LogInUserBackToHomePageFromCreate()
        {
            home.LoginLink.Click();
            var user = AccessExcelData.GetTestData <HomePageLogInUserModel>("RegisterPageData.xlsx", "DataSet2", "ValidLogin2");

            home.FillLogOn(user);
            home.CreateLink.Click();
            home.Logo.Click();
            home.FirstArticleText();
            home.LogOff.Click();
        }
示例#15
0
        public void RegistrationWithoutHobbyAndLastName()
        {
            var regPage = new RegistrationPage(this.driver);
            var user    = AccessExcelData.GetTestData("RegistrationWithoutHobbyAndLastName");

            regPage.NavigateTo();
            regPage.FillRegistrationForm(user);

            regPage.AssertErrorMessageNoHobby("* This field is required");
            regPage.AssertNamesErrorMessage("* This field is required");
        }
示例#16
0
        public void AddNewExistingRole()
        {
            var role = AccessExcelData.GetTestData <Roles>("TestName", "Add", "Roles", AdminPanelConstants.SettingsXlsxFilename);

            this.settings.ClickAdd();
            this.role.AddNew(role);
            this.role.AssertValidationMsg();
            this.role.ClickRejectModal();
            this.role.Search(role.Name);
            this.role.AssertNoResult();
        }
示例#17
0
        public void FillPreviousData(HomePage homePage, ApplicationMainPage applicationMainPage, LoanParametersPage loanParamPage, string pid)
        {
            Thread.Sleep(1500);
            homePage.Applications.Click();
            applicationMainPage.OpenNewApplication();
            var loanParameters = AccessExcelData.GetTestData <LoanParameters>("TestName", "valid", "LoanParameters", CRMConstants.ApplicationXlsxFilename);

            loanParameters.Pid = pid;
            loanParamPage.FillLoanParameters(loanParameters);
            applicationMainPage.SaveAndContinueButton.Click();
        }
示例#18
0
 public void OrganizationUnitUpdateTest()
 {
     organizatonUnitPage.AssertDepartments();
     this.organizatonUnitPage.Marketing.Click();
     AdminPanelHelpMethods.RightClick(organizatonUnitPage.Marketing, this.Driver);
     organizatonUnitPage.UpdateUnit.Click();
     Thread.Sleep(500);
     organizatonUnitPage.AssertUnitName("Маркетинг");
     var unit = AccessExcelData.GetTestData<OrganizationUnit>("TestName", "Sanity", "Units", AdminPanelConstants.ApplicationXlsxFilename);
     this.organizatonUnitPage.FillUnit(unit, "change");
     this.organizatonUnitPage.Reject.Click();
 }
示例#19
0
        public void PasswordChangeWithoutData()
        {
            ManagePage.ManageAccountButton.Click();

            ManagePage.PasswordChangeButton.Click();
            var user = AccessExcelData.GetTestData <ManagePageUserModel>("RegisterPageData.xlsx", "DataSet2", "PasswordChangeWithoutData");

            ManagePage.FillChangePasswordForm(user);
            ManagePage.AssertFirstPasswordErrorMessage("The Current password field is required.");
            ManagePage.AssertSecondPasswordErrorMessage("The New password field is required.");
            ManagePage.LogoutBtnAsUser.Click();
        }
示例#20
0
        public void ClientAddress_ValidData_Created()
        {
            var permanentAddress       = AccessExcelData.GetTestData <Address>("TestName", "SanityPermanent", "Address", CRMConstants.ApplicationXlsxFilename);
            var presentAddress         = AccessExcelData.GetTestData <Address>("TestName", "Present", "Address", CRMConstants.ApplicationXlsxFilename);
            var correspondationAddress = AccessExcelData.GetTestData <Address>("TestName", "Correspondation", "Address", CRMConstants.ApplicationXlsxFilename);

            this.addressPage.FillAllAddresses(new List <Address> {
                permanentAddress, presentAddress, correspondationAddress
            });

            this.addressPage.SaveAndContiunueGoBackSaveAndContiunue();
        }
示例#21
0
        public void ClientAddress_ValidDiferentData_Created()
        {
            var blockAddress       = AccessExcelData.GetTestData <Address>("TestName", "BlockAddress", "Address", CRMConstants.ApplicationXlsxFilename);
            var streetAddress      = AccessExcelData.GetTestData <Address>("TestName", "StreetAddress", "Address", CRMConstants.ApplicationXlsxFilename);
            var blockStreetAddress = AccessExcelData.GetTestData <Address>("TestName", "BlockStreetAddress", "Address", CRMConstants.ApplicationXlsxFilename);

            this.addressPage.FillAllAddresses(new List <Address> {
                blockAddress, streetAddress, blockStreetAddress
            });

            this.addressPage.SaveAndContiunueGoBackSaveAndContiunue();
        }
示例#22
0
            public void TestInit()
            {
                this.TestInitialize();
                this.loginPage = new LoginPage(this.Driver);
                this.homePage  = new HomePage(this.Driver);
                this.offer     = new OfferMainPage(this.Driver);
                var user = AccessExcelData.GetTestData <User>("TestName", "ke.pleven", "Users", BaseConstants.UsersXlsxFilename);

                this.loginPage.AnotherUserLogin(user, BaseConstants.TestCRMUrl);
                Thread.Sleep(1250);
                this.homePage.Offers.Click();
            }
示例#23
0
        public void TestIniti()
        {
            this.TestInitialize();
            this.homePage = new APHomePage(this.Driver);
            this.loginPage = new LoginPage(this.Driver);
            this.organizatonUnitPage = new OrganizationUnitPage(this.Driver);

            var user = AccessExcelData.GetTestData<User>("TestName", "TestUser", "Users", BaseConstants.UsersXlsxFilename);
            this.loginPage.AnotherUserLogin(user, BaseConstants.TestAdminPanelUrl);
            Thread.Sleep(3000);
            this.homePage.OrganizationUnits.Click();
        }
示例#24
0
        public void TryToLoggingIn()
        {
            var user        = AccessExcelData.GetTestData("TryToLoggingIn");
            var loginPage   = new LoginPage(this.driver);
            var accountPage = new AccountPage.AccountPage(this.driver);

            accountPage.NavigateTo();
            accountPage.LoginLink.Click();
            loginPage.Login(user);

            accountPage.AssertIsLogged("Hello [email protected]!");
        }
示例#25
0
        public void RejectManualOffer()
        {
            var mOffer = AccessExcelData.GetTestData <CustomOffer>("TestName", "Sanity", "CustomOffer", CRMConstants.OfferXlsxFilename);

            this.offerMainPage.NewOffer.Click();
            this.customOffer.NavigateTo();
            this.customOffer.CreateCustomOfferOne(mOffer);
            this.customOffer.RejectAllOffers();
            this.offerMainPage.AssertRejectionPage();
            this.customOffer.RejectionReason(CRMConstants.reasons[1]);
            this.offerMainPage.AssertMainPage();
        }
示例#26
0
        public void EditUserInfoByAdmin()
        {
            AdminPage.AdminButton.Click();
            AdminPage.UserManageButton.Click();
            var user = AccessExcelData.GetTestData <AdminPageUserModel>("RegisterPageData.xlsx", "DataSet2", "EditUserInfoByAdmin");

            Assert.IsTrue(AdminPage.User1EditButton.Displayed);
            AdminPage.User1EditButton.Click();
            AdminPage.FillUserEditForm(user);
            Assert.AreEqual("Users", AdminPage.UsersDisplayed.Text);
            AdminPage.LogoutBtnAsAdmin.Click();
        }
示例#27
0
        public void PendingDecisionAutomaticOffers()
        {
            var aOfferCl = AccessExcelData.GetTestData <AutoOffer>("TestName", "Sanity", "AutoOffer", CRMConstants.OfferXlsxFilename);

            this.offerMainPage.NewOffer.Click();
            this.autoOffer.CheckClientPid(aOfferCl);
            this.autoOffer.GoToAutoOfferPage();
            this.autoOffer.FilloutClientData(aOfferCl);

            this.autoOffer.CalculateOfferts();
            this.autoOffer.RethinkDecision();
            this.offerMainPage.AssertMainPage();
        }
示例#28
0
        public void TestIniti()
        {
            this.TestInitialize();
            this.requestMainPage = new RequestMainPage(this.Driver);
            this.homePage        = new HomePage(this.Driver);
            this.loginPage       = new LoginPage(this.Driver);

            var user = AccessExcelData.GetTestData <User>("TestName", "TestUser", "Users", BaseConstants.UsersXlsxFilename);

            this.loginPage.AnotherUserLogin(user, BaseConstants.TestCRMUrl);
            Thread.Sleep(1500);
            this.homePage.Requests.Click();
        }
示例#29
0
        public void RemoveAutomaticOffer()
        {
            var aOfferCl = AccessExcelData.GetTestData <AutoOffer>("TestName", "Sanity", "AutoOffer", CRMConstants.OfferXlsxFilename);

            this.offerMainPage.NewOffer.Click();
            this.autoOffer.CheckClientPid(aOfferCl);
            this.autoOffer.GoToAutoOfferPage();
            this.autoOffer.FilloutClientData(aOfferCl);

            this.autoOffer.CalculateOfferts();

            this.autoOffer.RemoveOffer("Upsell");
        }
示例#30
0
        public void CreditParameters_WithoutParameters_InactiveSave()
        {
            var testNames = new string[] { "WithoutPid", "WithoutLoanRate", "WithoutPaymentDate", "WithoutLoanPurpose", "WithoutRequestSource" };

            foreach (var name in testNames)
            {
                var loanParameters = AccessExcelData.GetTestData <LoanParameters>("TestName", name, "LoanParameters", CRMConstants.ApplicationXlsxFilename);
                this.loanParamPage.FillLoanParameters(loanParameters);
                loanParamPage.AssertDisabledElement(loanParamPage.SaveAndContinueButton);
                homePage.Applications.Click();
                this.applicationMainPage.OpenNewApplication();
            }
        }