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