Ejemplo n.º 1
0
        public void NavigationFromFundsToAssetSummary()
        {
            try
            {
                test = extent.CreateTest("NavigationFromFundsToAssetSummary").Info("Test Started");
                AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);
                funds.SelectFundsFromDropdwon();
                funds.ClickAssetSummary();
                //Verify user navigates to property details from asset summary Fund A
                String title = funds.NavigateToPropertyDetails();
                Assert.AreEqual("Asset Summary", title, "User lands on Asset Summary Screen");
                Boolean res = funds.NavigateToAssetSummaryBack();
                Assert.IsTrue(res == true, "User does not navigated back to asset summary detail");

                //Verify user navigates to property details from asset summary Fund B
                String title1 = funds.NavigateToPropertyDetails();
                Assert.AreEqual("Asset Summary", title1, "User lands on Asset Summary Screen");
                Boolean res1 = funds.NavigateToAssetSummaryBack();
                Assert.IsTrue(res1 == true, "User does not navigated back to asset summary detail");
                test.Log(Status.Pass, "Test Case passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
 public void Maps_VerifyUserCanSeePropertyNamesonMapPopUp()
 {
     try
     {
         test = extent.CreateTest("Maps_VerifyUserOpensMapOfTheProperty").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         Asset_OperatingSummaryAndMapsPage operating    = new Asset_OperatingSummaryAndMapsPage(BaseTest.driver);
         AssetPropertyDetailsPage          assetdetails = new AssetPropertyDetailsPage(BaseTest.driver);
         AssetSummaryPage asset = new AssetSummaryPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         asset.NavigateToPropertyDetails();
         assetdetails.selectPropertyWithIndustrialType();
         operating.clickMapsTab();
         String propSelected   = operating.ReturnCurrentPropertySelected();
         String propnameonMaps = operating.VerifyPropertyNameOnMapScreen();
         Assert.IsTrue(propSelected == propnameonMaps, "User does not navigate to maps");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void KPI_VerifyCashOnCashCalculation()
 {
     try
     {
         test = extent.CreateTest("KPI_VerifyCashOnCashCalculation").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage   asset      = new AssetSummaryPage(BaseTest.driver);
         Asset_OperatingSummaryAndMapsPage operating = new Asset_OperatingSummaryAndMapsPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         asset.NavigateToPropertyDetails();
         operating.ClickOperatingSummarytab();
         operating.RadioButton_SelectYTD();
         double original   = operating.KPI_ActualCachOnCashYieldValue();
         double calculated = operating.KPI_Calculate_CachOnCashValue();
         Assert.IsTrue(original == calculated, $"Value displayed in KPI:'{original}' does not match:'{calculated}'");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void OperatingSummary_VerifyMaximizeAndMinimizeWorks()
 {
     try
     {
         test = extent.CreateTest("OperatingSummary_VerifyMaximizeAndMinimizeWorks").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage   asset      = new AssetSummaryPage(BaseTest.driver);
         Asset_OperatingSummaryAndMapsPage operating = new Asset_OperatingSummaryAndMapsPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         asset.NavigateToPropertyDetails();
         Thread.Sleep(4000);
         operating.ClickOperatingSummarytab();
         Boolean res = operating.OperatingSummary_minimizeWorks();
         Assert.IsTrue(res == true, "Operating Summary minimize maximize works");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void OperatingSummary_VerifyYearlyIsSelected()
 {
     try
     {
         test = extent.CreateTest("OperatingSummary_VerifyYearlyIsSelected").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage   asset      = new AssetSummaryPage(BaseTest.driver);
         Asset_OperatingSummaryAndMapsPage operating = new Asset_OperatingSummaryAndMapsPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         asset.NavigateToPropertyDetails();
         operating.ClickOperatingSummarytab();
         operating.RadioButton_SelectYearly();
         String label1 = operating.OperatingSummary_ReturnColumnLablel1();
         String label2 = operating.OperatingSummary_ReturnColumnLablel2();
         String label3 = operating.OperatingSummary_ReturnColumnLablel3();
         Assert.IsTrue(label1 == "Yearly Actual" && label2 == "Yearly Budget" && label3 == "Yearly Proforma", $"Operating summary label{label1} does not macth with actual");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void KPI_VerifyCalculationForOccupancy()
 {
     try
     {
         test = extent.CreateTest("KPI_VerifyColumnHeaderLabels").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage   asset      = new AssetSummaryPage(BaseTest.driver);
         Asset_OperatingSummaryAndMapsPage operating = new Asset_OperatingSummaryAndMapsPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         asset.NavigateToPropertyDetails();
         int expected = operating.ReturnLeasedPercentValue();
         operating.ClickOperatingSummarytab();
         int actual = operating.ReturnOccupancyValue();
         Assert.IsTrue(expected == actual, $"Leased percent:{expected} does not match occupancy in KPI:{actual}");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void VerifyLabelsDisplayedInEstimatedFullyFunded()
 {
     try
     {
         test = extent.CreateTest("VerifyLabelsDisplayedInEstimatedFullyFunded").Info("Test Started");
         NavigationMenuPage        navigation = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage          asset      = new AssetSummaryPage(BaseTest.driver);
         Asset_BasisAndDebtTabPage basis      = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         asset.NavigateToPropertyDetails();
         basis.ClickBasisAnddebtTab();
         String loanBal     = basis.ReturnEstimatedFullyFundedCapitalization_LoanBalance();
         String fundEq      = basis.ReturnEstimatedFullyFundedCapitalization_FundEquity();
         String streamEq    = basis.ReturnEstimatedFullyFundedCapitalization_StreamEquity();
         String totalCapita = basis.ReturnEstimatedFullyFundedCapitalization_TotalCapitalization();
         Assert.IsTrue(loanBal == "Loan Balance", "Loan Balance label is not displayed correct");
         Assert.IsTrue(fundEq == "Fund Equity", "Fund Equity label is not displayed correct");
         Assert.IsTrue(streamEq == "Stream Equity", "Stream equity label is not displayed correct");
         Assert.IsTrue(totalCapita == "TOTAL EST FULLY FUNDED CAPITALIZATION", "Total est fully funded capitalization label is not displayed correct");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void KPI_VerifyFieldLabels()
 {
     try
     {
         test = extent.CreateTest("KPI_VerifyFieldLabels").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage   asset      = new AssetSummaryPage(BaseTest.driver);
         Asset_OperatingSummaryAndMapsPage operating = new Asset_OperatingSummaryAndMapsPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         asset.NavigateToPropertyDetails();
         operating.ClickOperatingSummarytab();
         String occupancy   = operating.KPI_VerifyLabelOccupancy();
         String InPlaceRent = operating.KPI_VerifyLabelinPlaceRent();
         String Yoc         = operating.KPI_VerifyLabelYOC();
         String CashOnCash  = operating.KPI_VerifyLabelCashOnCash();
         String DebtYeild   = operating.KPI_VerifyLabelDebtYield();
         String dscr        = operating.KPI_VerifyLabelDSCR();
         Assert.IsTrue(occupancy == "Occupancy", $"Expected:'Occupancy' does not match actual {occupancy}");
         Assert.IsTrue(InPlaceRent == "In Place Avg Rent", $"Expected:'In Place Avg Rent' does not match actual {InPlaceRent}");
         Assert.IsTrue(Yoc == "YOC", $"Expected:'YOC' does not match actual {Yoc}");
         Assert.IsTrue(CashOnCash == "Cash on Cash Yield", $"Expected:'Cash on Cash Yield' does not match actual {CashOnCash}");
         Assert.IsTrue(DebtYeild == "Debt Yield", $"Expected:'Debt Yield' does not match actual {DebtYeild}");
         Assert.IsTrue(dscr == "DSCR", $"Expected:'DSCR' does not match actual {dscr}");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void BasisAndDebtInfo_VerifySeactionHeaderTitles()
 {
     try
     {
         String debt           = "DEBT INFORMATION";
         String Capitalization = "CURRENT CAPITALIZATION";
         String CCostBasis     = "CURRENT COST BASIS";
         String estimated      = "ESTIMATED FULLY FUNDED CAPITALIZATION";
         test = extent.CreateTest("BasisAndDebtInfo_VerifySeactionHeaderTitles").Info("Test Started");
         NavigationMenuPage       navigation   = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage         asset        = new AssetSummaryPage(BaseTest.driver);
         AssetPropertyDetailsPage assetdetails = new AssetPropertyDetailsPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Asset_BasisAndDebtTabPage basis = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         asset.NavigateToPropertyDetails();
         basis.ClickBasisAnddebtTab();
         String title1 = basis.ReturnTableTitle1_DebtInfo();
         Assert.IsTrue(title1 == debt, $"Title on screen '{title1}' does not match expected '{debt}'");
         String title2 = basis.ReturnTableTitle2_CurrentCapitalization();
         Assert.IsTrue(title2 == Capitalization, $"Title on screen '{title2}' does not match expected '{Capitalization}'");
         String title3 = basis.ReturnTableTitle3_CurrentCostBasis();
         Assert.IsTrue(title3 == CCostBasis, $"Title on screen '{title3}' does not match expected '{CCostBasis}'");
         String title4 = basis.ReturnTableTitle4_EstimatedFullyFunded();
         Assert.IsTrue(title4 == estimated, $"Title on screen '{title4}' does not match expected '{estimated}'");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void CurrentCapitalization_PSFValuesForLastFourFields()
 {
     try
     {
         test = extent.CreateTest("CurrentCapitalization_PSFValuesForLastFourFields").Info("Test Started");
         NavigationMenuPage        navigation   = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage          asset        = new AssetSummaryPage(BaseTest.driver);
         AssetPropertyDetailsPage  assetdetails = new AssetPropertyDetailsPage(BaseTest.driver);
         Asset_BasisAndDebtTabPage basis        = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         asset.NavigateToPropertyDetails();
         basis.ClickBasisAnddebtTab();
         double ActualValue1     = basis.CurrentCapitalization_ReturnActualPositiveCashflowPSFValue();
         double CalculatedValue1 = basis.CurrentCapitalization_CalculatePositiveCashflowPSFValue();
         Assert.IsTrue(ActualValue1 == CalculatedValue1, $"Value shown on screen {ActualValue1} does not match calculated {CalculatedValue1}");
         double ActualValue2     = basis.CurrentCapitalization_ReturnActualDistributionsPSFValue();
         double CalculatedValue2 = basis.CurrentCapitalization_CalculateDistributionsPSFValue();
         Assert.IsTrue(ActualValue2 == CalculatedValue2, $"Value shown on screen {ActualValue2} does not match calculated {CalculatedValue2}");
         double ActualValue3     = basis.CurrentCapitalization_ReturnActualNetCurrentAssetsPSFValue();
         double CalculatedValue3 = basis.CurrentCapitalization_CalculateNetCurrentAssetsPSFValue();
         Assert.IsTrue(ActualValue3 == CalculatedValue3, $"Value shown on screen {ActualValue3} does not match calculated {CalculatedValue3}");
         double ActualValue4     = basis.CurrentCapitalization_ReturnActualNetCapitalizationPSFValue();
         double CalculatedValue4 = basis.CurrentCapitalization_CalculateNetCapitalizationPSFValue();
         Assert.IsTrue(ActualValue4 == CalculatedValue4, $"Value shown on screen {ActualValue4} does not match calculated {CalculatedValue4}");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void BasisAndDebt_PSFValuesPreeviousLoanAndRenovation()
 {
     try
     {
         test = extent.CreateTest("BasisAndDebt_PSFValuesPreeviousLoanAndRenovation").Info("Test Started");
         NavigationMenuPage       navigation   = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage         asset        = new AssetSummaryPage(BaseTest.driver);
         AssetPropertyDetailsPage assetdetails = new AssetPropertyDetailsPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Asset_BasisAndDebtTabPage basis = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         asset.NavigateToPropertyDetails();
         basis.ClickBasisAnddebtTab();
         double PreActualValue     = basis.CurrentCostBasis_ReturnActualPreviousAcquisitionPSFValue();
         double PreCalculatedValue = basis.CurrentCostBasis_CalculatePreviousAcquisitionPSFValue();
         Assert.IsTrue(PreActualValue == PreCalculatedValue, $"Value shown on screen {PreActualValue } does not match calculated {PreCalculatedValue}");
         double RenovatnActualValue     = basis.CurrentCostBasis_ReturnActualAcquisitionLoanCostPSFValue();
         double RenovatnCalculatedValue = basis.CurrentCostBasis_CalculateAcquisitionLoanCostPSFValue();
         Assert.IsTrue(RenovatnActualValue == RenovatnCalculatedValue, $"Value shown on screen {RenovatnActualValue} does not match calculated {RenovatnCalculatedValue}");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void BasisAndDebtCCB_PSFValuesForCarryCostAndLeasingCost()
 {
     try
     {
         test = extent.CreateTest("BasisAndDebtCCB_PSFValuesForCarryCostAndLeasingCost").Info("Test Started");
         NavigationMenuPage       navigation   = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage         asset        = new AssetSummaryPage(BaseTest.driver);
         AssetPropertyDetailsPage assetdetails = new AssetPropertyDetailsPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Asset_BasisAndDebtTabPage basis = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         asset.NavigateToPropertyDetails();
         basis.ClickBasisAnddebtTab();
         double carryActualValue     = basis.CurrentCostBasis_ReturnActualCarryCostPSFValue();
         double carryCalculatedValue = basis.CurrentCostBasis_CalculateCarryCostPSFValue();
         Assert.IsTrue(carryActualValue == carryCalculatedValue, $"Value shown on screen {carryActualValue } does not match calculated {carryCalculatedValue}");
         double totalActualValue     = basis.CurrentCostBasis_ReturnActualEquipmentPSFValue();
         double totalCalculatedValue = basis.CurrentCostBasis_CalculateEquipmentPSFValue();
         Assert.IsTrue(totalActualValue == totalCalculatedValue, $"Value shown on screen {totalActualValue} does not match calculated {totalCalculatedValue}");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
        public void BasisAndDebtSummary_VerifyNoDataChangesmadeMessageDisplayed()
        {
            try
            {
                String noChangesmade = "No changes made in data...";
                test = extent.CreateTest("BasisAndDebtSummary_VerifyNoDataChangesmadeMessageDisplayed").Info("Test Started");
                NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
                navigation.ClickMainMenu();
                navigation.ClickPropertyMaintenanceOption();
                Thread.Sleep(3000);
                AssetSummaryPage          asset = new AssetSummaryPage(BaseTest.driver);
                Asset_BasisAndDebtTabPage basis = new Asset_BasisAndDebtTabPage(BaseTest.driver);
                asset.NavigateToPropertyDetails();
                basis.ClickBasisAnddebtTab();
                String alert1 = basis.CurrentCapitalization_VerifyErrorNoChangesmade();
                Assert.IsTrue(alert1 == noChangesmade, $"CurrentCapitalization_ Expected error '{noChangesmade}' does not match actual '{alert1}'");

                String alert2 = basis.CurrentCostBasis_VerifyErrorNoChangesmade();
                Assert.IsTrue(alert2 == noChangesmade, $"CurrentCostBasis_ Expected error '{noChangesmade}' does not match actual '{alert2}'");

                String alert3 = basis.EstimatedFullyFunded_VerifyErrorNoChangesmade();
                Assert.IsTrue(alert3 == noChangesmade, $"EstimatedFullyFunded_ Expected error '{noChangesmade}' does not match actual '{alert3}'");
                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
                driver.Quit();
            }
        }
 public void MaximizeAndMinimizeWorksForAllSections()
 {
     try
     {
         test = extent.CreateTest("MaximizeAndMinimizeWorksForAllSections").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         AssetSummaryPage          asset = new AssetSummaryPage(BaseTest.driver);
         Asset_BasisAndDebtTabPage basis = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         asset.NavigateToPropertyDetails();
         basis.ClickBasisAnddebtTab();
         Boolean debt      = basis.DebtInfo_VerifyMinimizeMaximize();
         Boolean currCost  = basis.CurrentCostBasis_VerifyMinimizeMaximize();
         Boolean currCapit = basis.CurrentCapitalization_VerifyMinimizeMaximize();
         Boolean estimt    = basis.EstimatedFullyFunded_VerifyMinimizeMaximize();
         Assert.IsTrue(debt == currCapit == currCost == estimt == true, "Maximize, minimize does not work for all sections");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void VerifyEditWorksCurrentCostBasisISEditable()
 {
     try
     {
         test = extent.CreateTest("VerifyEditWorksCurrentCostBasisISEditable").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         AssetSummaryPage          asset = new AssetSummaryPage(BaseTest.driver);
         Asset_BasisAndDebtTabPage basis = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         asset.NavigateToPropertyDetails();
         basis.ClickBasisAnddebtTab();
         Boolean AcquL     = basis.EditCurrentCostBasis_UpdatePreviousAcquisition();
         Boolean carryCost = basis.CurrentCostBasis_UpdateCarryCost();
         Assert.IsTrue(AcquL == true && carryCost == true, "Verify current cost basis section is not editable");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void CurrentCostBasisCalculationForTotalCurrentCostBasis()
 {
     try
     {
         test = extent.CreateTest("CurrentCostBasisCalculationForTotalCurrentCostBasis").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         AssetSummaryPage          asset = new AssetSummaryPage(BaseTest.driver);
         Asset_BasisAndDebtTabPage basis = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         asset.NavigateToPropertyDetails();
         basis.ClickBasisAnddebtTab();
         int present    = basis.CurrentCostBasis_PresentValueTotalCurrentCostBasisValue();
         int Calculated = basis.CurrentCostBasis_CalculatedTotalCurrentCostBasisValue();
         Assert.IsTrue(present == Calculated, "Verify net capitalization value is incorrect");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void KPI_VerifyColumnHeaderLabels()
 {
     try
     {
         test = extent.CreateTest("KPI_VerifyColumnHeaderLabels").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage   asset      = new AssetSummaryPage(BaseTest.driver);
         Asset_OperatingSummaryAndMapsPage operating = new Asset_OperatingSummaryAndMapsPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         asset.NavigateToPropertyDetails();
         operating.ClickOperatingSummarytab();
         String actual   = operating.KPI_VerifyColumnLabelActual();
         String budget   = operating.KPI_VerifyColumnLabelBudget();
         String Proforma = operating.KPI_VerifyColumnLabelProforma();
         Assert.IsTrue(actual == "YTD Actual", $"Expected:'YTD Actual' does not match actual {actual}");
         Assert.IsTrue(budget == "YTD Budget", $"Expected:'YTD Budget' does not match actual {budget}");
         Assert.IsTrue(Proforma == "YTD Proforma", $"Expected:'YTD Proforma' does not match actual {Proforma}");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void VerifyEditWorksEstimatedFullyFundedSectionISEditable()
 {
     try
     {
         test = extent.CreateTest("VerifyEditWorksEstimatedFullyFundedSectionISEditabl").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         AssetSummaryPage          asset = new AssetSummaryPage(BaseTest.driver);
         Asset_BasisAndDebtTabPage basis = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         asset.NavigateToPropertyDetails();
         basis.ClickBasisAnddebtTab();
         Boolean loanBal  = basis.Edit_EstimatedFullyFundedLoanBalance();
         Boolean fundEq   = basis.Edit_EstimatedFullyFundedFundEquity();
         Boolean streamEq = basis.Edit_EstimatedFullyFundedStreamEquity();
         Assert.IsTrue(loanBal == true && fundEq == true && streamEq == true, "Verify estimated fully funded section is not editable");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void EstimatedFullyFunded_PSFValuesForAllFields()
 {
     try
     {
         test = extent.CreateTest("EstimatedFullyFunded_PSFValuesForAllFields").Info("Test Started");
         NavigationMenuPage        navigation   = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage          asset        = new AssetSummaryPage(BaseTest.driver);
         AssetPropertyDetailsPage  assetdetails = new AssetPropertyDetailsPage(BaseTest.driver);
         Asset_BasisAndDebtTabPage basis        = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         asset.NavigateToPropertyDetails();
         basis.ClickBasisAnddebtTab();
         double ActualValue1     = basis.EstimatedCapitalization_ReturnActualLoanBalancePSFValue();
         double CalculatedValue1 = basis.EstimatedCapitalization_CalculateLoanBalancePSFValue();
         Assert.IsTrue(ActualValue1 == CalculatedValue1, $"Value shown on screen {ActualValue1} does not match calculated {CalculatedValue1}");
         double ActualValue2     = basis.EstimatedCapitalization_ReturnActualFundEquityPSFValue();
         double CalculatedValue2 = basis.EstimatedCapitalization_CalculateFundEquityPSFValue();
         Assert.IsTrue(ActualValue2 == CalculatedValue2, $"Value shown on screen {ActualValue2} does not match calculated {CalculatedValue2}");
         double ActualValue3     = basis.EstimatedCapitalization_ReturnActualStreamEquityPSFValue();
         double CalculatedValue3 = basis.EstimatedCapitalization_CalculateStreamEquityPSFValue();
         Assert.IsTrue(ActualValue3 == CalculatedValue3, $"Value shown on screen {ActualValue3} does not match calculated {CalculatedValue3}");
         double ActualValue4     = basis.EstimatedCapitalization_ReturnActualTotalcapitalizationPSFValue();
         double CalculatedValue4 = basis.EstimatedCapitalization_CalculateTotalCapitaPSFValue();
         Assert.IsTrue(ActualValue4 == CalculatedValue4, $"Value shown on screen {ActualValue4} does not match calculated {CalculatedValue4}");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void VerifyDRAEquityISDisplayedOnlyForQuorum()
 {
     try
     {
         test = extent.CreateTest("MaximizeAndMinimizeWorksForAllSections").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         AssetSummaryPage          asset = new AssetSummaryPage(BaseTest.driver);
         Asset_BasisAndDebtTabPage basis = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         asset.NavigateToPropertyDetails();
         basis.ClickBasisAnddebtTab();
         String DRACurr      = basis.CurrentCapitalization_DRAEquity();
         String DRAEstimated = basis.EstimatedFullyFunded_DRAEquity();
         Assert.IsTrue(DRACurr == "DRA Equity", "DRA equity field is not displayed for Current capitalization");
         Assert.IsTrue(DRAEstimated == "DRA Equity", "DRA equity field is not displayed for estimated fully funded capitalization");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void VerifyLabelsDisplayedInCurrentCapitalization()
 {
     try
     {
         test = extent.CreateTest("VerifyLabelsDisplayedInCurrentCapitalization").Info("Test Started");
         NavigationMenuPage        navigation = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage          asset      = new AssetSummaryPage(BaseTest.driver);
         Asset_BasisAndDebtTabPage basis      = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         asset.NavigateToPropertyDetails();
         basis.ClickBasisAnddebtTab();
         String loanBal       = basis.ReturnCurrentCapitalization_LoanBalance();
         String fundEq        = basis.ReturnCurrentCapitalization_FundEquity();
         String streamEq      = basis.ReturnCurrentCapitalization_StreamEquity();
         String totalCapita   = basis.ReturnCurrentCapitalization_TotalCapitalization();
         String positiveCash  = basis.ReturnCurrentCapitalization_PositiveCashFlow();
         String distributions = basis.ReturnCurrentCapitalization_DistributionsLabel();
         String netAssets     = basis.ReturnCurrentCapitalization_NetCurrentAssets();
         String netCapita     = basis.ReturnCurrentCapitalization_NetCapitalization();
         Assert.IsTrue(loanBal == "Loan Balance", "Loan Balance label is not displayed correct");
         Assert.IsTrue(fundEq == "Fund Equity", "Fund Equity label is not displayed correct");
         Assert.IsTrue(streamEq == "Stream Equity", "Stream equity label is not displayed correct");
         Assert.IsTrue(totalCapita == "TOTAL CAPITALIZATION", "Total capitalization label is not displayed correct");
         Assert.IsTrue(positiveCash == "Positive Cashflow", "Positive Cashflow label is not displayed correct");
         Assert.IsTrue(distributions == "Distributions", "Distributions label is not displayed correct");
         Assert.IsTrue(netAssets == "Net Current Assets", "Net Current Assets label is not displayed correct");
         Assert.IsTrue(netCapita == "NET CAPITALIZATION", "Net capitalization label is not displayed correct");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void VerifyLabelsDisplayedInCurrentCostBasis()
 {
     try
     {
         test = extent.CreateTest("VerifyLabelsDisplayedInCurrentCostBasis").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(2000);
         AssetSummaryPage asset = new AssetSummaryPage(BaseTest.driver);
         asset.NavigateToPropertyDetails();
         Asset_BasisAndDebtTabPage basis = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         basis.ClickBasisAnddebtTab();
         String purchasePrice = basis.ReturnCurrentCostbasis_PurchasePrice();
         Assert.IsTrue(purchasePrice == "Purchase Price", "Purchase Price field is missing or label is incorrect");
         String acqLoanCost = basis.ReturnCurrentCostbasis_AcquisitionLoanCosts();
         Assert.IsTrue(acqLoanCost == "Acquisition & Loan Costs", "Acquisition & Loan Cost field is missing or label is incorrect");
         String previousAcq = basis.ReturnCurrentCostbasis_PreviousAcqLoanCost();
         Assert.IsTrue(previousAcq == "Previous Acquisition & Loan Cost", "Previous Acquisition & Loan Cost field is missing or label is incorrect");
         String renovation = basis.ReturnCurrentCostbasis_RenovationCapitalCosts();
         Assert.IsTrue(renovation == "Renovation Capital Costs", "Renovation Capital Costs field is missing or label is incorrect");
         String leasingCost = basis.ReturnCurrentCostbasis_LeasingCostsImprovements();
         Assert.IsTrue(leasingCost == "Leasing Costs & Improvements", "Leasing Costs & Improvements field is missing or label is incorrect");
         String equipment = basis.ReturnCurrentCostbasis_Equipment();
         Assert.IsTrue(equipment == "Equipment", "Equipment field is missing or label is incorrect");
         String carryCoast = basis.ReturnCurrentCostbasis_CarryCost();
         Assert.IsTrue(carryCoast == "Carry Cost", "Carry Cost field is missing or label is incorrect");
         String total = basis.ReturnCurrentCostbasis_TotalCurrentCostBasis();
         Assert.IsTrue(total == "TOTAL CURRENT COST BASIS", "Carry Cost field is missing or label is incorrect");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void VerifyEditWorksCurrentCapitalization_PositiveCashflow()
 {
     try
     {
         test = extent.CreateTest("VerifyEditWorksCurrentCapitalization_PositiveCashflow").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         AssetSummaryPage          asset = new AssetSummaryPage(BaseTest.driver);
         Asset_BasisAndDebtTabPage basis = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         asset.NavigateToPropertyDetails();
         basis.ClickBasisAnddebtTab();
         Boolean res = basis.Edit_CurrentCapitalizationPositiveCashFlow();
         Assert.IsTrue(res == true, "Verify positive cashflow is not editable");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void VerifyLabelsDisplayedInDebtInfo()
 {
     try
     {
         test = extent.CreateTest("VerifyLabelsDisplayedInDebtInfo").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         AssetSummaryPage          asset = new AssetSummaryPage(BaseTest.driver);
         Asset_BasisAndDebtTabPage basis = new Asset_BasisAndDebtTabPage(BaseTest.driver);
         asset.NavigateToPropertyDetails();
         basis.ClickBasisAnddebtTab();
         Boolean res = basis.VerifyDebtInfoLabelsWhenLoanDetailsArePresent();
         Assert.IsTrue(res == true, "Verify labels in debt info are not correct");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
 public void Maps_OpenPropertyAddressInGoogleMap()
 {
     try
     {
         test = extent.CreateTest("Maps_OpenPropertyAddressInGoogleMap").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage   asset      = new AssetSummaryPage(BaseTest.driver);
         Asset_OperatingSummaryAndMapsPage operating = new Asset_OperatingSummaryAndMapsPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         Thread.Sleep(3000);
         asset.NavigateToPropertyDetails();
         operating.clickMapsTab();
         Boolean res = operating.NavigateToViewInGoogleMaps();
         Assert.IsTrue(res == true, "Google map links does not open in new tab");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }