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