You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Mihaly Dallos (Jira)" <ji...@apache.org> on 2022/12/16 09:09:00 UTC

[jira] [Created] (FINERACT-1837) DelinquencyBucketsIntegrationTest.testLoanClassificationStepAsPartOfCOB test is running for 10 mins

Mihaly Dallos created FINERACT-1837:
---------------------------------------

             Summary: DelinquencyBucketsIntegrationTest.testLoanClassificationStepAsPartOfCOB test is running for 10 mins
                 Key: FINERACT-1837
                 URL: https://issues.apache.org/jira/browse/FINERACT-1837
             Project: Apache Fineract
          Issue Type: Improvement
            Reporter: Mihaly Dallos


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?


{panel}
*Acceptance criteria*
 * This test should be run under 30 seconds, but maximum 1 minutes (if the complexity and the executed steps really requires)
{panel}
 
 
 
 
 
 
 
 
 
 
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)