示例#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();
        }
示例#2
0
        public void AcceptManualOffer()
        {
            var mOffer = AccessExcelData.GetTestData <CustomOffer>("TestName", "Sanity", "CustomOffer", CRMConstants.OfferXlsxFilename);

            this.offerMainPage.NewOffer.Click();
            this.customOffer.NavigateTo();
            this.customOffer.CreateCustomOfferOne(mOffer);
            this.customOffer.AcceptOfferOne();

            Thread.Sleep(1000);
            LoanParametersPage loanParamPage = new LoanParametersPage(this.Driver);

            loanParamPage.AssertApplicationPage();
            loanParamPage.AssertAcceptedOfferParameters(mOffer);
        }
示例#3
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();
        }
示例#4
0
        public void AcceptAutomaticOfferWithoutJD()
        {
            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();

            CustomOffer AcceptedOffer = this.autoOffer.GetOffer("RequestedParams");

            this.autoOffer.AcceptOffer("RequestedParams");
            this.autoOffer.SigningUpHand();

            LoanParametersPage loanParamPage = new LoanParametersPage(this.Driver);

            loanParamPage.AssertApplicationPage();
            loanParamPage.AssertAcceptedOfferParameters(AcceptedOffer);
        }
示例#5
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();
        }