Esempio n. 1
0
        public void VerifyArchiveLoan()
        {
            try
            {
                test = extent.CreateTest("VerifyArchiveLoan").Info("Test Started");
                DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
                LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
                debt.ClickFundATabDebt();
                debt.ClickdebtSummary();
                int NumberOfRowsBeforeArchive = debt.CountNumberOfLoan();
                loandetails.ClickOnCardDetails();
                debt.archive_Loan();
                debt.NavigateToLoanDetails();
                debt.ClickFundATabDebt();
                debt.ClickdebtSummary();
                int NumberOfRowsAfterArchive = debt.CountNumberOfLoan();
                Assert.IsTrue(NumberOfRowsBeforeArchive > NumberOfRowsAfterArchive, "Failed to archived loan");

                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
        public void CheckingNewLoanCreationPositiveTests()
        {
            var dashboard = new DashboardPage();

            if (dashboard.GetStatusCreateLoanButton())
            {
                dashboard.CreateNewLoan();
                var loanDetailsPage = new LoanDetailsPage();
                Assert.IsTrue(loanDetailsPage.CheckingLoanNameMatches(FirstName + " " + LastName));
            }
        }
        public void CreateNewLoanAndChangeTypeOfPurposePositiveTests(string type)
        {
            var dashboard = new DashboardPage();

            dashboard.ChangeTypeOfPurpose(type);

            if (dashboard.GetStatusCreateLoanButton())
            {
                dashboard.CreateNewLoan();
                var loanDetailsPage = new LoanDetailsPage();
                Assert.IsTrue(loanDetailsPage.GetTypeOfPurpose(type));
            }
        }
Esempio n. 4
0
        public void CreateNewLoanAndAddBorrowerTests(string secondBorrowerFirstName, string dateOfBirth)
        {
            var dashboard = new DashboardPage();

            dashboard.AddBorrower(secondBorrowerFirstName, dateOfBirth);
            Thread.Sleep(3000);

            if (dashboard.GetStatusCreateLoanButton())
            {
                dashboard.CreateNewLoan();
                var loanDetailsPage = new LoanDetailsPage();
//                var createdLoanUrl = BrowserFactory.GetDriverUrl();
//                createdLoanUrl = createdLoanUrl.Substring(31, createdLoanUrl.Length - 8);
                loanDetailsPage.GoToBorrowersPage();
                var borrowersPage = new BorrowersPage();
            }
        }
Esempio n. 5
0
 public void UpdatetheExtension()
 {
     try
     {
         test = extent.CreateTest("UpdatetheExtension").Info("Test Started");
         DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
         LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
         debt.ClickFundATabDebt();
         debt.NavigateToLoanDetails();
         Boolean res = loandetails.UpdateExtentionDetails();
         Assert.IsTrue(res == true, "New extention date is not updated");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
Esempio n. 6
0
 public void VerifytheVersionSequence()
 {
     try
     {
         test = extent.CreateTest("VerifytheVersionSequence").Info("Test Started");
         AboutUsPage     AbtUs       = new AboutUsPage(BaseTest.driver);
         DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
         LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
         debt.ClickOnAboutUs();
         bool res = AbtUs.VersionSequence();
         Assert.IsTrue(res == true, "Sequence is Failed ");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
Esempio n. 7
0
 public void VerifyHedgingInstrumentDetailsWithEmptyData()
 {
     try
     {
         test = extent.CreateTest("VerifyHedgingInstrumentDetailsWithEmptyData").Info("Test Started");
         DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
         LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
         debt.ClickFundATabDebt();
         debt.ClickdebtSummary();
         debt.NavigateToLoanDetails();
         Boolean res = loandetails.ClearHedgingIntrumentDetails();
         Assert.IsTrue(res == true, "Hedging instrument is failed to update empty data");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
Esempio n. 8
0
 public void VerifyHedgingInstrumentForDate()
 {
     try
     {
         test = extent.CreateTest("VerifyHedgingInstrumentForDate").Info("Test Started");
         DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
         LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
         debt.ClickFundATabDebt();
         debt.ClickdebtSummary();
         debt.NavigateToLoanDetails();
         bool res1 = loandetails.HedgingExpirationDate();
         Assert.IsTrue(res1 == true, "Hedging instrument month date is not matching ");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
Esempio n. 9
0
 public void VerifyTotalCommitmentInLoanDetailsIsEditable()
 {
     try
     {
         test = extent.CreateTest("VerifyTotalCommitmentInLoanDetailsIsEditable").Info("Test Started");
         DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
         LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
         debt.ClickFundATabDebt();
         debt.ClickdebtSummary();
         debt.NavigateToLoanDetails();
         Boolean res = loandetails.EditAndUpdateLoanCommitment();
         Assert.IsTrue(res == true, "Total Commitment is not editablle");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
Esempio n. 10
0
 public void VerifyAmortizationwithValidData()
 {
     try
     {
         test = extent.CreateTest("VerifyAmortizationwithValidData").Info("Test Started");
         DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
         LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
         debt.ClickFundATabDebt();
         debt.ClickdebtSummary();
         debt.NavigateToLoanDetails();
         bool result = loandetails.validDataAmorization();
         Assert.IsTrue(result == true, "UpdateWithValidDataAmortization is not successful");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
Esempio n. 11
0
 public void VerifyLoanDetailsInterestRateType()
 {
     try
     {
         test = extent.CreateTest("VerifyLoanDetailsInterestRateType").Info("Test Started");
         DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
         LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
         debt.ClickFundATabDebt();
         debt.ClickdebtSummary();
         debt.NavigateToLoanDetails();
         bool res = loandetails.LoanDetailsIntType();
         Assert.IsTrue(res == true, "Int rate is not updated successfully");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
Esempio n. 12
0
 public void VerifyLoanDetailsWithEmptyData()
 {
     try
     {
         test = extent.CreateTest("VerifyLoanDetailsWithEmptyData").Info("Test Started");
         DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
         LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
         debt.ClickFundATabDebt();
         debt.ClickdebtSummary();
         debt.NavigateToLoanDetails();
         loandetails.UpdateLoanWithOutAddingData();
         string alert = loandetails.CaptureAlertMessage();
         Assert.AreEqual("No changes made in data...", alert, "Alert does 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);
     }
 }
Esempio n. 13
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);
     }
 }
Esempio n. 14
0
 public void VerifyHedgingWithNullData()
 {
     try
     {
         test = extent.CreateTest("VerifyHedgingWithNullData").Info("Test Started");
         DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
         LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
         debt.ClickFundATabDebt();
         debt.ClickdebtSummary();
         loandetails.selectPropertyWithIndustrialType();
         loandetails.NavigateToPropertyDetails();
         bool res = loandetails.HedgingWithNullData();
         Assert.IsTrue(res == true, "Values are not updated to hyphen/null");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
Esempio n. 15
0
        public void DeleteLoanPositiveTests()
        {
            var dashboard = new DashboardPage();
            var countOfDashboardItemsBefore = dashboard.GetCountOfDashboardItems();

            dashboard.GoToNewLoanAndFillAllFields("600000", "12345", FirstName, LastName, "2 20 40 ");
            dashboard.CreateNewLoan();

            var loanDetails   = new LoanDetailsPage();
            var createdLoanId = loanDetails.GetCreatedLoanId();

            loanDetails.GoToDashboardPage();
            Thread.Sleep(2000); //
            dashboard.DeleteLastCreatedLoan(createdLoanId);

            var countOfDashboardItemsAfter = dashboard.GetCountOfDashboardItems();

            if (countOfDashboardItemsBefore == countOfDashboardItemsAfter)
            {
                Assert.True(true);
            }
        }
Esempio n. 16
0
 public void VerifyAmortizationWithNullData()
 {
     try
     {
         test = extent.CreateTest("VerifyAmortizationWithNullData").Info("Test Started");
         DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
         LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
         debt.ClickFundATabDebt();
         debt.ClickdebtSummary();
         loandetails.selectPropertyWithIndustrialType();
         loandetails.NavigateToPropertyDetails();
         loandetails.UpdateAmorizationNullData();
         string alert = loandetails.CaptureAlertMessage();
         Assert.AreEqual("All Fields are mandatory", alert, "Alert does 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);
     }
 }
Esempio n. 17
0
        public void VerifyPrepaymentAmountInPrepaymentIsUpdateWithValidData()
        {
            try
            {
                test = extent.CreateTest("VerifyPrepaymentAmountInPrepaymentIsUpdateWithValidData").Info("Test Started");
                DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
                LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
                debt.ClickFundATabDebt();
                debt.ClickdebtSummary();
                debt.NavigateToLoanDetails();
                loandetails.VerifyPREPAYValidDetails();
                Assert.IsTrue(true == true, "{Prepayment updation has been done successfully");

                Thread.Sleep(9000);
                //No alert is getting for saving the data
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
Esempio n. 18
0
        public void VerifyAddLoanLabel()
        {
            try
            {
                test = extent.CreateTest("VerifyAddLoanLabel").Info("Test Started");
                DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
                LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
                debt.ClickdebtSummary();
                debt.ClickOnAddLoanButton();
                bool res = debt.CheckLoanlabel();
                Assert.IsTrue(res == true, "Label are incorrect");



                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
Esempio n. 19
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);
     }
 }
Esempio n. 20
0
        public void VerifyLoanNavigationFromPropertyNameToPropertyDetialsPage()
        {
            try
            {
                test = extent.CreateTest("VerifyNavigationFromPropertyNameToPropertyDetialsPage").Info("Test Started");
                DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
                LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
                debt.ClickFundATabDebt();
                debt.ClickdebtSummary();
                debt.NavigateToLoanDetails();
                string title = loandetails.navigationToPropertydetails();
                Assert.AreEqual("General Asset Summary", title, "Failed to navigate to portfolio Page / Property Name is not present");


                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
Esempio n. 21
0
 public void VerifytheTermMonthinloanDetailsPage()
 {
     try
     {
         test = extent.CreateTest("VerifytheTermMonthinloanDetailsPage").Info("Test Started");
         DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
         LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
         debt.ClickFundATabDebt();
         debt.ClickdebtSummary();
         debt.ClickdebtSummary();
         int termMonth = debt.AddLoanWithFloatingInterest();
         Thread.Sleep(2000);
         int Month = debt.getTermMonth();
         Assert.IsTrue(Month == termMonth, "Term month does 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);
     }
 }
Esempio n. 22
0
        public void VerifyPrepaymentAmountInPrepaymentIsEditable()
        {
            try
            {
                test = extent.CreateTest("VerifyPrepaymentAmountInPrepaymentIsEditable").Info("Test Started");
                DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
                LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
                debt.ClickFundATabDebt();
                debt.ClickdebtSummary();
                debt.NavigateToLoanDetails();
                loandetails.EditPrepayment();

                Boolean PreapaymentValue = loandetails.EditAndUpdatePrepaymentAmountBoolValue();
                Assert.IsTrue(PreapaymentValue == true, "Prepayment amount is not editable");

                Boolean NotesValue = loandetails.EditAndUpdatePrepaymentNotesBoolvalue();
                Assert.IsTrue(NotesValue == true, "Prepayment Notes is not editable");

                Boolean DateValue = loandetails.EditAndUpdatePrepaymentDatePickerBoolvalue();
                Assert.IsTrue(DateValue == true, "Prepayment date is not editable");

                Boolean EBAPNotes = loandetails.EditAndUpdatePrepaymentEBAPBoolvalue();
                Assert.IsTrue(EBAPNotes == true, "Prepayment EBAP is not editable");

                Boolean OLBPPNotes = loandetails.EditAndUpdatePrepaymentOLBPPBoolvalue();
                Assert.IsTrue(OLBPPNotes == true, "Prepayment OLBPP is not editable");

                Boolean EFAPPNotes = loandetails.EditAndUpdatePrepaymentEFABoolvalue();
                Assert.IsTrue(EFAPPNotes == true, "Prepayment OLBPP is not editable");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }