Ejemplo n.º 1
0
        public void BudgetDetails_VerifyListViewColumnLabels()
        {
            try
            {
                String l1 = "Category Code";
                String l2 = "Category Description";
                String l3 = "Revised Budget";
                String l4 = "To-Date Spent";
                String l5 = "Over Budget";
                test = extent.CreateTest("BudgetDetails_VerifyListViewColumnLabels").Info("Test Started");
                BudgetSummaryPage  budget     = new BudgetSummaryPage(BaseTest.driver);
                NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
                navigation.ClickMainMenu();
                navigation.ClickBudgetSummaryOption();
                budget.NavigateToBudgetDetails();
                String label1 = budget.DetailsScreenListView_ReturnCategoryCodelabel();
                Assert.IsTrue(l1 == label1, $"Label on screen '{label1}' does not match expected '{l1}'");
                String label2 = budget.DetailsScreenListView_ReturnCategoryDescriptionlabel();
                Assert.IsTrue(l2 == label2, $"Label on screen '{label2}' does not match expected '{l2}'");
                String label3 = budget.DetailsScreenListView_ReturnRevisedBudgetlabel();
                Assert.IsTrue(l3 == label3, $"Label on screen '{label3}' does not match expected '{l3}'");
                String label4 = budget.DetailsScreenListView_ReturnToDateSpentlabel();
                Assert.IsTrue(l4 == label4, $"Label on screen '{label4}' does not match expected '{l4}'");
                String label5 = budget.DetailsScreenListView_ReturnOverBudgetlabel();
                Assert.IsTrue(l5 == label5, $"Label on screen '{label5}' does not match expected '{l5}'");

                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
Ejemplo n.º 2
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);
     }
 }
Ejemplo n.º 3
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);
     }
 }