Exemplo n.º 1
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);
     }
 }