public void EncompassNewLoanCreation(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.TestID);
            step.ExpectedResult = string.Format("");
            step.ActualResult   = string.Format("");
            step.Status         = "Pass";
            step.Time           = DateTime.Now.ToString();

            try
            {
                AttachToProcess(Processes.Encompass, 5);
            }

            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);
            }
        }
示例#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 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);
            }
        }
        public void EITQ_3708_Other_Disclosures(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);
            //MasterData.TestResultPathStem = string.Format("{0}\\{1}\\{2} - {3}", FileUtilities.DefaultTestResultDirectory_ShareDrive, className, 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 + " Property State Trigger");

            string StepDetails = string.Format("Property State Trigger");
            bool   StepStatus  = true;
            string MethodName  = System.Reflection.MethodBase.GetCurrentMethod().Name;

            try
            {
                AttachToProcess(Processes.Encompass, 5);

                //bool expectedFirstBoxChecked = data["FirstBoxChecked"].ToLower() == "true" ? true : false;
                //bool expectedSecondBoxChecked = data["SecondBoxChecked"].ToLower() == "true" ? true : false;

                //if (data["FirstBoxChecked"].ToLower() == "true")
                //    expectedFirstBoxChecked = true;
                //else
                //    expectedFirstBoxChecked = false;

                //bool actualFirstBoxChecked;
                //bool actualSecondBoxChecked;

                //Assert.AreEqual(expectedMessage, actualMessage, "Test Failed!!!");


                //Subject Property State trigger
                ClosingDisclosurePage5
                .Initialize()
                .chk_StateLawMayProtect_Check()
                .chk_StateLawDoesNotProtect_Check();
                extentTest.Pass("Other Disclosures fields are not populated", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_FieldsBlank"), true)).Build());

                URLA_Page1
                .OpenForm_FromFormsTab()
                .txt_SubjectProperty_ZipCode_SendKeys(MasterData.Zip);
                extentTest.Pass("Changed Subject Property State field [14] to " + MasterData.State, MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_StateChange"), true)).Build());

                ClosingDisclosurePage5
                .OpenForm_FromFormsTab(); Thread.Sleep(2000);
                //.GetFirstCheckBoxState(out actualFirstBoxChecked)
                //               .GetSecondCheckBoxState(out actualSecondBoxChecked);
                extentTest.Pass("Verified Other Disclosures field [CD5.X6] is set to '" + MasterData.TestDescription + "' when Subject Property State field [14] is changed to " + MasterData.State, MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_FieldSet"), true)).Build());


                ////Document Date field trigger
                //RegZCD
                //    .OpenForm_FromFormsTab()
                //    .txt_DocumentDate_SendKeys(" ");

                //URLA_Page1
                //    .OpenForm_FromFormsTab()
                //    .txt_SubjectProperty_ZipCode_SendKeys(MasterData.Zip);
                //extentTest.Pass("Subject Property State field [14] = " + MasterData.State, MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_State"), true)).Build());

                //ClosingDisclosurePage5
                //    .Initialize()
                //    .chk_StateLawMayProtect_Check(false)
                //    .chk_StateLawDoesNotProtect_Check(false);
                //extentTest.Pass("Other Disclosures fields are not populated", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_FieldsBlank"), true)).Build());

                //RegZCD
                //    .OpenForm_FromFormsTab()
                //    .txt_DocumentDate_SendKeys("09/21/18");
                //extentTest.Pass("Changed Document Date field [L770]", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_DocumentDate"), true)).Build());

                //ClosingDisclosurePage5
                //    .OpenForm_FromFormsTab()
                //    .GetFirstCheckBoxState(out actualFirstBoxChecked)
                //    .GetSecondCheckBoxState(out actualSecondBoxChecked);
                //extentTest.Pass("Verified Other Disclosures field [CD5.X6] is set to '" + MasterData.TestDescription + "' when Subject Property State field [14] = " + MasterData.State + ", and Document Date field [L770] is changed", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.TestID + "_FieldSet"), true)).Build());
            }
            catch (Exception ex)
            {
                StepStatus = false;
                BaseTest.ExtentFailStep(ex, StepDetails, "Test Failed.");
                Assert.Fail(ex.ToString());
            }
            finally
            {
                if (StepStatus)
                {
                    extentTest.Pass("Test Passed - reached the end of script");
                }
                //Report.addStep(step);
            }
        }
        public void EITQ_3624_VA_Appraisal_Fees_Updates(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
            {
                //extentTest.Pass("Pass step description.");

                //#region VA Appraisal Fees: 2015 Itemization (loan has already clicked Generate Estimated Closing Dates and Standard Fees)

                //URLA_Page1
                //	.OpenForm_FromFormsTab()
                //	.txt_NoUnits_SendKeys(MasterData.NoUnits)
                //	.txt_SubjectProperty_ZipCode_SendKeys(MasterData.Zip);
                //extentTest.Pass("Set VA loan to " + MasterData.NoUnits + " " + MasterData.PropertyType + " unit(s) in " + MasterData.County + " County, " + MasterData.State, MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.County + " " + MasterData.NoUnits + " " + MasterData.PropertyType + " - 1003Page1"), true)).Build());
                //            Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + MasterData.County + " County, " + MasterData.NoUnits + " " + MasterData.PropertyType + " unit(s) - 1003 Page 1");

                //BorrowerSummary
                //	.OpenForm_FromFormsTab()
                //	.cmb_PropertyType_SendKeys(MasterData.TransPropertyType);
                //extentTest.Pass("Set Property Type field [1041] to '" + MasterData.PropertyType + "'", MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.County + " " + MasterData.NoUnits + " " + MasterData.PropertyType + " - BorSum"), true)).Build());
                //            Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + MasterData.County + " County, " + MasterData.NoUnits + " " + MasterData.PropertyType + " unit(s) - Borrower Summary");

                //DisclosurePrep
                //	.OpenForm_FromFormsTab()
                //	.btn_GenerateEstimatedClosingDatesandStandardFees_Click();

                //Itemization
                //	.OpenForm_FromFormsTab()
                //	.btn_ScrollDownToAppraisal_Click();
                //            extentTest.Pass("Verified line field [641] is populated with " + MasterData.VAAppraisalFee + " for " + MasterData.NoUnits + " " + MasterData.PropertyType + " unit(s) in " + MasterData.County + " County, " + MasterData.State, MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.County + " " + MasterData.NoUnits + " " + MasterData.PropertyType + " - 2015Itemization"), true)).Build());
                //            Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + MasterData.County + " County, " + MasterData.NoUnits + " " + MasterData.PropertyType + " unit(s) - 2015 Itemization");

                //            #endregion


                //            #region VA Appraisal Fees: Appraisal Order and Tracking (loan must have Intent to Proceed)

                //            URLA_Page1
                //                .OpenForm_FromFormsTab()
                //                .txt_SubjectProperty_ZipCode_SendKeys(MasterData.Zip);
                //            extentTest.Pass("Subject Property on VA loan is in " + MasterData.County + " County, " + MasterData.State, MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.County + " " + MasterData.NoUnits + " " + MasterData.PropertyType + " - 1003Page1"), true)).Build());
                //            Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + MasterData.County + " County, " + MasterData.NoUnits + " unit(s) - 1003 Page 1");

                //            AppraisalOrderAndTracking
                //                .OpenForm_FromFormsTab()
                //                .cmb_PropertyType_SendKeys(MasterData.PropertyType)
                //                .txt_NoUnits_SendKeys(MasterData.NoUnits)
                //                .chk_EnterPaymentInfoForBorrower_Check(false)
                //                .chk_EnterPaymentInfoForBorrower_Check(true)
                //                .DragPaymentProcessingWindow();
                //            extentTest.Pass("Verify fee is " + MasterData.VAAppraisalFee + " for " + MasterData.NoUnits + " " + MasterData.PropertyType + " unit(s) in " + MasterData.County + " County, " + MasterData.State, MediaEntityBuilder.CreateScreenCaptureFromPath(Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), string.Format(MasterData.County + " " + MasterData.NoUnits + " " + MasterData.PropertyType + " - 2015Itemization"), true)).Build());
                //            Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + MasterData.County + " County, " + MasterData.NoUnits + " " + MasterData.PropertyType + " unit(s) - PaymentProcessing");

                //            PaymentProcessing
                //                .Initialize()
                //                .btn_Close_Click();

                //            #endregion
            }

            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);
            }
        }
示例#6
0
        public void EITQ_3276_Maryland_Tax_Impounds_Primary_Retest(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
            {
                //extentTest.Pass("Pass step description.");

                //#region VA Appraisals: 2015 Itemization (loan has already clicked Generate Estimated Closing Dates and Standard Fees)

                ////1 unit (set address)
                //URLA_Page1
                //	.OpenForm_FromFormsTab()
                //	.txt_NoUnits_SendKeys("1")
                //	.txt_SubjectProperty_ZipCode_SendKeys(MasterData.Zip);
                //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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + " 1 unit");

                //TransmittalSummary
                //	.OpenForm_FromFormsTab()
                //	.cmb_PropertyType_SendKeys("Detached");
                //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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + " Detached");

                //DisclosurePrep
                //	.OpenForm_FromFormsTab()
                //	.btn_GenerateEstimatedClosingDatesandStandardFees_Click();

                //Itemization
                //	.OpenForm_FromFormsTab()
                //	.btn_ScrollDownToAppraisal_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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + "Detached 1 unit " + MasterData.TestDescription);

                ////2 unit
                //URLA_Page1
                //	.OpenForm_FromFormsTab()
                //	.txt_NoUnits_SendKeys("2");
                //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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + " 2 unit");

                //DisclosurePrep
                //	.OpenForm_FromFormsTab()
                //	.btn_GenerateEstimatedClosingDatesandStandardFees_Click();

                //Itemization
                //	.OpenForm_FromFormsTab()
                //	.btn_ScrollDownToAppraisal_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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + "Detached 2 unit " + MasterData.TestDescription);

                ////3 unit
                //URLA_Page1
                //	.OpenForm_FromFormsTab()
                //	.txt_NoUnits_SendKeys("3");
                //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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + " 3 unit");

                //DisclosurePrep
                //	.OpenForm_FromFormsTab()
                //	.btn_GenerateEstimatedClosingDatesandStandardFees_Click();

                //Itemization
                //	.OpenForm_FromFormsTab()
                //	.btn_ScrollDownToAppraisal_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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + "Detached 3 unit " + MasterData.TestDescription);

                ////4 unit
                //URLA_Page1
                //	.OpenForm_FromFormsTab()
                //	.txt_NoUnits_SendKeys("4");
                //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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + " 4 unit");

                //DisclosurePrep
                //	.OpenForm_FromFormsTab()
                //	.btn_GenerateEstimatedClosingDatesandStandardFees_Click();

                //Itemization
                //	.OpenForm_FromFormsTab()
                //	.btn_ScrollDownToAppraisal_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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + "Detached 4 unit " + MasterData.TestDescription);

                ////Condo
                //URLA_Page1
                //	.OpenForm_FromFormsTab()
                //	.txt_NoUnits_SendKeys("1");
                //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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + " 1 unit condo");

                //TransmittalSummary
                //	.OpenForm_FromFormsTab()
                //	.cmb_PropertyType_SendKeys("Condominium");
                //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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + " condo");

                //DisclosurePrep
                //	.OpenForm_FromFormsTab()
                //	.btn_GenerateEstimatedClosingDatesandStandardFees_Click();

                //Itemization
                //	.OpenForm_FromFormsTab()
                //	.btn_ScrollDownToAppraisal_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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + "condo " + MasterData.TestDescription);


                //#endregion


                //#region VA Appraisals: Appraisal Order and Tracking (loan must have Intent to Proceed)

                ////1 unit (set address)
                //URLA_Page1
                //	.OpenForm_FromFormsTab()
                //	.txt_SubjectProperty_ZipCode_SendKeys(MasterData.Zip);
                //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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "Payment Processing " + MasterData.TestID);

                //AppraisalOrderAndTracking
                //	.OpenForm_FromFormsTab()
                //	.cmb_PropertyType_SendKeys("Detached")
                //	.txt_NoUnits_SendKeys("1")
                //	.chk_EnterPaymentInfoForBorrower_Check(false)
                //	.chk_EnterPaymentInfoForBorrower_Check(true)
                //	.DragPaymentProcessingWindow();
                //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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "Payment Processing " + MasterData.TestID + " 1 unit " + MasterData.TestDescription);

                //PaymentProcessing
                //	.Initialize()
                //	.btn_Close_Click();

                ////2 unit
                //AppraisalOrderAndTracking
                //	.Initialize()
                //	.cmb_PropertyType_SendKeys("Detached")
                //	.txt_NoUnits_SendKeys("2")
                //	.chk_EnterPaymentInfoForBorrower_Check(false)
                //	.chk_EnterPaymentInfoForBorrower_Check(true)
                //	.DragPaymentProcessingWindow();
                //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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "Payment Processing " + MasterData.TestID + " 2 unit " + MasterData.TestDescription);

                //PaymentProcessing
                //	.Initialize()
                //	.btn_Close_Click();

                ////3 unit
                //AppraisalOrderAndTracking
                //	.OpenForm_FromFormsTab()
                //	.cmb_PropertyType_SendKeys("Detached")
                //	.txt_NoUnits_SendKeys("3")
                //	.chk_EnterPaymentInfoForBorrower_Check(false)
                //	.chk_EnterPaymentInfoForBorrower_Check(true)
                //	.DragPaymentProcessingWindow();
                //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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "Payment Processing " + MasterData.TestID + " 3 unit " + MasterData.TestDescription);

                //PaymentProcessing
                //	.Initialize()
                //	.btn_Close_Click();

                ////4 unit
                //AppraisalOrderAndTracking
                //	.OpenForm_FromFormsTab()
                //	.txt_NoUnits_SendKeys("4")
                //	.chk_EnterPaymentInfoForBorrower_Check(false)
                //	.chk_EnterPaymentInfoForBorrower_Check(true)
                //	.DragPaymentProcessingWindow();
                //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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "Payment Processing " + MasterData.TestID + " 4 unit " + MasterData.TestDescription);

                //PaymentProcessing
                //	.Initialize()
                //	.btn_Close_Click();

                ////condo
                //AppraisalOrderAndTracking
                //	.OpenForm_FromFormsTab()
                //	.cmb_PropertyType_SendKeys("Condominium")
                //	.txt_NoUnits_SendKeys("1")
                //	.chk_EnterPaymentInfoForBorrower_Check(false)
                //	.chk_EnterPaymentInfoForBorrower_Check(true)
                //	.DragPaymentProcessingWindow();
                //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());
                //Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "Payment Processing " + MasterData.TestID + " condo " + MasterData.TestDescription);

                //PaymentProcessing
                //	.Initialize()
                //	.btn_Close_Click();

                //#endregion
            }

            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);
            }
        }
示例#8
0
        public void Regression(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.TestID);
            step.ExpectedResult = string.Format("");
            step.ActualResult   = string.Format("");
            step.Status         = "Pass";
            step.Time           = DateTime.Now.ToString();

            try
            {
                AttachToProcess(Processes.Encompass, 5);

                #region Launch and Login

                //LaunchApplication(DesktopApps.Encompass); Launcher.Initialize().cmb_EnvironmentID_SelectByText(MasterData.EnvironmentID).btn_Login_Click(); AttachToProcess(Processes.Encompass, 5);

                //Login.Initialize().txt_Username_SendKeys(MasterData.LoanOfficer).txt_Password_SendKeys("P@ramount1").btn_Login_Click();

                //Thread.Sleep(10000); EncompassMain.Initialize().Resize().tab_Pipeline_Select();

                //Pipeline.Initialize().btn_NewLoan_Click(); NewLoan.Initialize().cmb_LoanTemplateFolder_SelectByText("PEM Direct").SelectItem_DirectConvRefinance();

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

                #endregion Launch and Login

                #region Loan Creation w/o Test Console

                //BorrowerSummary
                //	.OpenForm_FromFormsTab()
                //	.txt_FirstName_SendKeys(MasterData.BorrowerFirstName)
                //	.txt_LastName_SendKeys(MasterData.BorrowerLastName)
                //	.txt_SocialSecurityNumber_SendKeys(MasterData.BorrowerSSN)
                //	.txt_DOB_SendKeys(MasterData.BorrowerDOB)
                //	.txt_HomePhone_SendKeys(MasterData.HomePhone)
                //	.txt_MaritalStatus_SendKeys("u")
                //	.txt_HomeEmail_SendKeys(MasterData.HomeEmail)
                //	.txt_PresentAddress_SendKeys(MasterData.Address)
                //	.txt_PresentZip_SendKeys(MasterData.Zip)
                //	.txt_NumberofYears_SendKeys("10")
                //	.txt_NumberofMonths_SendKeys("11")
                //	.chk_PresentAddress_OwnRent_Check("Own")
                //	.cmb_InformationProvidedBy_SendKeys(MasterData.InformationProvidedBy)
                //	.chk_BorrowerVerbalAuthForCreditPull_Check(true)
                //	.btn_CopyfromPresent_Click()
                //	.txt_EstimatedValue_SendKeys(MasterData.EstimatedValue)
                //	.txt_AppraisedValue_SendKeys(MasterData.AppraisedValue)
                //	.chk_LoanPurpose_Check("No Cash-Out Refi")
                //	.chk_PropertyWillBe_Check(MasterData.PropertyWillBe)
                //	.txt_LoanAmount_SendKeys(MasterData.LoanAmount);

                //EncompassDialog
                //	.Initialize()
                //	.btn_OK_Click();

                //URLA_Page1
                //	.OpenForm_FromFormsTab()
                //	.txt_NoUnits_SendKeys("1")
                //	.txt_YearBuilt_SendKeys("2006")
                //	.txt_OriginalCost_SendKeys(MasterData.LoanAmount)
                //	.txt_ExistingLien_SendKeys(MasterData.LoanAmount)
                //	.cmb_SourceofDownPayment_SendKeys("Checking/Savings")
                //	.txt_School_SendKeys("20")
                //	.txt_Dependents_SendKeys("0")
                //	.chk_MailingAddress_Check("Same as present");

                //VerificationOfEmployment
                //	.OpenFromURLA_Page1()
                //	.btn_VOENewVerif_Click();

                //VOE_NewEmployment
                //	.Initialize()
                //	.rdb_Borrower_Select()
                //	.rdb_EmploymentStatus_Select()
                //	.btn_OK_Click();

                //VerificationOfEmployment
                //	.Initialize()
                //	.txt_EmployerName_SendKeys("test")
                //	.txt_EmployerAttn_SendKeys("test")
                //	.txt_EmployerAddress_SendKeys("test")
                //	.txt_EmployerZip_SendKeys("90210")
                //	.txt_EmployerPhone_SendKeys("5646546544")
                //	.txt_EmployerEmail_SendKeys("*****@*****.**")
                //	.txt_BusinessName_SendKeys("test")
                //	.txt_BusinessPhone_SendKeys("5646546544")
                //	.txt_BusinessPosition_SendKeys("test")
                //	.txt_DateHired_SendKeys("063000")
                //	.txt_YearsinthisJob_SendKeys("17")
                //	.txt_MonthsinthisJob_SendKeys("0")
                //	.txt_YearsinLineofWork_SendKeys("17")
                //	.txt_BasePay_SendKeys("6500")
                //	.btn_VOEClose_Click();

                //URLA_Page2
                //	.OpenForm_FromFormsTab()
                //	.btn_EditFieldValueBorrowerBase_Click();

                //URLA_Page2_CalculateBaseIncome
                //	.Initialize()
                //	.chk_CopyfrompresentjobinVOE_Check(true)
                //	.btn_OK_Click();

                //VerificationOfDepository
                //	.OpenFromURLA_Page2()
                //	.btn_VODNewVerif_Click()
                //	.cmb_VODisfor_SendKeys("Borrower")
                //	.txt_DepositoryName_SendKeys("test")
                //	.txt_DepositoryAttn_SendKeys("test")
                //	.txt_DepositoryAddress_SendKeys("test")
                //	.txt_DepositoryZip_SendKeys("90210")
                //	.txt_DepositoryPhone_SendKeys("5646546544")
                //	.txt_DepositoryEmail_SendKeys("*****@*****.**")
                //	.txt_AccountType1_SendKeys("Checking Account")
                //	.txt_AccountNumber1_SendKeys("32132132113")
                //	.txt_AccountBalance1_SendKeys("10000")
                //	.txt_AccountType2_SendKeys("Savings Account")
                //	.txt_AccountNumber2_SendKeys("56454656465")
                //	.txt_AccountBalance2_SendKeys("100000")
                //	.btn_VODClose_Click();

                //URLA_Page3
                //	.OpenForm_FromFormsTab()
                //	.btn_EnterDataManually_Refinance_Click()
                //	.txt_Refinance_SendKeys(MasterData.LoanAmount)
                //	.txt_Declaration_a_SendKeys("N")
                //	.txt_Declaration_b_SendKeys("N")
                //	.txt_Declaration_c_SendKeys("N")
                //	.txt_Declaration_d_SendKeys("N")
                //	.txt_Declaration_e_SendKeys("N")
                //	.txt_Declaration_f_SendKeys("N")
                //	.txt_Declaration_g_SendKeys("N")
                //	.txt_Declaration_h_SendKeys("N")
                //	.txt_Declaration_i_SendKeys("N")
                //	.txt_Declaration_j_SendKeys("Y")
                //	.txt_Declaration_k_SendKeys("N")
                //	.txt_Declaration_l_SendKeys("Y")
                //	.txt_Declaration_m_SendKeys("Y")
                //	.txt_Declaration_m1_SendKeys("PR")
                //	.txt_Declaration_m2_SendKeys("S")
                //	.chk_PrimaryBorrower_Ethnicity_Check(MasterData.BorrowerEthnicity)
                //	.chk_PrimaryBorrower_Race_Check(MasterData.BorrowerRace)
                //	.chk_PrimaryBorrower_Sex_Check(MasterData.BorrowerSex);

                //BorrowerSummary
                //	.OpenForm_FromFormsTab()
                //	.btn_OrderCredit_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_Loan_Select();

                //TransmittalSummary
                //	.OpenForm_FromFormsTab()
                //	.cmb_PropertyType_SendKeys("1 unit");

                //BankerLoanSubmission
                //	.OpenForm_FromFormsTab()
                //	.txt_ClosingMonthPayment_SendKeys("test")
                //	.txt_LastMortgagePayment_SendKeys("081517")
                //	.cmb_CreditOnNonBorrowingSpouse_SendKeys("CONFIRMED")
                //	.btn_BankerCertificationBLS_Click();

                //#region eFolder Bypass

                //EncompassMain.Initialize().ExitEncompass();EncompassDialog.Initialize().btn_Yes_Click();ComplianceAlert.Initialize().btn_Close_Click();

                //LaunchApplication(DesktopApps.Encompass);Launcher.Initialize().cmb_EnvironmentID_SelectByText(MasterData.EnvironmentID).btn_Login_Click();

                //Login.Initialize().txt_Username_SendKeys("test_qa_admin").txt_Password_SendKeys("P@ramount1").btn_Login_Click();EncompassMain.Initialize();Thread.Sleep(10000);EncompassMain.Initialize().Resize().tab_Pipeline_Select();

                //Pipeline.Initialize().cmb_PipelineView_SelectByText("QA View").cmb_LoanFolder_SelectByText(MasterData.LoanFolder).Pipeline_SelectCurrentLoan(MasterData.LoanNumber);

                //Encompass_eFolder.Open_eFolder().btn_New_Click();AddDocument.Initialize().rdb_NewDocument_Select().btn_OK_Click();DocumentDetails.Initialize().btn_BrowseAndAttach_Click();Thread.Sleep(10000);

                //DocumentDetails.Initialize().cmb_DocumentName_SelectByText("Underwriting").chk_Requested_Check(true).btn_Close_Click();Encompass_eFolder.Initialize().btn_Close_Click();

                //EncompassMain.Initialize().ExitEncompass();EncompassDialog.Initialize().btn_Yes_Click();ComplianceAlert.Initialize().btn_Close_Click();

                //LaunchApplication(DesktopApps.Encompass);

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

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

                //EncompassMain
                //	.Initialize();
                //	Thread.Sleep(10000);

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

                //Pipeline
                //	.Initialize()
                //	.cmb_PipelineView_SelectByText("QA View")
                //	.cmb_LoanFolder_SelectByText(MasterData.LoanFolder)
                //	.Pipeline_SelectCurrentLoan(MasterData.LoanNumber);

                //#endregion eFolder Bypass

                #endregion Loan Creation w/o Test Console

                #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(MasterData.BorrowerEmail).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();

                #endregion eConsent

                #region Floating 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).btn_Continue_Click();

                //OB_ProductSearch.Initialize().btn_Submit_Click(); Thread.Sleep(10000); OB_LockForm.Initialize().btn_UpdateEncompass_Click(); Thread.Sleep(10000); OB_PricingImportEncompassUpdate.Initialize().btn_Close_Click();

                #endregion

                #region Floating 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).btn_Continue_Click();

                //OB_ProductSearch.Initialize().btn_Submit_Click();OB_SearchResults.Initialize().SelectLoanProgram_Click("LP CONF 30YR FIXED");Thread.Sleep(10000); OB_LockForm.Initialize().btn_RequestLock_Click(); Thread.Sleep(10000); OB_PricingImportEncompassUpdate.Initialize().btn_Close_Click();

                //OB_LockRequestDialog.Initialize().btn_ExitLoan_Click();

                #endregion

                BorrowerSummary.OpenForm_FromFormsTab().CopyLoanNumber();
            }

            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);
            }
        }
示例#9
0
        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);

                #region VA Appraisals: 2015 Itemization (loan has already clicked Generate Estimated Closing Dates and Standard Fees)

                //1 unit (set address)
                URLA_Page1
                .OpenForm_FromFormsTab()
                .txt_NoUnits_SendKeys("1")
                .txt_SubjectProperty_ZipCode_SendKeys(MasterData.Zip);
                //.ChangeSubjectProperty(MasterData.County, MasterData.City, MasterData.State, MasterData.Zip);

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + " 1 unit");

                TransmittalSummary
                .OpenForm_FromFormsTab()
                .cmb_PropertyType_SendKeys("Detached");

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + " Detached");

                DisclosurePrep
                .OpenForm_FromFormsTab()
                .btn_GenerateEstimatedClosingDatesandStandardFees_Click();

                Itemization
                .OpenForm_FromFormsTab()
                .btn_ScrollDownToAppraisal_Click();

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + "Detached 1 unit " + MasterData.TestDescription);

                //2 unit
                URLA_Page1
                .OpenForm_FromFormsTab()
                .txt_NoUnits_SendKeys("2");

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + " 2 unit");

                DisclosurePrep
                .OpenForm_FromFormsTab()
                .btn_GenerateEstimatedClosingDatesandStandardFees_Click();

                Itemization
                .OpenForm_FromFormsTab()
                .btn_ScrollDownToAppraisal_Click();

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + "Detached 2 unit " + MasterData.TestDescription);

                //3 unit
                URLA_Page1
                .OpenForm_FromFormsTab()
                .txt_NoUnits_SendKeys("3");

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + " 3 unit");

                DisclosurePrep
                .OpenForm_FromFormsTab()
                .btn_GenerateEstimatedClosingDatesandStandardFees_Click();

                Itemization
                .OpenForm_FromFormsTab()
                .btn_ScrollDownToAppraisal_Click();

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + "Detached 3 unit " + MasterData.TestDescription);

                //4 unit
                URLA_Page1
                .OpenForm_FromFormsTab()
                .txt_NoUnits_SendKeys("4");

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + " 4 unit");

                DisclosurePrep
                .OpenForm_FromFormsTab()
                .btn_GenerateEstimatedClosingDatesandStandardFees_Click();

                Itemization
                .OpenForm_FromFormsTab()
                .btn_ScrollDownToAppraisal_Click();

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + "Detached 4 unit " + MasterData.TestDescription);

                //Condo
                URLA_Page1
                .OpenForm_FromFormsTab()
                .txt_NoUnits_SendKeys("1");

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + " 1 unit condo");

                TransmittalSummary
                .OpenForm_FromFormsTab()
                .cmb_PropertyType_SendKeys("Condominium");

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + " condo");

                DisclosurePrep
                .OpenForm_FromFormsTab()
                .btn_GenerateEstimatedClosingDatesandStandardFees_Click();

                Itemization
                .OpenForm_FromFormsTab()
                .btn_ScrollDownToAppraisal_Click();

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "2015 Itemization " + MasterData.TestID + "condo " + MasterData.TestDescription);


                #endregion


                #region VA Appraisals: Appraisal Order and Tracking (loan must have Intent to Proceed)

                //1 unit (set address)
                URLA_Page1
                .OpenForm_FromFormsTab()
                .txt_SubjectProperty_ZipCode_SendKeys(MasterData.Zip);
                //.ChangeSubjectProperty(MasterData.County, MasterData.City, MasterData.State, MasterData.Zip);

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "Payment Processing " + MasterData.TestID);

                AppraisalOrderAndTracking
                .OpenForm_FromFormsTab()
                .cmb_PropertyType_SendKeys("Detached")
                .txt_NoUnits_SendKeys("1")
                .chk_EnterPaymentInfoForBorrower_Check(false)
                .chk_EnterPaymentInfoForBorrower_Check(true)
                .DragPaymentProcessingWindow();

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "Payment Processing " + MasterData.TestID + " 1 unit " + MasterData.TestDescription);

                PaymentProcessing
                .Initialize()
                .btn_Close_Click();

                //2 unit
                AppraisalOrderAndTracking
                .Initialize()
                .cmb_PropertyType_SendKeys("Detached")
                .txt_NoUnits_SendKeys("2")
                .chk_EnterPaymentInfoForBorrower_Check(false)
                .chk_EnterPaymentInfoForBorrower_Check(true)
                .DragPaymentProcessingWindow();

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "Payment Processing " + MasterData.TestID + " 2 unit " + MasterData.TestDescription);

                PaymentProcessing
                .Initialize()
                .btn_Close_Click();

                //3 unit
                AppraisalOrderAndTracking
                .OpenForm_FromFormsTab()
                .cmb_PropertyType_SendKeys("Detached")
                .txt_NoUnits_SendKeys("3")
                .chk_EnterPaymentInfoForBorrower_Check(false)
                .chk_EnterPaymentInfoForBorrower_Check(true)
                .DragPaymentProcessingWindow();

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "Payment Processing " + MasterData.TestID + " 3 unit " + MasterData.TestDescription);

                PaymentProcessing
                .Initialize()
                .btn_Close_Click();

                //4 unit
                AppraisalOrderAndTracking
                .OpenForm_FromFormsTab()
                .txt_NoUnits_SendKeys("4")
                .chk_EnterPaymentInfoForBorrower_Check(false)
                .chk_EnterPaymentInfoForBorrower_Check(true)
                .DragPaymentProcessingWindow();

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "Payment Processing " + MasterData.TestID + " 4 unit " + MasterData.TestDescription);

                PaymentProcessing
                .Initialize()
                .btn_Close_Click();

                //condo
                AppraisalOrderAndTracking
                .OpenForm_FromFormsTab()
                .cmb_PropertyType_SendKeys("Condominium")
                .txt_NoUnits_SendKeys("1")
                .chk_EnterPaymentInfoForBorrower_Check(false)
                .chk_EnterPaymentInfoForBorrower_Check(true)
                .DragPaymentProcessingWindow();

                Screenshot.TakeScreenShot(Screenshot.TakeSS_FullDesktop(), @"C:\Users\hcharls\Desktop\Test Screenshots\" + "Payment Processing " + MasterData.TestID + " condo " + MasterData.TestDescription);

                PaymentProcessing
                .Initialize()
                .btn_Close_Click();

                #endregion
            }

            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);
            }
        }