Beispiel #1
0
        public void VerifySortByWorksInDevelopmentBudget()
        {
            test = extent.CreateTest("VerifySortByWorksInDevelopmentBudget").Info("Test Started");
            BudgetSummaryPage budget = new BudgetSummaryPage(BaseTest.driver);

            budget.ClickBudgetSummaryMenu();
            Thread.Sleep(3000);
            budget.TestSortByInBudget();

            //Verify descending works as expected
            Thread.Sleep(3000);
            Boolean desc = budget.SelectDescending();

            Assert.True(desc == true, "Descending does not work");
            Thread.Sleep(3000);
            //Verify Ascending works as expected
            Boolean Asc = budget.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);
            //}
        }