Beispiel #1
0
        public void AddLoan_VerifyAddLoanAllFieldsAreMandatory()
        {
            try
            {
                test = extent.CreateTest("AddLoan_VerifyAddLoanAllFieldsAreMandatory").Info("Test Started");
                DebtSummaryPage    debt       = new DebtSummaryPage(BaseTest.driver);
                NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
                AssetSummaryPage   funds      = new AssetSummaryPage(BaseTest.driver);
                Thread.Sleep(3000);
                funds.ClickDebtSummary();
                debt.AddLoan_TotalLoanCommitmentIsMandatory();
                String alert1 = debt.CaptureAlertMessage();
                Assert.IsTrue(alert1 == "All Fields are mandatory", "Loan can be addedd without commitment details");

                debt.AddLoan_OriginationDateIsMandatory();
                String alert2 = debt.CaptureAlertMessage();
                Assert.IsTrue(alert2 == "All Fields are mandatory", "Loan can be addedd without origination date details");

                debt.AddLoan_InitialMaturityIsMandatory();
                String alert3 = debt.CaptureAlertMessage();
                Assert.IsTrue(alert3 == "All Fields are mandatory", "Loan can be addedd without Initial Maturity details");

                debt.AddLoan_InterestRateTypeIsMandatory();
                String alert4 = debt.CaptureAlertMessage();
                Assert.IsTrue(alert4 == "All Fields are mandatory", "Loan can be addedd without interest rate details");
            }
            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 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 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 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 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_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 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 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 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 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 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 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 PerformanceSummaryForFundB()
 {
     try
     {
         test = extent.CreateTest("PerformanceSummaryForFundB").Info("Test Started");
         AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);
         //Verification to confirm titles on Performance Summary for Fund B
         funds.ClickFundBTab();
         funds.ClickPerformanceSummary();
         var totalcommitment = funds.GetTotalCommitmentTitle();
         Assert.AreEqual("Total Commitment", totalcommitment, $"Expected:'Total Commitment' does not match Actual{totalcommitment}");
         var contributions = funds.GetContributionsTitle();
         Assert.AreEqual("Contribution", contributions, $"Expected:'Contribution' does not match Actual{contributions}");
         var distributions = funds.GetDistributionsTitle();
         Assert.AreEqual("Distributions", distributions, $"Expected:'Distributions' does not match Actual{distributions}");
         var unfundedcommitment = funds.GetUnfundedCommitmentTitle();
         Assert.AreEqual("Unfunded Commitment", unfundedcommitment, $"Expected:'Unfunded Commitment' does not match Actual{unfundedcommitment}");
         var accumulatedPref = funds.GetAccumulatedPrefTitle();
         Assert.AreEqual("Accumulated Pref", accumulatedPref, $"Expected:'Accumulated Pref' does not match Actual{accumulatedPref}");
         var currentCost = funds.GetCurrentCostOfCapitalTitle();
         Assert.AreEqual("Current Cost Of Capital", currentCost, $"Expected:'Current Cost Of Capital' does not match Actual{currentCost}");
         test.Log(Status.Pass, "Test Case passed");
         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 SearchWorksForBothTheFunds()
        {
            try
            {
                test = extent.CreateTest("SearchWorksForBothTheFunds").Info("Test Started");
                AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);
                //Verify search works on fund A
                funds.SelectFundsFromDropdwon();
                funds.ClickAssetSummary();
                int countbeforesearchA = funds.RowsBeforeSearch();
                int countaftersearchA  = funds.RowsafterSearchForProperty();
                Assert.IsTrue(countbeforesearchA > countaftersearchA, "Search does not work");

                //Verify search works on fund B
                funds.ClickFundBTab();
                driver.Navigate().Refresh();
                funds.ClickAssetSummary();
                int countbeforesearchB = funds.RowsBeforeSearch();
                int countaftersearchB  = funds.RowsafterSearchForProperty();
                Assert.IsTrue(countbeforesearchB > countaftersearchB, "Search does not work");
                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 DownLoadReportsFunds()
 {
     try
     {
         test = extent.CreateTest("DownLoadReportsFunds").Info("Test Started");
         AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);
         //Verify download works for Fund A
         Thread.Sleep(3000);
         funds.SelectFundsFromDropdwon();
         funds.ClickAssetSummary();
         funds.DownloadReportForFunds();
         Thread.Sleep(3000);
         funds.ClickFundBTab();
         driver.Navigate().Refresh();
         funds.ClickAssetSummary();
         funds.DownloadReportForFunds();
         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 verifyChangeViewWorksForFundA_B()
        {
            try
            {
                test = extent.CreateTest("verifyChangeViewWorksForFundA_B").Info("Test Started");
                AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);
                funds.SelectFundsFromDropdwon();
                funds.ClickAssetSummary();
                //Verify user can switch to list view
                Boolean lview = funds.ChangeToListView();
                Assert.IsTrue(lview == true, "View not changed to list view");
                driver.Navigate().Refresh();
                Thread.Sleep(5000);

                //Verify switch view works on fund B
                funds.ClickFundBTab();
                driver.Navigate().Refresh();
                funds.ClickAssetSummary();
                Boolean cview = funds.ChangeToCardView();
                Assert.IsTrue(cview == true, "View not changed to card view");
                funds.ClickFundATab();
                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 PerformanceSummaryForFundA()
 {
     try
     {
         test = extent.CreateTest("PerformanceSummaryForFundA").Info("Test Started");
         AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);
         //Verification user lands on Fund A, performance Summary when logged in
         var checkfunda = funds.UserLandsOnFundPortfolioSummary();
         Assert.IsTrue(checkfunda == true, "Login Unsuccessful");
         //Verification first four titles show correct values
         funds.ClickPerformanceSummary();
         var totalcommitment = funds.GetTotalCommitmentTitle();
         Assert.AreEqual("Total Commitment", totalcommitment, $"Expected:'Total Commitment' does not match Actual{totalcommitment}");
         var contributions = funds.GetContributionsTitle();
         Assert.AreEqual("Contribution", contributions, $"Expected:'Contribution' does not match Actual{contributions}");
         var distributions = funds.GetDistributionsTitle();
         Assert.AreEqual("Distributions", distributions, $"Expected:'Distributions' does not match Actual{distributions}");
         var unfundedcommitment = funds.GetUnfundedCommitmentTitle();
         Assert.AreEqual("Unfunded Commitment", unfundedcommitment, $"Expected:'Unfunded Commitment' does not match Actual{unfundedcommitment}");
         var accumulatedPref = funds.GetAccumulatedPrefTitle();
         Assert.AreEqual("Accumulated Pref", accumulatedPref, $"Expected:'Accumulated Pref' does not match Actual{accumulatedPref}");
         var currentCost = funds.GetCurrentCostOfCapitalTitle();
         Assert.AreEqual("Current Cost Of Capital", currentCost, $"Expected:'Current Cost Of Capital' does not match Actual{currentCost}");
         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 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 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 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 PortfolioSummary_VerifyCardLabels()
 {
     try
     {
         test = extent.CreateTest("PortfolioSummary_VerifyCardLabels").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage   funds      = new AssetSummaryPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         String leasedPercent = funds.CardView_ReturnLeasedPercentLabel();
         String currDebt      = funds.CardView_ReturnCurrentDebtLabel();
         String disTri        = funds.CardView_ReturnDistributionslabel();
         String totalBasis    = funds.CardView_ReturnTotalBasisLabel();
         String totalBasisPSF = funds.CardView_ReturnTotalBasisPSFLabel();
         String Contribu      = funds.CardView_ReturnContributionsLabel();
         Assert.IsTrue(leasedPercent == "Leased Percentage:", $"Expected:'Leased Percentage:' does not match Actual {leasedPercent}");
         Assert.IsTrue(currDebt == "Current Debt:", $"Expected:'Current Debt:' does not match actual {currDebt}");
         Assert.IsTrue(disTri == "Distributions:", $"Expected:'Distributions:' does not actual {disTri}");
         Assert.IsTrue(totalBasis == "Total Basis:", $"Expected:'Total Basis:' does not match actual{totalBasis}");
         Assert.IsTrue(totalBasisPSF == "Total Basis SF:", $"Expected:'Total Basis SF:' does not match actual{totalBasisPSF}");
         Assert.IsTrue(Contribu == "Contributions:", $"Expected:'Contributions:' does not match actual{totalBasisPSF}");
         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 PortfolioSummary_VerifyListColumnLabels()
 {
     try
     {
         test = extent.CreateTest("PortfolioSummary_VerifyCardLabels").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage   funds      = new AssetSummaryPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         funds.ChangeToListView();
         String propName      = funds.ListView_ReturnPropertyNamelabel();
         String acqu          = funds.ListView_ReturnAcquisitionlabel();
         String percentLeased = funds.ListView_ReturnPercentLeasedlabel();
         String currentDebt   = funds.ListView_ReturnCurrentDebtlabel();
         String currentLeve   = funds.ListView_ReturnCurrentLeveragelabel();
         String basisT        = funds.ListView_ReturnBasislabel();
         String basisPSF      = funds.ListView_ReturnBasisPSFlabel();
         Assert.IsTrue(propName == "Property Name", $"Expected:'Property Name' does not match Actual {propName}");
         Assert.IsTrue(acqu == "Acquisition Date", $"Expected:'Acquisition Date' does not match actual {acqu}");
         Assert.IsTrue(percentLeased == "% Leased", $"Expected:'% Leased' does not match actual {percentLeased}");
         Assert.IsTrue(currentDebt == "Current Debt", $"Expected:'Current Debt:' does not actual {currentDebt}");
         Assert.IsTrue(currentLeve == "Current Leverage", $"Expected:'Current Leverage' does not match actual{currentLeve}");
         Assert.IsTrue(basisT == "Basis $", $"Expected:'Basis $' does not match actual{basisT}");
         Assert.IsTrue(basisPSF == "Basis psf", $"Expected:'Basis psf' does not match actual{basisPSF}");
         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 PortfolioSummary_VerifyListColumnLabelsLastSix()
 {
     try
     {
         test = extent.CreateTest("PortfolioSummary_VerifyListColumnLabelsLastSix").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         AssetSummaryPage   funds      = new AssetSummaryPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickPropertyMaintenanceOption();
         funds.ChangeToListView();
         String noi           = funds.ListView_ReturnNOIlabel();
         String cashOnCash    = funds.ListView_ReturnCashOnCashlabel();
         String COCYield      = funds.ListView_ReturnCOCYieldlabel();
         String distributions = funds.ListView_ReturnDistributionslabel();
         String netEquity     = funds.ListView_ReturnNetEquitylabel();
         String netEquityPSF  = funds.ListView_ReturnNetEquityPSFlabel();
         String contributions = funds.ListView_ReturnContributionslabel();
         Assert.IsTrue(noi == "NOI", $"Expected:'NOI' does not match Actual {noi}");
         Assert.IsTrue(cashOnCash == "Cash On Cash", $"Expected:'Cash On Cash' does not match actual {cashOnCash}");
         Assert.IsTrue(COCYield == "COC Yield", $"Expected:'COC Yield' does not match actual {COCYield}");
         Assert.IsTrue(distributions == "Distributions", $"Expected:'Distributions' does not actual {distributions}");
         Assert.IsTrue(netEquity == "Net Equity", $"Expected:'Net Equity' does not match actual{netEquity}");
         Assert.IsTrue(netEquityPSF == "Net Equity psf", $"Expected:'Net Equity psf' does not match actual{netEquityPSF}");
         Assert.IsTrue(contributions == "Contributions", $"Expected:'Contributions' does not match actual{contributions}");
         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);
     }
 }
Beispiel #30
0
        public void AddLoan_VerifyAddLoanAllDropdownFieldsAreMandatory()
        {
            try
            {
                test = extent.CreateTest("AddLoan_VerifyAddLoanAllDropdownFieldsAreMandatory").Info("Test Started");
                DebtSummaryPage    debt       = new DebtSummaryPage(BaseTest.driver);
                NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
                AssetSummaryPage   funds      = new AssetSummaryPage(BaseTest.driver);
                Thread.Sleep(3000);
                funds.ClickDebtSummary();
                debt.AddLoan_LenderNameIsMandatory();
                String alert1 = debt.CaptureAlertMessage();
                Assert.IsTrue(alert1 == "All Fields are mandatory", "Loan can be addedd without lender details");

                debt.AddLoan_PropertyNameIsMandatory();
                String alert2 = debt.CaptureAlertMessage();
                Assert.IsTrue(alert2 == "All Fields are mandatory", "Loan can be addedd without property name details");

                debt.AddLoan_LoanTypeIsMandatory();
                String alert3 = debt.CaptureAlertMessage();
                Assert.IsTrue(alert3 == "All Fields are mandatory", "Loan can be addedd without loan type details");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }