Exemplo n.º 1
0
 public void FundsScreen_TabLabelsDisplayed()
 {
     try
     {
         test = extent.CreateTest("FundsScreen_TabLabelsDisplayed").Info("Test Started");
         AssetSummaryPage funds       = new AssetSummaryPage(BaseTest.driver);
         String           portfolio   = funds.ReturnPortfolioSummaryTablabel();
         String           debt        = funds.ReturnDebtSummaryTablabel();
         String           performance = funds.ReturnPerformanceSummaryTablabel();
         Assert.IsTrue(portfolio == "Portfolio Summary", $"Expected:'Portfolio Summary' does not match actual{portfolio}");
         Assert.IsTrue(debt == "Debt Summary", $"Expected:'Debt Summary' does not match actual{debt}");
         Assert.IsTrue(performance == "Performance Summary", $"Expected:'Performance Summary' does not match actual{performance}");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }