Пример #1
0
 public void VerifyAmortizationWithEmptyData()
 {
     try
     {
         test = extent.CreateTest("VerifyWithEmptyDataAmortizationDetails").Info("Test Started");
         DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
         LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
         debt.ClickFundATabDebt();
         debt.ClickdebtSummary();
         debt.NavigateToLoanDetails();
         loandetails.ClickOnEditIconAmorization();
         loandetails.ClickOnSaveIconAmorization();
         string alertMessage = loandetails.AlertTextAmorization();
         Assert.AreEqual("No changes made in data...", alertMessage, "Alert pop up text did not match");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }