public void VerifyNoDataChangesmadeMessageDisplayed()
 {
     try
     {
         test = extent.CreateTest("VerifyNoDataChangesmadeMessageDisplayed").Info("Test Started");
         ContingentLiabilityPage contingent = new ContingentLiabilityPage(BaseTest.driver);
         //Pre-requisite: User navigates to contingent property details screen
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickContingentLiabilityOption();
         Thread.Sleep(3000);
         //Verifying labels present on contingent liability card
         contingent.NavigationToPropDetails();
         String alertText = contingent.VerifyErrorNoChangesmade();
         Assert.IsTrue(alertText == "No changes Made in data...", "Incorrect message displayed");
         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 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_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 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_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 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);
     }
 }
Пример #12
0
        public void ClientTestPage()
        {
            // TODO: think how to avoid duplicating the same username and password in each test. Also what if another environment the credentials are different?
            var userName = "******";
            var password = "******";
            var customer = new Customer();

            using (var driver = new ChromeDriver())
            {
                driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);

                URLs.OpenUrl(driver);
                var loginPage          = new LoginPage(driver);
                var navigationMenuPage = new NavigationMenuPage(driver);
                var addClientPage      = new AddClientPage(driver);

                loginPage.Login(userName, password);

                navigationMenuPage.AddClientButtonClick();
                addClientPage.AddClientHeader().ShouldContain("Add Client");
                addClientPage.FillOutContactInformation(customer);

                addClientPage.GetClientHeader().ShouldContain("Client");
            }
        }
        public void VerifySortByWorks()
        {
            try
            {
                test = extent.CreateTest("VerifySortByWorks").Info("Test Started");
                ContingentLiabilityPage contingent = new ContingentLiabilityPage(BaseTest.driver);
                NavigationMenuPage      navigation = new NavigationMenuPage(BaseTest.driver);
                navigation.ClickMainMenu();
                navigation.ClickContingentLiabilityOption();
                Thread.Sleep(3000);
                //Verify sort by works as expected
                contingent.TestSortBy();

                //Verify descending works as expected
                Thread.Sleep(3000);
                Boolean desc = contingent.SelectDescending();
                Assert.True(desc == true, "Descending does not work");

                Thread.Sleep(3000);
                //Verify Ascending works as expected
                Boolean Asc = contingent.SelectAscending();
                Assert.True(Asc == true, "Ascending 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 VerifyUserCanSaveNullValues()
 {
     try
     {
         test = extent.CreateTest("VerifyUserCanSaveNullValues").Info("Test Started");
         ContingentLiabilityPage contingent = new ContingentLiabilityPage(BaseTest.driver);
         //Pre-requisite: User navigates to contingent property details screen
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickContingentLiabilityOption();
         Thread.Sleep(3000);
         //Verifying labels present on contingent liability card
         contingent.NavigationToPropDetails();
         Boolean res = contingent.ClearInputFields();
         Assert.IsTrue(res == true, "User can not save null values");
         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();
     }
 }
Пример #15
0
 public void DevelopmentBudget_VerifyCardLabels()
 {
     try
     {
         String l1 = "Job Code:";
         String l2 = "Property Name:";
         String l3 = "Invoiced Amount:";
         String l4 = "New Budget Amount:";
         String l5 = "Over Budget Amount:";
         test = extent.CreateTest("DevelopmentBudget_VerifyCardLabels").Info("Test Started");
         BudgetSummaryPage  budget     = new BudgetSummaryPage(BaseTest.driver);
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickBudgetSummaryOption();
         String label1 = budget.CardView_ReturnJobCodelabel();
         Assert.IsTrue(l1 == label1, $"Label on screen '{label1}' does not match expected '{l1}'");
         String label2 = budget.CardView_ReturnPropertyNamelabel();
         Assert.IsTrue(l2 == label2, $"Label on screen '{label2}' does not match expected '{l2}'");
         String label3 = budget.CardView_ReturnInvoicedAmountlabel();
         Assert.IsTrue(l3 == label3, $"Label on screen '{label3}' does not match expected '{l3}'");
         String label4 = budget.CardView_ReturnNewBudgetlabel();
         Assert.IsTrue(l4 == label4, $"Label on screen '{label4}' does not match expected '{l4}'");
         String label5 = budget.CardView_ReturnOverBudgetlabel();
         Assert.IsTrue(l5 == label5, $"Label on screen '{label5}' does not match expected '{l5}'");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         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);
     }
 }
Пример #17
0
        public void BudgetDetails_VerifyListViewColumnLabels()
        {
            try
            {
                String l1 = "Category Code";
                String l2 = "Category Description";
                String l3 = "Revised Budget";
                String l4 = "To-Date Spent";
                String l5 = "Over Budget";
                test = extent.CreateTest("BudgetDetails_VerifyListViewColumnLabels").Info("Test Started");
                BudgetSummaryPage  budget     = new BudgetSummaryPage(BaseTest.driver);
                NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
                navigation.ClickMainMenu();
                navigation.ClickBudgetSummaryOption();
                budget.NavigateToBudgetDetails();
                String label1 = budget.DetailsScreenListView_ReturnCategoryCodelabel();
                Assert.IsTrue(l1 == label1, $"Label on screen '{label1}' does not match expected '{l1}'");
                String label2 = budget.DetailsScreenListView_ReturnCategoryDescriptionlabel();
                Assert.IsTrue(l2 == label2, $"Label on screen '{label2}' does not match expected '{l2}'");
                String label3 = budget.DetailsScreenListView_ReturnRevisedBudgetlabel();
                Assert.IsTrue(l3 == label3, $"Label on screen '{label3}' does not match expected '{l3}'");
                String label4 = budget.DetailsScreenListView_ReturnToDateSpentlabel();
                Assert.IsTrue(l4 == label4, $"Label on screen '{label4}' does not match expected '{l4}'");
                String label5 = budget.DetailsScreenListView_ReturnOverBudgetlabel();
                Assert.IsTrue(l5 == label5, $"Label on screen '{label5}' does not match expected '{l5}'");

                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                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 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 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 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);
     }
 }
Пример #22
0
 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 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();
            }
        }
Пример #24
0
 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 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);
     }
 }
Пример #26
0
 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 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);
     }
 }
Пример #28
0
        public void DeleteClient()
        {
            {
                using (var driver = new ChromeDriver())
                {
                    driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);
                    URLs.OpenUrl(driver);
                    var loginPage          = new LoginPage(driver);
                    var navigationMenuPage = new NavigationMenuPage(driver);
                    var addClientPage      = new AddClientPage(driver);
                    var clientSearchPage   = new ClientSearchPage(driver);

                    loginPage.Login(userName, password);
                    navigationMenuPage.AddClientButtonClick();
                    addClientPage.FillOutContactInformation(customer);

                    string id = addClientPage.GetClientId();

                    addClientPage.GetClientId().ShouldContain(id);

                    addClientPage.DeleteButtonClick();



                    addClientPage.ConfirmDeleteButtonClick();

                    clientSearchPage.SearchInputId(id);

                    clientSearchPage.SearchInputClick();
                    clientSearchPage.GetAllSeargPage().ShouldContain(clientSearchPage.GetNoRecords());
                }
            }
        }
 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 VerifyFieldslabelContingentLiabilitySection()
 {
     try
     {
         test = extent.CreateTest("VerifyFieldslabelContingentLiabilitySection").Info("Test Started");
         ContingentLiabilityPage contingent = new ContingentLiabilityPage(BaseTest.driver);
         //Pre-requisite: User navigates to contingent property details screen
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickContingentLiabilityOption();
         Thread.Sleep(3000);
         //Verifying labels present on contingent liability card
         contingent.NavigationToPropDetails();
         String srpOwn        = contingent.ContingentLiability_ReturnSRPPercentLabel();
         String totalcom      = contingent.ContingentLiability_ReturnLoanCommitmentLabel();
         String netWorth      = contingent.ContingentLiability_ReturnNetworthCovenantLabel();
         String liquiditySect = contingent.ContingentLiability_ReturnLiquidityCovenantLabel();
         String continLia     = contingent.ContingentLiability_ReturnContingentLiabilityLabel();
         Assert.IsTrue(srpOwn == "SRP, LP Ownership%", "Incorrect SRP, LP Ownership% label is displayed on card view");
         Assert.IsTrue(totalcom == "Total Loan Commitment", "Incorrect Total Loan Commitment label is displayed on card view");
         Assert.IsTrue(netWorth == "Net Worth Covenant", "Incorrect Net Worth Covenant label is displayed on card view");
         Assert.IsTrue(liquiditySect == "Liquidity Covenant", "Incorrect Liquidity Covenant label is displayed on card view");
         Assert.IsTrue(continLia == "Contingent Liabilities", "Incorrect Contingent Liabilities label is displayed on card view");
         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();
     }
 }