Example #1
0
        public void VerifySwitchingBetweenViews()
        {
            //try
            //{
            test = extent.CreateTest("VerifySwitchingBetweenViews").Info("Test Started");
            //Verify user can switch between card and list view
            BudgetSummaryPage budget = new BudgetSummaryPage(BaseTest.driver);

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

            //Verify user can switch to list view
            Boolean lview = budget.ChangeToListView();

            Assert.IsTrue(lview == true, "View not changed to list view");
            driver.Navigate().Refresh();
            Thread.Sleep(5000);

            //Verify user can switch to card view
            Boolean cview = budget.ChangeToCardView();

            Assert.IsTrue(cview == true, "View not changed to 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);
            //}
        }
Example #2
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);
            //}
        }
Example #3
0
 public void DownloadingBudgetSummaryReport()
 {
     try
     {
         test = extent.CreateTest("UserNavigatesToPropDetailsAndBackToLanding").Info("Test Started");
         BudgetSummaryPage budget = new BudgetSummaryPage(BaseTest.driver);
         budget.ClickBudgetSummaryMenu();
         Thread.Sleep(3000);
         budget.NavigateToBudgetDetails();
         budget.downloadDevBudgetSummary();
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
Example #4
0
 public void UserNavigatesToPropDetailsAndBackToLanding()
 {
     try
     {
         test = extent.CreateTest("UserNavigatesToPropDetailsAndBackToLanding").Info("Test Started");
         BudgetSummaryPage budget = new BudgetSummaryPage(BaseTest.driver);
         budget.ClickBudgetSummaryMenu();
         Thread.Sleep(3000);
         String screentitle = budget.NavigateToBudgetDetails();
         Assert.AreEqual("Details", screentitle, "User does not reach to property details screen");
         String landingtitle = budget.NavigateBackToDevelopmentLandingScreen();
         Assert.AreEqual("Development Budget Summary", landingtitle, "User does not reach to budget landing screen");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
Example #5
0
        public void VerifySearchWorksExpectedOnBudgetScreen()
        {
            //try
            //{
            test = extent.CreateTest("VerifySearchWorksExpected").Info("Test Started");
            BudgetSummaryPage budget = new BudgetSummaryPage(BaseTest.driver);

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

            //Verify search works as expected
            int searchbefore = budget.RowsBeforeSearch();
            int searchafter  = budget.RowsafterSearchForProperty();

            Assert.True(searchafter < searchbefore, "Search 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);
            //}
        }