Example #1
0
        public void _03_DisclosurePrepTRID()
        {
            AttachToProcess(Processes.Encompass, 5);

            //TestConsole.Initialize().chk_UnderwritingBypass_Check().chk_WestVM_Bypass_Check().chk_SmartGFE_Bypass_Check().btn_FancyMilestones_Click();

            DisclosurePrep
            .OpenForm_FromFormsTab()
            .cmb_WillThereBeSubordination_SendKeys("No")
            .cmb_BetterRateWarranty_SendKeys("No")
            .cmb_ImpoundsWaivedOrNotWaived_SendKeys("Not Waived")
            .cmb_ImpoundsWillBeFor_SendKeys("Taxes and Insurance (T & I)")
            .cmb_AddingRemovingSomeoneFromTitle_SendKeys("No")
            .btn_GenerateEstimatedClosingDatesandStandardFees_Click()
            .btn_WestVM_Click(); EncompassMain.Initialize().tab_Loan_Select();

            DisclosurePrep.Initialize().btn_Review2015Itemization_Click(); Itemization.OpenForm_FromFormsTab(); PropertyTaxesReserved.OpenFromItemization().cmb_ReserveBasedOn_SendKeys("B").txt_RatePercentage_SendKeys(".25").btn_OK_Click(); AggregateSetup.OpenFromItemization().btn_OK_Click();

            DisclosurePrep.OpenForm_FromFormsTab().btn_RunComplianceReport_Click();

            DisclosurePrep
            .OpenForm_FromFormsTab()
            .cmb_PropertyInspectionWaiver_SendKeys("No")
            .cmb_DocumentDeliveryPreference_SendKeys("Email - eSign")
            .btn_ReadytoDisclose_Click()
            .btn_GenerateDisclosures_Click();
        }
Example #2
0
        public void UserLogin(IDictionary <string, string> data)
        {
            this.Username = data["Username"];
            this.Password = data["Password"];


            LaunchApplication(DesktopApps.Encompass);

            Launcher
            .Initialize()
            .cmb_EnvironmentID_SelectByText("TEBE11166948")
            .btn_Login_Click();

            AttachToProcess(Processes.Encompass, 5);

            Login
            .Initialize()
            .txt_Username_SendKeys(this.Username)
            .txt_Password_SendKeys(this.Password)
            .btn_Login_Click();

            Thread.Sleep(10000);

            EncompassMain
            .Initialize()
            .Resize()
            .tab_Pipeline_Select();

            return;
        }
Example #3
0
        public void _10_FinalUWApproval()
        {
            LaunchApplication(DesktopApps.Encompass); Launcher.Initialize().cmb_EnvironmentID_SelectByText(EnvironmentID).btn_Login_Click();

            AttachToProcess(Processes.Encompass, 5);

            Login.Initialize().Login_Username_SendKeys(Underwriter);

            Pipeline.Initialize().Pipeline_SelectCurrentLoan(LoanNumber);

            Encompass_eFolder.Open_eFolder().eFolder_UnderwriterReview("1003"); DocumentDetails.Initialize().chk_Reviewed_Check(true).btn_Close_Click();

            Encompass_eFolder.Initialize().eFolder_UnderwriterReview("Credit Report"); DocumentDetails.Initialize().chk_Reviewed_Check(true).btn_Close_Click();

            Encompass_eFolder.Initialize().eFolder_UnderwriterReview("Underwriting"); DocumentDetails.Initialize().chk_Reviewed_Check(true).btn_Close_Click();

            Encompass_eFolder.Initialize().btn_Close_Click();

            FinalUWApproval
            .Open_FromLogTab()
            .cmb_ULDDPropertyValuationMethodType_SendKeys("None")
            .txt_TotalMortgagedPropertiesCount_SendKeys("1")
            .txt_ULDDInvestorFeatureID_SendKeys("5645646446")
            .cmb_UnderwritingLevelOfPrptyReview_SendKeys("No Appraisal")
            .cmb_DayOneCertainty_SendKeys("NO")
            .txt_UnderwritingClearToCloseDate_SendKeys("030518")
            .chk_FinalUWApprovalTasks_Check()
            .chk_Finish_Check();

            EncompassMain.Initialize().ExitEncompass(); ExitEncompass.Initialize().btn_Yes_Click(); CompliancePreview.Initialize().btn_Close_Click(); TestedApplication.Kill();
        }
Example #4
0
        public void _11_QCReview()
        {
            LaunchApplication(DesktopApps.Encompass); Launcher.Initialize().cmb_EnvironmentID_SelectByText(EnvironmentID).btn_Login_Click();

            AttachToProcess(Processes.Encompass, 5);

            Login.Initialize().Login_Username_SendKeys(QualityControl);

            Pipeline.Initialize().Pipeline_SelectCurrentLoan(LoanNumber);

            QCReview.Open_FromLogTab().chk_QCReviewTasks_Check().chk_Finish_Check();

            EncompassMain.Initialize().ExitEncompass(); ExitEncompass.Initialize().btn_Yes_Click(); CompliancePreview.Initialize().btn_Close_Click(); TestedApplication.Kill();
        }
Example #5
0
        public void _05_CompleteApplication()
        {
            AttachToProcess(Processes.Encompass, 5);

            DisclosureTracking.Initialize().btn_InitialDisclosureRecord_Click(); DisclosureDetails.Initialize().btn_SendDateManualEntry_Click().txt_DisclosureSentDate_SetBack().txt_ActualReceivedDate_SetDate().chk_IntentToProceed_Check(true).btn_OK_Click();

            BankerLoanSubmission.OpenForm_FromFormsTab().btn_CopyCashBackSTC_Click(); EncompassDialog.Initialize().btn_OKtoCertify_Click(); BankerLoanSubmission.Initialize().btn_BankerCertificationBLS_Click();

            Application.Open_FromLogTab().cmb_UnderwritingRiskAccessType_SendKeys("DU").cmb_LoanInfoRefiPurpose_SendKeys("No Cash-Out Other").chk_Finish_Check();

            BorrowerSummary.OpenForm_FromFormsTab().CopyLoanNumber();

            EncompassMain.Initialize().ExitEncompass(); EncompassDialog.Initialize().btn_Yes_Click(); ComplianceAlert.Initialize().btn_Close_Click(); TestedApplication.Kill();
        }
Example #6
0
        public void _08_InitialUWDecision()
        {
            LaunchApplication(DesktopApps.Encompass); Launcher.Initialize().cmb_EnvironmentID_SelectByText(EnvironmentID).btn_Login_Click();

            AttachToProcess(Processes.Encompass, 5);

            Login.Initialize().Login_Username_SendKeys(Underwriter);

            Pipeline.Initialize().Pipeline_SelectCurrentLoan(LoanNumber);

            UnderwriterSummary.OpenForm_FromToolsTab().txt_ApprovedByDate_SetDate().txt_ApprovalExpiresDate_SetDate();

            InitialUWDecision.Open_FromLogTab().chk_Finish_Check();

            EncompassMain.Initialize().ExitEncompass(); EncompassDialog.Initialize().btn_Yes_Click(); ComplianceAlert.Initialize().btn_Close_Click(); TestedApplication.Kill();
        }
Example #7
0
        public void _07_ApprovalSubmitToUW()
        {
            LaunchApplication(DesktopApps.Encompass); Launcher.Initialize().cmb_EnvironmentID_SelectByText(EnvironmentID).btn_Login_Click();

            AttachToProcess(Processes.Encompass, 5);

            Login.Initialize().Login_Username_SendKeys(LoanProcessor);

            Pipeline.Initialize().Pipeline_SelectCurrentLoan(LoanNumber);

            ProcPreApproval.Open_FromLogTab().chk_Finish_Check();

            SubmitToUW.Open_FromLogTab().chk_Finish_Check();

            EncompassMain.Initialize().ExitEncompass(); EncompassDialog.Initialize().btn_Yes_Click(); ComplianceAlert.Initialize().btn_Close_Click(); CompliancePreview.Initialize().btn_Close_Click(); TestedApplication.Kill();
        }
Example #8
0
        public void _06_PreProcReview()
        {
            LaunchApplication(DesktopApps.Encompass); Launcher.Initialize().cmb_EnvironmentID_SelectByText(EnvironmentID).btn_Login_Click();

            AttachToProcess(Processes.Encompass, 5);

            Login.Initialize().Login_Username_SendKeys(ProcessingMgr);

            Pipeline.Initialize().Pipeline_SelectCurrentLoan(LoanNumber);

            PreProcReview
            .Open_FromLogTab()
            .cmb_Disclosures_eSigned_SendKeys("Yes")
            .chk_Finish_Check();

            EncompassMain.Initialize().ExitEncompass(); EncompassDialog.Initialize().btn_Yes_Click(); ComplianceAlert.Initialize().btn_Close_Click(); TestedApplication.Kill();
        }
Example #9
0
        public void _09_ConditionsSent()
        {
            LaunchApplication(DesktopApps.Encompass); Launcher.Initialize().cmb_EnvironmentID_SelectByText(EnvironmentID).btn_Login_Click();

            AttachToProcess(Processes.Encompass, 5);

            Login.Initialize().Login_Username_SendKeys(LoanProcessor);

            EncompassMain.Initialize().Resize().tab_Pipeline_Select();

            Pipeline.Initialize().Pipeline_SelectCurrentLoan(LoanNumber);

            ClosingForm.OpenForm_FromFormsTab().btn_ProcessorAddData_Click().CompleteCurrentVesting().btn_ProcessorClicktoCertify_Click().cmb_IsFileReadyForUnderwriting_SendKeys("yes");

            AdditionalRequestsInformation.OpenForm_FromFormsTab().CompleteFields_HazardInsurance(); FloodInformation.OpenForm_FromFormsTab().CompleteFields_FloodCertification();

            URLA_Page2.OpenForm_FromFormsTab().cmb_MortgageType1_SendKeys("Mortgage"); MortgagePayoff.OpenForm_FromFormsTab().cmb_LenderName1_Select().txt_PrincipalBalance1_SendKeys("10,000");

            ClosingVendorInformation.Initialize().CompleteTitleEscrowFields();

            ConditionsSent.Open_FromLogTab().CompleteReqFields_DirectConvNoCashOutRefi().chk_Finish_Check();

            EncompassMain.Initialize().ExitEncompass(); EncompassDialog.Initialize().btn_Yes_Click(); ComplianceAlert.Initialize().btn_Close_Click(); TestedApplication.Kill();
        }
        public void Loan_Creation(IDictionary <string, string> data)
        {
            MasterData     = new objMasterData(data);
            className      = System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name;
            testMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
            //MasterData.TestResultPathStem = string.Format(FileUtilities.DefaultTestResultDirectory, className);
            MasterData.TestResultPathStem = string.Format("{0}\\{1}\\{2}\\{3} - {4}", FileUtilities.DefaultTestResultDirectory_ShareDrive, className, testMethodName, Environment.UserName, runTime);
            path = string.Format("{0}\\{1}.html", MasterData.TestResultPathStem, TestReportName);

            if (!Directory.Exists(string.Format("{0}", MasterData.TestResultPathStem)))
            {
                Directory.CreateDirectory(string.Format("{0}", MasterData.TestResultPathStem));
            }

            if (BaseTest.HtmlReport == null)
            {
                InitializeExtentReports(path, TestReportName);
            }

            BaseTest.extentTest = ExtentReport.CreateTest(runTime);

            string StepDetails = string.Format("Smoke Test");
            bool   StepStatus  = true;
            string MethodName  = System.Reflection.MethodBase.GetCurrentMethod().Name;

            try
            {
                LaunchApplication(DesktopApps.Encompass);

                Launcher
                .Initialize()
                .cmb_EnvironmentID_SelectByText(MasterData.EnvironmentID)
                .btn_Login_Click();

                extentTest.Pass("Launched Encompass environment " + MasterData.EnvironmentID, MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_Launch"), true)).Build());

                AttachToProcess(Processes.Encompass, 5);

                Login
                .Initialize()
                .txt_Username_SendKeys("test_qa_lo")
                .txt_Password_SendKeys("P@ramount1")
                .btn_Login_Click();

                extentTest.Pass("Logged in as Loan Officer, test_qa_lo", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_Login"), true)).Build());

                Thread.Sleep(10000); EncompassMain.Initialize().Resize().tab_Pipeline_Select(); Pipeline.Initialize().btn_NewLoan_Click();

                NewLoan
                .Initialize()
                .cmb_LoanTemplateFolder_SelectByText("PEM Direct")
                .SelectItem_DirectConvRefinance();

                extentTest.Pass("Created new Direct Conventional Refinance loan from Pipeline", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_LoanTemplate"), true)).Build());

                FormsTab.Initialize().chk_Show_Check(true).chk_ShowInAlpha_Check(true);

                TestConsole.OpenForm_FromFormsTab().btn_CreateNewLoan_Click(MasterData.LoanCreator); EncompassDialog.Initialize().btn_OK_Click();

                CreditReport.Initialize().lstbx_Provider_Select("Equifax Mortgage Solutions").btn_Submit_Click();

                CreditReportRequest
                .Initialize()
                .txt_UserName_SendKeys("PARAMOUNTIT")
                .txt_Password_SendKeys("P@ramount2")
                .chk_SaveLoginInformation_Check(true)
                .chk_Equifax_Check(true)
                .chk_Experian_Check(true)
                .chk_TransUnion_Check(true)
                .btn_Finish_Click();

                EncompassMain.Initialize().tab_ServicesView_Select(); extentTest.Pass("Credit Report successfully generated", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_CreditReport"), true)).Build()); Thread.Sleep(500); EncompassMain.Initialize().tab_Loan_Select();

                TestConsole
                .Initialize()
                .rdb_NoCashOutRefi_Select()
                .rdb_Direct_Select()
                .txt_BorrowerEmail_SendKeys(MasterData.BorrowerEmail);

                TestConsole.Initialize().btn_BLSCertification_Click(); QuickEntryBankerLoanSubmission.Initialize().ScrollDown().btn_BankerCertificationBLS_Click(); extentTest.Pass("Banker Loan Submission Form certified", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_BLS"), true)).Build()); QuickEntryBankerLoanSubmission.Initialize().btn_Close_Click();

                TestConsole
                .Initialize()
                .txt_SubjectProperty_Address_SendKeys(MasterData.Address)
                .txt_SubjectProperty_City_SendKeys(MasterData.City)
                .txt_SubjectProperty_State_SendKeys(MasterData.State)
                .txt_SubjectProperty_County_SendKeys(MasterData.County)
                .txt_SubjectProperty_ZipCode_SendKeys(MasterData.Zip);

                BorrowerSummary.OpenForm_FromFormsTab(); Thread.Sleep(500); extentTest.Pass("Borrower Summary successfully completed with Borrower email address " + MasterData.BorrowerEmail, MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_BorrowerSummary"), true)).Build());

                URLA_Page1.OpenForm_FromFormsTab(); Thread.Sleep(2000); extentTest.Pass("1003 Page 1 successfully completed with address " + MasterData.Address + ", " + MasterData.City + ", " + MasterData.State + ", " + MasterData.Zip + " (" + MasterData.County + " County)", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_1003Page1"), true)).Build());

                URLA_Page2.OpenForm_FromFormsTab(); Thread.Sleep(2000); extentTest.Pass("1003 Page 2 successfully completed", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_1003Page2"), true)).Build());

                URLA_Page3.OpenForm_FromFormsTab(); Thread.Sleep(2000); extentTest.Pass("1003 Page 3 successfully completed", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_1003Page3"), true)).Build());

                FormsTab.Initialize().lstbx_Forms_SelectForm("VOE"); Thread.Sleep(1000); extentTest.Pass("Verification of Employment successfully completed", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_VOE"), true)).Build());

                FormsTab.Initialize().lstbx_Forms_SelectForm("VOD"); Thread.Sleep(1000); extentTest.Pass("Verification of Depository successfully completed", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_VOD"), true)).Build());

                TransmittalSummary.OpenForm_FromFormsTab(); Thread.Sleep(1000); extentTest.Pass("Transmittal Summary successfully completed", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_TransmittalSum"), true)).Build());

                #region eConsent

                eConsentNotYetReceived.Open_FromAlertsandMessagesTab().btn_Request_eConsent_Click();

                SendConsent
                .Initialize()
                .chk_BorrowerConsent_Check(true)
                .chk_NotifyWhenBorrowerReceives_Check(true)
                .btn_Send_Click();

                BaseSeleniumPage.CreateDriver(BaseSeleniumPage.WebDrivers.Chrome); BaseSeleniumPage.NavigateToURL(@"https://www.mortgage-application.net/myaccount/accountlogin.aspx");

                BorrowerLoanCenterLogIn.Initialize()
                .txt_Email_SendKeys("*****@*****.**")
                .txt_Password_SendKeys("P@ramount1")
                .btn_Login_Click();

                CheckLoanStatus.Initialize().fn_SelectFirstRow();

                //LoanDetail.Initialize().btn_View_Click();

                AgreeToReceiveDisclosuresElectronically.Initialize().btn_Agree_Click(); BaseSeleniumPage.CloseDriver();

                eConsentNotYetReceived.Initialize().btn_View_eConsent_Click();

                extentTest.Pass("eConsent accepted", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_eConsentAccepted"), true)).Build());

                #endregion eConsent

                #region Product and Pricing

                OB_ProductandPricing.OpenFrom_MainMenu().lstbx_Provider_Select("Optimal Blue - Enhanced").btn_Submit_Click();

                OB_Login
                .Initialize()
                .txt_LoginName_SendKeys(MasterData.OB_Login)
                .txt_Password_SendKeys(MasterData.OB_Password)
                .chk_SaveLoginInformation_Check(true)
                .chk_UpdateUpfrontMIdataforFHAloans_Check(true)
                .btn_Continue_Click();

                OB_ProductSearch.Initialize().btn_Submit_Click(); extentTest.Pass("Loan is ready to execute pricing through Optimal Blue", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_Pricing"), true)).Build());

                #endregion Run Product and Pricing
            }

            catch (Exception ex)
            {
                StepStatus = false;
                BaseTest.ExtentFailStep(ex, StepDetails, "ErrorOccured");
                //step.ModalText = ex.ToString();
                //step.Status = "Fail";
                //step.ScreenShotLocation = Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format("Failure\\{0}", System.Reflection.MethodBase.GetCurrentMethod().Name));
                Assert.Fail(ex.ToString());
            }
            finally
            {
                if (StepStatus)
                {
                    extentTest.Pass("Test Passed - reached the end of script");
                }
                //Report.addStep(step);
            }
        }