Esempio n. 1
0
        public void TestIniti()
        {
            this.TestInitialize();
            this.applicationMainPage   = new ApplicationMainPage(this.Driver);
            this.loginPage             = new LoginPage(this.Driver);
            this.loanParamPage         = new LoanParametersPage(this.Driver);
            this.personalDataPage      = new PersonalDataPage(this.Driver);
            this.addressPage           = new AddressPage(this.Driver);
            this.contactsPage          = new ContactsPage(this.Driver);
            this.additionalInfoPage    = new AdditionalInfoPage(this.Driver);
            this.creditsPage           = new OtherCreditsPage(this.Driver);
            this.incomePage            = new IncomePage(this.Driver);
            this.otherIncomePage       = new OtherIncomePage(this.Driver);
            this.homePage              = new HomePage(this.Driver);
            this.loanPaymentPage       = new LoanPaymentPage(this.Driver);
            this.printingDocumentsPage = new PrintingDocumentsPage(this.Driver);
            this.uploadDocumentsPage   = new UploadDocumentsPage(this.Driver);
            this.clientOpinionPage     = new ClientOpinionPage(this.Driver);
            this.fraudSuspicionsPage   = new FraudSuspicionPage(this.Driver);

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

            this.loginPage.AnotherUserLogin(user, BaseConstants.TestCRMUrl);
            Thread.Sleep(1500);
            this.homePage.Applications.Click();
            this.applicationMainPage.OpenNewApplication();
        }
Esempio n. 2
0
        public void FillPreviousData(
            HomePage homePage,
            ApplicationMainPage applicationMainPage,
            LoanParametersPage loanParamPage,
            PersonalDataPage personalDataPage,
            string pid)
        {
            personalDataPage.FillPreviousData(homePage, applicationMainPage, loanParamPage, pid);
            var personalData = AccessExcelData.GetTestData <PersonalData>("TestName", "valid", "PersonalData", CRMConstants.ApplicationXlsxFilename);

            personalData.Pid       = pid;
            personalData.BirthDate = HelpMethods.GetBirthDayByPid(pid);
            personalDataPage.FillPersonalData(personalData);
            applicationMainPage.SaveAndContinueButton.Click();
        }
Esempio n. 3
0
        public void MailRuChangeNickNameTest()
        {
            this.MailRuDriver.Quit();

            var YandexReadMessagePage = this.YandexInboxPage.ReadLastMessage();

            YandexReadMessagePage.WriteAnswer(AnswerText);

            this.MailRuDriver     = new ChromeDriver();
            this.MailRuDriver.Url = "https://mail.ru";
            this.MailRuPage       = new MailRuHomePage(MailRuDriver);
            var MailRuReadMessagePage = this.MailRuPage.Login(MailRuLogin, MailRuPassword).ReadLastMessage();
            var NewReceivedNickName   = MailRuReadMessagePage.MessageText.Text;

            PersonalDataPage MailRuPersonalDataPage = MailRuReadMessagePage.OpenPersonalData().ChangeNickName(NewReceivedNickName);

            Assert.AreEqual(AnswerText, MailRuPersonalDataPage.NickNameBox.GetAttribute("value"));
        }