Skip to content

Commit cc7407d

Browse files
FINERACT-2354: e2e test scenarios for re-aging preview
1 parent 1aaeab6 commit cc7407d

File tree

8 files changed

+743
-123
lines changed

8 files changed

+743
-123
lines changed

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7818,8 +7818,8 @@ Feature: Loan
78187818
| 01 January 2025 | 01 January 2025 | 700.0 | |
78197819
| 01 January 2025 | 01 January 2025 | 200.0 | |
78207820

7821-
When Loan Pay-off is made on "1 January 2025"
7822-
Then Loan's all installments have obligations met
7821+
When Loan Pay-off is made on "01 January 2025"
7822+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
78237823

78247824
@TestRailId:C4029
78257825
Scenario: Verify tranche interest bearing progressive loan that expects two tranches at the same date with over expected disb amount in expected order - UC2
@@ -7892,7 +7892,7 @@ Feature: Loan
78927892
| 01 January 2025 | 01 January 2025 | 250.0 | |
78937893

78947894
When Loan Pay-off is made on "1 January 2025"
7895-
Then Loan's all installments have obligations met
7895+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
78967896

78977897
@TestRailId:C4030
78987898
Scenario: Verify tranche interest bearing progressive loan that expects two tranches at the same date with over expected disb amount in not expected order - UC3
@@ -7966,6 +7966,9 @@ Feature: Loan
79667966
| 01 January 2025 | 01 January 2025 | 300.0 | |
79677967
| 01 January 2025 | 01 January 2025 | 600.0 | |
79687968

7969+
When Loan Pay-off is made on "01 January 2025"
7970+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
7971+
79697972
@TestRailId:C4031
79707973
Scenario: Verify tranche interest bearing progressive loan that expects two tranches at the same date with diff expected disb amounts in diff order - UC4
79717974
When Admin sets the business date to "01 January 2025"
@@ -8038,7 +8041,7 @@ Feature: Loan
80388041
| 01 January 2025 | 01 January 2025 | 300.0 | |
80398042

80408043
When Loan Pay-off is made on "1 January 2025"
8041-
Then Loan's all installments have obligations met
8044+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
80428045

80438046
@TestRailId:C4032
80448047
Scenario: Verify tranche interest bearing progressive loan that expects two tranches at the same date in defined order with over expected 2nd disb amount - UC5
@@ -8111,7 +8114,7 @@ Feature: Loan
81118114
| 01 January 2025 | 01 January 2025 | 800.0 | |
81128115

81138116
When Loan Pay-off is made on "1 January 2025"
8114-
Then Loan's all installments have obligations met
8117+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
81158118

81168119
@TestRailId:C4033
81178120
Scenario: Verify tranche interest bearing progressive loan that expects tranche with added 2nd tranche at the same date and undo disbursement - UC6
@@ -8246,7 +8249,7 @@ Feature: Loan
82468249
Then Admin fails to disburse the loan on "01 February 2025" with "50" amount
82478250

82488251
When Loan Pay-off is made on "1 February 2025"
8249-
Then Loan's all installments have obligations met
8252+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
82508253

82518254
@TestRailId:C4034
82528255
Scenario: Verify tranche interest bearing progressive loan that expects tranches at the same date with repayment and undo last disbursement - UC7
@@ -8357,7 +8360,7 @@ Feature: Loan
83578360
Then Admin fails to disburse the loan on "01 January 2025" with "200" amount
83588361

83598362
When Loan Pay-off is made on "1 January 2025"
8360-
Then Loan's all installments have obligations met
8363+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
83618364

83628365
@TestRailId:C4035
83638366
Scenario: Verify tranche interest bearing progressive loan that expects tranche with added 2 tranches at the same date - UC8
@@ -8485,7 +8488,7 @@ Feature: Loan
84858488
Then Admin fails to disburse the loan on "01 February 2025" with "50" amount
84868489

84878490
When Loan Pay-off is made on "1 February 2025"
8488-
Then Loan's all installments have obligations met
8491+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
84898492

84908493
@TestRailId:C4118
84918494
Scenario: Verify cumulative multidisb loan with 2nd disb at 1st installment with flat interest type and same_as_repeyment interest calculation period - UC1

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

Lines changed: 42 additions & 31 deletions
Large diffs are not rendered by default.

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

Lines changed: 67 additions & 17 deletions
Large diffs are not rendered by default.

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

Lines changed: 192 additions & 26 deletions
Large diffs are not rendered by default.

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

Lines changed: 366 additions & 15 deletions
Large diffs are not rendered by default.

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

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@LoanReAgingPreviewFeature
22
Feature: LoanReAgingPreview
33

4+
@TestRailId:C4098
45
Scenario: Basic verification of the loan re-aging preview schedule
56
When Admin sets the business date to "01 January 2025"
67
When Admin creates a client with random data
@@ -47,6 +48,10 @@ Feature: LoanReAgingPreview
4748
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
4849
| 1000.0 | 0.0 | 0.0 | 0.0 | 1000.0 | 0.0 | 0.0 | 0.0 | 1000.0 |
4950

51+
When Loan Pay-off is made on "15 April 2025"
52+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
53+
54+
@TestRailId:C4099
5055
Scenario: Verify Loan re-aging preview with chargeback
5156
When Admin sets the business date to "01 January 2024"
5257
When Admin creates a client with random data
@@ -108,6 +113,10 @@ Feature: LoanReAgingPreview
108113
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
109114
| 1125.0 | 0.0 | 0.0 | 0.0 | 1125.0 | 250.0 | 0.0 | 0.0 | 875.0 |
110115

116+
When Loan Pay-off is made on "02 February 2024"
117+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
118+
119+
@TestRailId:C4100
111120
Scenario: Verify Loan re-aging preview with charge N+1 installment after maturity date
112121
When Admin sets the business date to "01 January 2025"
113122
When Admin creates a client with random data
@@ -155,6 +164,10 @@ Feature: LoanReAgingPreview
155164
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
156165
| 1000.0 | 0.0 | 0.0 | 10.0 | 1010.0 | 0.0 | 0.0 | 0.0 | 1010.0 |
157166

167+
When Loan Pay-off is made on "03 May 2025"
168+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
169+
170+
@TestRailId:C4101
158171
Scenario: Verify Loan re-aging preview with backdated repayment, charge and N+1 installment after maturity date
159172
When Admin sets the business date to "01 January 2025"
160173
When Admin creates a client with random data
@@ -203,6 +216,10 @@ Feature: LoanReAgingPreview
203216
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
204217
| 1000.0 | 0.0 | 0.0 | 10.0 | 1010.0 | 250.0 | 0.0 | 250.0 | 760.0 |
205218

219+
When Loan Pay-off is made on "03 May 2025"
220+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
221+
222+
@TestRailId:C4102
206223
Scenario: Verify Loan re-aging preview with downpayment, payoff and charge - N+1 installment after maturity date
207224
When Admin sets the business date to "01 January 2025"
208225
When Admin creates a client with random data
@@ -252,6 +269,10 @@ Feature: LoanReAgingPreview
252269
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
253270
| 1000.0 | 0.0 | 0.0 | 10.0 | 1010.0 | 1000.0 | 0.0 | 750.0 | 10.0 |
254271

272+
When Loan Pay-off is made on "20 March 2025"
273+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
274+
275+
@TestRailId:C4103
255276
Scenario: Verify that Loan re-aging preview with repayment, chargeback and charge - N+1 installment after maturity date
256277
When Admin sets the business date to "01 January 2025"
257278
When Admin creates a client with random data
@@ -301,6 +322,10 @@ Feature: LoanReAgingPreview
301322
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
302323
| 1125.0 | 0.0 | 0.0 | 10.0 | 1135.0 | 250.0 | 0.0 | 250.0 | 885.0 |
303324

325+
When Loan Pay-off is made on "03 May 2025"
326+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
327+
328+
@TestRailId:C4104
304329
Scenario: Verify that Loan re-aging preview with repayment, charge and charge adjustment - N+1 installment after maturity date
305330
When Admin sets the business date to "01 January 2025"
306331
When Admin creates a client with random data
@@ -351,6 +376,10 @@ Feature: LoanReAgingPreview
351376
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
352377
| 1000.0 | 0.0 | 0.0 | 20.0 | 1020.0 | 270.0 | 0.0 | 270.0 | 750.0 |
353378

379+
When Loan Pay-off is made on "04 May 2025"
380+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
381+
382+
@TestRailId:C4105
354383
Scenario: Verify that Loan re-aging transaction with MIR and charge - N+1 installment after maturity date
355384
When Admin sets the business date to "01 January 2025"
356385
When Admin creates a client with random data
@@ -399,6 +428,10 @@ Feature: LoanReAgingPreview
399428
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
400429
| 1000.0 | 0.0 | 0.0 | 20.0 | 1020.0 | 100.0 | 0.0 | 100.0 | 920.0 |
401430

431+
When Loan Pay-off is made on "03 May 2025"
432+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
433+
434+
@TestRailId:C4106
402435
Scenario: Verify that Loan re-aging preview with 2nd disbursement and charge - N+1 installment after maturity date
403436
When Admin sets the business date to "01 January 2025"
404437
When Admin creates a client with random data
@@ -451,4 +484,7 @@ Feature: LoanReAgingPreview
451484
| 6 | 30 | 01 May 2025 | | 0.0 | 0.0 | 0.0 | 0.0 | 20.0 | 20.0 | 0.0 | 0.0 | 0.0 | 20.0 |
452485
And Loan Repayment schedule has the following data in Total row:
453486
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
454-
| 600.0 | 0.0 | 0.0 | 20.0 | 620.0 | 0.0 | 0.0 | 0.0 | 620.0 |
487+
| 600.0 | 0.0 | 0.0 | 20.0 | 620.0 | 0.0 | 0.0 | 0.0 | 620.0 |
488+
489+
When Loan Pay-off is made on "01 May 2025"
490+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Feature: LoanUpdateApprovedAmount
1313
When Admin successfully disburse the loan on "01 January 2025" with "1000" EUR transaction amount
1414

1515
When Loan Pay-off is made on "1 January 2025"
16-
Then Loan's all installments have obligations met
16+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
1717

1818
@TestRailId:C3859
1919
Scenario: Verify update approved amount after undo disbursement for single disb progressive loan - UC3
@@ -30,7 +30,7 @@ Feature: LoanUpdateApprovedAmount
3030
When Admin successfully disburse the loan on "01 January 2025" with "600" EUR transaction amount
3131

3232
When Loan Pay-off is made on "1 January 2025"
33-
Then Loan's all installments have obligations met
33+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
3434

3535
@TestRailId:C3860
3636
Scenario: Verify update approved amount with approved over applied amount for progressive multidisbursal loan with percentage overAppliedCalculationType - UC4
@@ -49,7 +49,7 @@ Feature: LoanUpdateApprovedAmount
4949
And Admin successfully disburse the loan on "1 January 2025" with "400" EUR transaction amount
5050

5151
When Loan Pay-off is made on "1 January 2025"
52-
Then Loan's all installments have obligations met
52+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
5353

5454
@TestRailId:C3861
5555
Scenario: Verify update approved amount with approved over applied amount and capitalized income for progressive loan with percentage overAppliedCalculationType - UC8_1
@@ -69,7 +69,7 @@ Feature: LoanUpdateApprovedAmount
6969
And Admin adds capitalized income with "AUTOPAY" payment type to the loan on "1 January 2025" with "400" EUR transaction amount
7070

7171
When Loan Pay-off is made on "1 January 2025"
72-
Then Loan's all installments have obligations met
72+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
7373

7474
@TestRailId:C3862
7575
Scenario: Verify update approved amount with capitalized income for progressive loan - UC8_2
@@ -86,7 +86,7 @@ Feature: LoanUpdateApprovedAmount
8686
And Admin adds capitalized income with "AUTOPAY" payment type to the loan on "1 January 2025" with "200" EUR transaction amount
8787

8888
When Loan Pay-off is made on "1 January 2025"
89-
Then Loan's all installments have obligations met
89+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
9090

9191
@TestRailId:C3863
9292
Scenario: Verify update approved amount with capitalized income for progressive multidisbursal loan - UC8_3
@@ -103,7 +103,7 @@ Feature: LoanUpdateApprovedAmount
103103
And Admin successfully disburse the loan on "1 January 2025" with "200" EUR transaction amount
104104

105105
When Loan Pay-off is made on "1 January 2025"
106-
Then Loan's all installments have obligations met
106+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
107107

108108
@TestRailId:C3864
109109
Scenario: Verify update approved amount before disbursement for single disb cumulative loan - UC5_1
@@ -117,7 +117,7 @@ Feature: LoanUpdateApprovedAmount
117117
And Admin successfully disburse the loan on "1 January 2025" with "100" EUR transaction amount
118118

119119
When Loan Pay-off is made on "1 January 2025"
120-
Then Loan's all installments have obligations met
120+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
121121

122122
@TestRailId:C3865
123123
Scenario: Verify update approved amount before disbursement for single disb progressive loan - UC5_2
@@ -131,7 +131,7 @@ Feature: LoanUpdateApprovedAmount
131131
And Admin successfully disburse the loan on "1 January 2025" with "100" EUR transaction amount
132132

133133
When Loan Pay-off is made on "1 January 2025"
134-
Then Loan's all installments have obligations met
134+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
135135

136136
@TestRailId:C3866
137137
Scenario: Verify approved amount change for progressive multidisbursal loan that doesn't expect tranches - UC6
@@ -159,7 +159,7 @@ Feature: LoanUpdateApprovedAmount
159159
Then Update loan approved amount is forbidden with amount "500" due to higher principal amount on loan
160160

161161
When Loan Pay-off is made on "1 January 2025"
162-
Then Loan's all installments have obligations met
162+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
163163

164164
@TestRailId:C3867
165165
Scenario: Verify approved amount change with lower value for progressive multidisbursal loan that expects two tranches - UC7_1
@@ -198,7 +198,7 @@ Feature: LoanUpdateApprovedAmount
198198
| 03 January 2025 | Disbursement | 500.0 | 0.0 | 0.0 | 0.0 | 0.0 | 1000.0 | false | false |
199199

200200
When Loan Pay-off is made on "3 January 2025"
201-
Then Loan's all installments have obligations met
201+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
202202

203203
@TestRailId:C3868
204204
Scenario: Verify approved amount change with greater value for progressive multidisbursal loan that expects two tranches - UC7_2
@@ -237,4 +237,4 @@ Feature: LoanUpdateApprovedAmount
237237
| 03 January 2025 | Disbursement | 600.0 | 0.0 | 0.0 | 0.0 | 0.0 | 1200.0 | false | false |
238238

239239
When Loan Pay-off is made on "3 January 2025"
240-
Then Loan's all installments have obligations met
240+
Then Loan is closed with zero outstanding balance and it's all installments have obligations met

0 commit comments

Comments
 (0)