Skip to content

Commit 0d737b2

Browse files
MarianaDmytrivBinariksadamsaghy
authored andcommitted
FINERACT-2354: e2e test scenarios for re-aging reverse-replay for default behaviour
1 parent 5ca10eb commit 0d737b2

File tree

1 file changed

+43
-39
lines changed

1 file changed

+43
-39
lines changed

fineract-e2e-tests-runner/src/test/resources/features/LoanReAging.feature

Lines changed: 43 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3737,9 +3737,9 @@ Feature: LoanReAging
37373737
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
37383738
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 17.01 | 0.0 | 0.0 | 85.04 |
37393739
Then Loan Transactions tab has the following data:
3740-
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
3741-
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
3742-
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
3740+
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
3741+
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false | false |
3742+
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false | false |
37433743
When Admin sets the business date to "15 March 2024"
37443744
When Admin creates a Loan re-aging transaction with the following data:
37453745
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
@@ -3808,9 +3808,9 @@ Feature: LoanReAging
38083808
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
38093809
| 100.0 | 2.05 | 10.0 | 0.0 | 112.05 | 17.01 | 0.0 | 0.0 | 95.04 |
38103810
Then Loan Transactions tab has the following data:
3811-
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
3812-
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
3813-
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
3811+
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
3812+
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false | false |
3813+
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false | false |
38143814
And Loan Charges tab has the following data:
38153815
| Name | isPenalty | Payment due at | Due as of | Calculation type | Due | Paid | Waived | Outstanding |
38163816
| Snooze fee | false | Specified due date | 15 February 2024 | Flat | 10.0 | 0.0 | 0.0 | 10.0 |
@@ -3929,10 +3929,10 @@ Feature: LoanReAging
39293929
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
39303930
| 100.0 | 2.05 | 10.0 | 0.0 | 112.05 | 27.01 | 10.0 | 0.0 | 85.04 |
39313931
Then Loan Transactions tab has the following data:
3932-
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
3933-
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
3934-
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
3935-
| 16 February 2024 | Repayment | 10.0 | 0.0 | 0.0 | 10.0 | 0.0 | 83.57 | false |
3932+
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
3933+
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false | false |
3934+
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false | false |
3935+
| 16 February 2024 | Repayment | 10.0 | 0.0 | 0.0 | 10.0 | 0.0 | 83.57 | false | false |
39363936
And Loan Charges tab has the following data:
39373937
| Name | isPenalty | Payment due at | Due as of | Calculation type | Due | Paid | Waived | Outstanding |
39383938
| Snooze fee | false | Specified due date | 15 February 2024 | Flat | 10.0 | 10.0 | 0.0 | 0.0 |
@@ -4014,8 +4014,8 @@ Feature: LoanReAging
40144014
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
40154015
When Admin sets the business date to "15 March 2024"
40164016
When Admin creates a Loan re-aging transaction with the following data:
4017-
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
4018-
| 1 | MONTHS | 01 April 2024| 6 |
4017+
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
4018+
| 1 | MONTHS | 01 April 2024 | 6 |
40194019
Then Loan Repayment schedule has 8 periods, with the following data for periods:
40204020
| Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
40214021
| | | 01 January 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
@@ -4168,9 +4168,9 @@ Feature: LoanReAging
41684168
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
41694169
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 17.01 | 0.0 | 0.0 | 85.04 |
41704170
Then Loan Transactions tab has the following data:
4171-
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
4172-
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
4173-
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
4171+
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
4172+
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false | false |
4173+
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false | false |
41744174
When Admin sets the business date to "15 March 2024"
41754175
When Admin creates a Loan re-aging transaction with the following data:
41764176
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
@@ -4244,9 +4244,9 @@ Feature: LoanReAging
42444244
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
42454245
| 100.0 | 1.54 | 0.0 | 0.0 | 101.54 | 25.0 | 0.0 | 0.0 | 76.54 |
42464246
Then Loan Transactions tab has the following data:
4247-
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
4248-
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
4249-
| 01 January 2024 | Down Payment | 25.0 | 25.0 | 0.0 | 0.0 | 0.0 | 75.0 | false |
4247+
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
4248+
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false | false |
4249+
| 01 January 2024 | Down Payment | 25.0 | 25.0 | 0.0 | 0.0 | 0.0 | 75.0 | false | false |
42504250
When Admin sets the business date to "01 February 2024"
42514251
And Customer makes "AUTOPAY" repayment on "01 February 2024" with 12.76 EUR transaction amount
42524252
Then Loan Repayment schedule has 7 periods, with the following data for periods:
@@ -4263,10 +4263,10 @@ Feature: LoanReAging
42634263
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
42644264
| 100.0 | 1.54 | 0.0 | 0.0 | 101.54 | 37.76 | 0.0 | 0.0 | 63.78 |
42654265
Then Loan Transactions tab has the following data:
4266-
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
4267-
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
4268-
| 01 January 2024 | Down Payment | 25.0 | 25.0 | 0.0 | 0.0 | 0.0 | 75.0 | false |
4269-
| 01 February 2024 | Repayment | 12.76 | 12.32 | 0.44 | 0.0 | 0.0 | 62.68 | false |
4266+
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
4267+
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false | false |
4268+
| 01 January 2024 | Down Payment | 25.0 | 25.0 | 0.0 | 0.0 | 0.0 | 75.0 | false | false |
4269+
| 01 February 2024 | Repayment | 12.76 | 12.32 | 0.44 | 0.0 | 0.0 | 62.68 | false | false |
42704270
When Admin sets the business date to "15 March 2024"
42714271
When Admin creates a Loan re-aging transaction with the following data:
42724272
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
@@ -4388,6 +4388,7 @@ Feature: LoanReAging
43884388
When Loan Pay-off is made on "01 April 2024"
43894389
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
43904390

4391+
@TestRailId:C4218 @AdvancedPaymentAllocation
43914392
Scenario: Verify allowing Re-aging on interest bearing loan - Interest calculation: Default Behavior - reverse-repay, reversal of backdated repayment - UC8.1
43924393
When Admin sets the business date to "01 January 2024"
43934394
When Admin creates a client with random data
@@ -4497,6 +4498,9 @@ Feature: LoanReAging
44974498
| 01 March 2024 | Repayment | 17.01 | 16.52 | 0.49 | 0.0 | 0.0 | 67.05 | true | false |
44984499
| 15 March 2024 | Re-age | 84.28 | 83.57 | 0.71 | 0.0 | 0.0 | 0.0 | false | true |
44994500

4501+
When Loan Pay-off is made on "01 April 2024"
4502+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
4503+
45004504
@TestRailId:C4088 @AdvancedPaymentAllocation
45014505
Scenario: Verify allowing Re-aging on interest bearing loan - Interest calculation: Default Behavior - reversal of Re-aging - UC9
45024506
When Admin sets the business date to "01 January 2024"
@@ -4644,11 +4648,11 @@ Feature: LoanReAging
46444648
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
46454649
| 100.0 | 1.07 | 0.0 | 0.0 | 101.07 | 17.01 | 0.0 | 0.0 | 84.06 |
46464650
Then Loan Transactions tab has the following data:
4647-
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
4648-
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
4649-
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
4650-
| 01 March 2024 | Accrual | 1.07 | 0.0 | 1.07 | 0.0 | 0.0 | 0.0 | false |
4651-
| 01 March 2024 | Charge-off | 84.06 | 83.57 | 0.49 | 0.0 | 0.0 | 0.0 | false |
4651+
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
4652+
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false | false |
4653+
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false | false |
4654+
| 01 March 2024 | Accrual | 1.07 | 0.0 | 1.07 | 0.0 | 0.0 | 0.0 | false | false |
4655+
| 01 March 2024 | Charge-off | 84.06 | 83.57 | 0.49 | 0.0 | 0.0 | 0.0 | false | false |
46524656
When Admin sets the business date to "15 March 2024"
46534657
Then Admin fails to create a Loan re-aging transaction with the following data because loan was charged-off:
46544658
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
@@ -4715,11 +4719,11 @@ Feature: LoanReAging
47154719
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
47164720
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 17.01 | 0.0 | 0.0 | 85.04 |
47174721
Then Loan Transactions tab has the following data:
4718-
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
4719-
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
4720-
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
4721-
| 01 March 2024 | Accrual | 1.07 | 0.0 | 1.07 | 0.0 | 0.0 | 0.0 | false |
4722-
| 01 March 2024 | Charge-off | 85.04 | 83.57 | 1.47 | 0.0 | 0.0 | 0.0 | false |
4722+
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
4723+
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false | false |
4724+
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false | false |
4725+
| 01 March 2024 | Accrual | 1.07 | 0.0 | 1.07 | 0.0 | 0.0 | 0.0 | false | false |
4726+
| 01 March 2024 | Charge-off | 85.04 | 83.57 | 1.47 | 0.0 | 0.0 | 0.0 | false | false |
47234727
When Admin sets the business date to "15 March 2024"
47244728
Then Admin fails to create a Loan re-aging transaction with the following data because loan was charged-off:
47254729
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
@@ -4846,11 +4850,11 @@ Feature: LoanReAging
48464850
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
48474851
| 100.0 | 1.07 | 0.0 | 0.0 | 101.07 | 17.01 | 0.0 | 0.0 | 84.06 |
48484852
Then Loan Transactions tab has the following data:
4849-
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
4850-
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
4851-
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
4852-
| 01 March 2024 | Accrual | 1.07 | 0.0 | 1.07 | 0.0 | 0.0 | 0.0 | false |
4853-
| 01 March 2024 | Charge-off | 84.06 | 83.57 | 0.49 | 0.0 | 0.0 | 0.0 | false |
4853+
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
4854+
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false | false |
4855+
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false | false |
4856+
| 01 March 2024 | Accrual | 1.07 | 0.0 | 1.07 | 0.0 | 0.0 | 0.0 | false | false |
4857+
| 01 March 2024 | Charge-off | 84.06 | 83.57 | 0.49 | 0.0 | 0.0 | 0.0 | false | false |
48544858
When Admin sets the business date to "15 March 2024"
48554859
Then Admin fails to create a Loan re-aging transaction with the following data because loan was charged-off:
48564860
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
@@ -4882,8 +4886,8 @@ Feature: LoanReAging
48824886
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
48834887
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 0.0 | 0.0 | 0.0 | 102.05 |
48844888
Then Loan Transactions tab has the following data:
4885-
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
4886-
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
4889+
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
4890+
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false | false |
48874891
When Admin sets the business date to "01 February 2024"
48884892
And Customer makes "AUTOPAY" repayment on "01 February 2024" with 17.01 EUR transaction amount
48894893
Then Loan Repayment schedule has 6 periods, with the following data for periods:

0 commit comments

Comments
 (0)