Exemple #1
0
 public void VerifyCurrentMonthsTomaturityFieldLogic()
 {
     try
     {
         test = extent.CreateTest("VerifyCurrentMonthsTomaturityFieldLogic").Info("Test Started");
         DebtSummaryPage    debt        = new DebtSummaryPage(BaseTest.driver);
         LoanDetailsPage    loandetails = new LoanDetailsPage(BaseTest.driver);
         NavigationMenuPage navigation  = new NavigationMenuPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickLoanMaintenanceOption();
         debt.AddLoanWithFixedInterest();
         debt.NavigateBackToDebt();
         debt.ReturnCurrentMaturityOflatestLoan();
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }