예제 #1
0
        public void _12_DocsOut()
        {
            LaunchApplication(DesktopApps.Encompass); Launcher.Initialize().cmb_EnvironmentID_SelectByText(EnvironmentID).btn_Login_Click();

            AttachToProcess(Processes.Encompass, 5);

            Login.Initialize().Login_Username_SendKeys(DocFunder);

            Pipeline.Initialize().Pipeline_SelectCurrentLoan(LoanNumber);

            BorrowerInformationVesting.OpenForm_FromFormsTab().btn_BuildFinal_Click();

            ClosingForm.OpenForm_FromFormsTab().btn_DocsAddData_Click();

            ClosingTracking.OpenForm_FromFormsTab().txt_CD_Ordered_SetTodaysDate().txt_EarliestClosingDate_CopyField();

            RegZCD.OpenForm_FromFormsTab().txt_DocumentDate_SendKeys().txt_ClosingDate_SendKeys().txt_DocSigningDate_SendKeys().btn_Audit_Click();

            SelectPlanCode.Initialize().ClosingDocs_SelectPlanCode();

            SelectReportType.Initialize().rdb_Preview_Select().btn_OK_Click();

            ClosingDocsAudit.Initialize().cmb_OrderType_SelectByText("Pre-Closing").btn_OrderDocs_Click();

            SelectDocumentsClosing.Initialize().btn_Send_Click();

            SendDisclosuresClosing.Initialize().txt_BorrowerAuthorization_SendKeys(AuthorizationCode).btn_Send_Click();

            EncompassDialogCDSent.Initialize().btn_OK_Click();

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

            BorrowerLoanCenterLogIn.Initialize().txt_Email_SendKeys(BorrowerEmail).txt_Password_SendKeys(LoanCenterPassword).btn_Login_Click();

            CheckLoanStatus.Initialize().fn_SelectFirstRow(); LoanDetail.Initialize().btn_View_Click();

            VerifyIdentity.Initialize().txt_AuthorizationCode_SendKeys(AuthorizationCode).btn_Next_Click();

            DocuSign.Initialize().fn_ESignWholeDocument(); BaseSeleniumPage.CloseDriver();

            DocsOut.Open_FromLogTab().txt_PropertyInfoParcelNumber_SendKeys().chk_ReviewTasks_Check().chk_Finish_Check();
        }
예제 #2
0
        public void EITQ_3794(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(MasterData.TestID + " (First Payment Month = " + MasterData.ImpoundsFirstPayment + ")");

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

            try
            {
                //Impounds(unlocked loan must be up to Step 4 of Disclosure Prep(TRID) form)


                //extentTest.Pass("Pass step description.");

                AttachToProcess(Processes.Encompass, 5);

                URLA_Page1
                .OpenForm_FromFormsTab()
                .txt_SubjectProperty_ZipCode_SendKeys(MasterData.Zip);
                extentTest.Pass("Verified Subject Property is in " + MasterData.City + ", " + MasterData.State, MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_address"), true)).Build());

                RegZCD
                .OpenForm_FromFormsTab()
                .txt_FirstPaymentDate_SendKeys(MasterData.FirstPaymentDate);
                extentTest.Pass("Populated First Payment Date field [682] on RegZ-CD with " + MasterData.FirstPaymentDate, MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_FirstPaymentDate"), true)).Build());

                Itemization
                .OpenForm_FromFormsTab()
                .btn_ScrollDown1100_Click()
                .btn_AggregateSetup_Click();

                AggregateSetup
                .Initialize()
                .DragWindow_AggregateSetup();
                extentTest.Pass("Opened Aggregate Setup window and verified Due Date(s) = " + MasterData.ImpoundsDueDates + " and verified Property Taxes mths field [1386] = " + MasterData.ImpoundsMonths + " when First Payment Month = " + MasterData.ImpoundsFirstPayment, MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_impounds"), true)).Build());

                AggregateSetup
                .Initialize()
                .btn_OK_Click();
                extentTest.Pass("Verified line 1004 Property Taxes mths field [1386] remains populated with '" + MasterData.ImpoundsMonths + "' after Aggregate Setup window is closed", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_AggregateSetupClosed"), true)).Build());

                Itemization
                .Initialize()
                .btn_ScrollUp900_Click();
                extentTest.Pass("Verified line 904 Property Taxes mths field is populated with '" + MasterData.Impounds904Months + "' only when First Payment Month '" + MasterData.ImpoundsFirstPayment + "' is the same as Due Date(s) '" + MasterData.ImpoundsDueDates + "'", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_line904"), true)).Build());

                Itemization
                .Initialize()
                .txt_PropertyTaxesMths_SendKeys(" ");
            }

            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);
            }
        }
        public void TicketTesting(IDictionary <string, string> data)
        {
            MasterData = new objMasterData(data);
            MasterData.TestResultPathStem = pathStem;
            className = System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name;
            Step step = new Step();

            step.Action         = string.Format("Test: {0}", MasterData.TestDescription);
            step.ExpectedResult = string.Format("");
            step.ActualResult   = string.Format("");
            step.Status         = "Pass";
            step.Time           = DateTime.Now.ToString();

            try
            {
                AttachToProcess(Processes.Encompass, 5);

                //Impounds (unlocked loan must be up to Step 4 of Disclosure Prep (TRID) form)

                URLA_Page1
                .OpenForm_FromFormsTab()
                //.txt_SubjectProperty_City_SendKeys(MasterData.City)
                //.txt_SubjectProperty_County_SendKeys(MasterData.County)
                .txt_SubjectProperty_ZipCode_SendKeys(MasterData.Zip);
                //Keyboard.Instance.PressSpecialKey(KeyboardInput.SpecialKeys.ESCAPE); Thread.Sleep(3000); //when Select a City window needs to be bypassed (must populate City, State, County, AND Zip Code beforehand)
                Keyboard.Instance.PressSpecialKey(KeyboardInput.SpecialKeys.RETURN); Thread.Sleep(3000); //when zip code or top entry of Select a City window will populate City/State/County (City, State, and County can be commented out)

                RegZCD
                .OpenForm_FromFormsTab()
                .txt_FirstPaymentDate_SendKeys(MasterData.FirstPaymentDate);

                Itemization
                .OpenForm_FromFormsTab()
                .btn_ScrollDown1100_Click()
                .btn_AggregateSetup_Click();

                AggregateSetup
                .Initialize()
                .DragWindow_AggregateSetup();
                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + MasterData.TestID + " " + MasterData.State + " - Due date(s) " + MasterData.ImpoundsDueDates + " and field [1386] is set to " + MasterData.ImpoundsMonths + " when first payment date is " + MasterData.FirstPaymentDate);

                Keyboard.Instance.PressSpecialKey(KeyboardInput.SpecialKeys.RETURN); Thread.Sleep(2000);
                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + MasterData.TestID + " " + MasterData.State + " - Field [1386] remains populated with " + MasterData.ImpoundsMonths + " after aggregate setup is closed");

                Itemization
                .Initialize()
                .btn_ScrollUp900_Click();
                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + MasterData.TestID + " " + MasterData.State + " - Line 904 is populated with " + MasterData.Impounds904Months + " only when first payment month " + MasterData.ImpoundsFirstPayment + " is in due date(s) " + MasterData.ImpoundsDueDates);

                Itemization
                .Initialize()
                .txt_PropertyTaxesMths_SendKeys(" ");
            }



            catch (Exception ex)
            {
                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
            {
                Report.addStep(step);
            }
        }