Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1837

DelinquencyBucketsIntegrationTest.testLoanClassificationStepAsPartOfCOB test is running for 10 mins

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.9.0
    • None

    Description

      DelinquencyBucketsIntegrationTest.testLoanClassificationStepAsPartOfCOB test is running for 10 mins.

      This test need to be refactored to decrease the execution time drastically.

      I believe the major issue here is the test is executing the Loan COB for 52 times (50 times for consecutive days):

      {{// Move the Business date to get older the loan and to have an overdue loan
      LocalDate lastLoanCOBBusinessDate = businessDate;}}
      businessDate = businessDate.plusDays(50);
      schedulerJobHelper.fastForwardTime(lastLoanCOBBusinessDate, businessDate, jobName, responseSpec);
      log.info("Current date {}", businessDate);
      BusinessDateHelper.updateBusinessDate(requestSpec, responseSpec, BusinessDateType.BUSINESS_DATE, businessDate);
      // Run Second time the Job
      {{schedulerJobHelper.executeAndAwaitJob(jobName); }}

      Can we change the delinquency ranges and the number of times we really need to execute the COB job?
      Also is there any other logic which slowing this test down?

      Acceptance criteria

      • This test should be run under 30 seconds, but maximum 1 minutes (if the complexity and the executed steps really requires)

       
       
       
       
       
       
       
       
       
       
       

      Attachments

        Issue Links

          Activity

            People

              josealbertohm Jose Alberto Hernandez Maldonado
              mdallos Mihaly Dallos
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: