From 71a5e78f5d1ea5349f1f682af6086189ad677315 Mon Sep 17 00:00:00 2001 From: Azeez Muibi Date: Wed, 2 Apr 2025 15:19:16 +0100 Subject: [PATCH] Updated Jmeter --- jmeter/first_advance.jmx | 1535 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 1535 insertions(+) create mode 100644 jmeter/first_advance.jmx diff --git a/jmeter/first_advance.jmx b/jmeter/first_advance.jmx new file mode 100644 index 0000000..b456d16 --- /dev/null +++ b/jmeter/first_advance.jmx @@ -0,0 +1,1535 @@ + + + + + + false + true + false + + + + + + + + continue + + false + 1 + + 5 + 5 + false + + + true + + + + + + + + devcore.digifi.chiefsoft.net + + https + + /v1/api/salary + 6 + 10000 + 30000 + + + + + + + Content-Type + application/json + + + Accept + application/json + + + + + + + + + https://devcore.digifi.chiefsoft.net + ${__P(username,testuser)} + ${__P(password,testpass)} + + + + + false + + + + + + + + transactionId + TR${__time(yyyyMMddHHmmss)}${__threadNum} + = + + + customerId + CN${__Random(100000,999999)} + = + + + accountId + ACN${__Random(1000000,9999999)} + = + + + msisdn + 234${__Random(7000000000,9099999999)} + = + + + requestId + REQ${__time(yyyyMMddHHmmss)}${__threadNum} + = + + + countryCode + NGR + = + + + countryId + 01 + = + + + requestedAmount + 10000 + = + + + productId + 101 + = + + + channel + USSD + = + + + collectionMethod + 1 + = + + + counter + 1 + = + + + penalChargeAmount + 500 + = + + + phoneNumber + +234${__Random(7000000000,9099999999)} + = + + + smsMessage + Your loan application with ID ${transactionId} has been processed successfully. Thank you for choosing our service. + = + + + bulkSmsMessage + Special offer: Apply for a loan today and get reduced interest rates! + = + + + + + + + + true + + + + false + { + "transactionId": "${transactionId}", + "fbnTransactionId": "${transactionId}", + "customerId": "${customerId}", + "accountId": "${accountId}", + "RAC_Array": ["SalaryAccount", "BVN", "BVNAttachedtoAccount", "CRC", "CRMS", "AccountStatus", "Lien", "NoBouncedCheck", "Whitelist", "NoPastDueSalaryLoan", "NoPastDueOtherLoan"] +} + = + + + + + + + + /RACCheck + POST + true + false + true + false + + + + + + + racResult + $.resultDescription + 1 + Failed + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.RACResponse + + false + false + false + false + + + + + + + true + + + + false + { + "transactionId": "${transactionId}", + "customerId": "${customerId}", + "accountId": "${accountId}" +} + = + + + + + + + + /LienCheck + POST + true + false + true + false + + + + + + + lienAmount + $.lienAmount + 1 + 0 + + + + + lienCheckResultCode + $.resultCode + 1 + 99 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.resultCode + 00 + true + false + false + false + + + + + + + true + + + + false + { + "transactionId": "${transactionId}", + "countryCode": "${countryCode}", + "customerId": "${customerId}", + "accountId": "${accountId}", + "msisdn": "${msisdn}", + "channel": "${channel}" +} + = + + + + + + + + /EligibilityCheck + POST + true + false + true + false + + + + + + + offerId + $.eligibleOffers[0].offerId + 1 + 101 + + + + + eligibilityResultCode + $.resultCode + 1 + 99 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.resultCode + 00 + true + false + false + false + + + + + $.eligibleOffers + + false + false + false + false + + + + + + + ${__jexl3("${eligibilityResultCode}" == "00")} + false + true + + + + + true + + + + false + { + "requestId": "${requestId}", + "transactionId": "${transactionId}", + "customerId": "${customerId}", + "accountId": "${accountId}", + "msisdn": "${msisdn}", + "requestedAmount": ${requestedAmount}, + "productId": "${productId}", + "channel": "${channel}" +} + = + + + + + + + + /SelectOffer + POST + true + false + true + false + + + + + + + selectOfferResultCode + $.resultCode + 1 + 99 + + + + + loanAmount + $.loan[0].amount + 1 + ${requestedAmount} + + + + + interestAmount + $.loan[0].Interest + 1 + 300 + + + + + managementFee + $.loan[0].ManagementFee + 1 + 100 + + + + + insuranceFee + $.loan[0].InsuranceFee + 1 + 100 + + + + + vatAmount + $.loan[0].VATamount + 1 + 75 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.resultCode + 00 + true + false + false + false + + + + + $.loan + + false + false + false + false + + + + + + + ${__jexl3("${selectOfferResultCode}" == "00")} + false + true + + + + + true + + + + false + { + "requestId": "${requestId}", + "transactionId": "${transactionId}", + "customerId": "${customerId}", + "accountId": "${accountId}", + "msisdn": "${msisdn}", + "productId": "${productId}", + "requestedAmount": ${loanAmount}, + "collectionType": 0, + "offerId": ${offerId}, + "channel": "${channel}" +} + = + + + + + + + + /ProvideLoan + POST + true + false + true + false + + + + + + + provideLoanResultCode + $.resultCode + 1 + 99 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.resultCode + 00 + true + false + false + false + + + + + $.transactionId + ${transactionId} + true + false + false + false + + + + + + + ${__jexl3("${provideLoanResultCode}" == "00")} + false + true + + + + + true + + + + false + { + "text": "Your loan application with ID ${transactionId} has been approved. Amount: ${loanAmount}. Thank you for choosing our service.", + "dest": "${phoneNumber}", + "unicode": false +} + = + + + + + + + + /SMS + POST + true + false + true + false + + + + + + + smsResultCode + $.statusCode + 1 + 500 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.IsSuccessful + true + true + false + false + false + + + + + + + true + + + + false + { + "requestId": "${requestId}_disburse", + "countryCode": "${countryCode}", + "transactionId": "${transactionId}", + "debtId": "DID${__time(yyyyMMddHHmmss)}${__threadNum}", + "customerId": "${customerId}", + "accountId": "${accountId}", + "productId": "${productId}", + "provideAmount": ${loanAmount}, + "totalFees": ${__jexl3(${interestAmount} + ${managementFee} + ${insuranceFee} + ${vatAmount})}, + "feesDetails": { + "collectAmountInterest": ${interestAmount}, + "collectAmountMgtFee": ${managementFee}, + "collectAmountInsurance": ${insuranceFee}, + "collectAmountVAT": ${vatAmount} + }, + "countryId": "${countryId}" +} + = + + + + + + + + /Disbursement + POST + true + false + true + false + + + + + + + disbursementResultCode + $.resultCode + 1 + 99 + + + + + debtId + $.debtId + 1 + 0 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.resultCode + 00 + true + false + false + false + + + + + + + true + + + + false + { + "requestId": "${requestId}_status", + "countryCode": "${countryCode}", + "transactionId": "${transactionId}", + "debtId": "${debtId}", + "transactionType": "Disbursement", + "customerId": "${customerId}" +} + = + + + + + + + + /StatusCall + POST + true + false + true + false + + + + + + + statusCallResultCode + $.resultCode + 1 + 99 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.resultCode + 00 + true + false + false + false + + + + + $.data + + false + false + false + false + + + + + + + true + + + + false + { + "requestId": "${requestId}_verify", + "countryCode": "${countryCode}", + "counter": "${counter}", + "transactionId": "${transactionId}", + "customerId": "${customerId}", + "accountId": "${accountId}", + "transactionType": "Disbursement" +} + = + + + + + + + + /TransactionVerify + POST + true + false + true + false + + + + + + + transactionVerifyResultCode + $.resultCode + 1 + 99 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.resultCode + 00 + true + false + false + false + + + + + $.transactionType + Disbursement + true + false + false + false + + + + + + + true + + + + false + { + "transactionId": "${transactionId}", + "customerId": "${customerId}", + "msisdn": "${msisdn}", + "channel": "${channel}" +} + = + + + + + + + + /LoanStatus + POST + true + false + true + false + + + + + + + loanStatusResultCode + $.resultCode + 1 + 99 + + + + + loanDebtId + $.loans[0].debtId + 1 + ${debtId} + + + + + currentLoanAmount + $.loans[0].currentLoanAmount + 1 + ${loanAmount} + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.resultCode + 00 + true + false + false + false + + + + + $.loans + + false + false + false + false + + + + + + + ${__jexl3("${loanStatusResultCode}" == "00" and "${loanDebtId}" != "0")} + false + true + + + + + true + + + + false + { + "transactionId": "PC${__time(yyyyMMddHHmmss)}${__threadNum}", + "fbnTransactionId": "${transactionId}", + "debtId": "${loanDebtId}", + "customerId": "${customerId}", + "accountId": "${accountId}", + "penalCharge": ${penalChargeAmount}, + "lienAmount": ${penalChargeAmount}, + "comment": "Penal charge via JMeter test" +} + = + + + + + + + + /PenalCharge + POST + true + false + true + false + + + + + + + penalChargeResultCode + $.resultCode + 1 + 99 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.resultCode + 00 + true + false + false + false + + + + + + + true + + + + false + [ + { + "text": "A penal charge of ${penalChargeAmount} has been applied to your loan account ${loanDebtId}. Please contact customer service for details.", + "dest": "${phoneNumber}", + "unicode": true + }, + { + "text": "Reminder: Your loan repayment is due soon. Please ensure sufficient funds in your account to avoid additional charges.", + "dest": "${phoneNumber}", + "unicode": true + } +] + = + + + + + + + + /BulkSMS + POST + true + false + true + false + + + + + + + bulkSmsResultCode + $.statusCode + 1 + 500 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.IsSuccessful + true + true + false + false + false + + + + + + + true + + + + false + { + "transactionId": "CL${__time(yyyyMMddHHmmss)}${__threadNum}", + "fbnTransactionId": "${transactionId}", + "debtId": "${loanDebtId}", + "customerId": "${customerId}", + "accountId": "${accountId}", + "productId": "${productId}", + "collectAmount": ${currentLoanAmount}, + "penalCharge": ${penalChargeAmount}, + "collectionMethod": ${collectionMethod}, + "lienAmount": ${currentLoanAmount}, + "countryId": "${countryId}", + "comment": "Collection via JMeter test" +} + = + + + + + + + + /CollectLoan + POST + true + false + true + false + + + + + + + collectLoanResultCode + $.resultCode + 1 + 99 + + + + + collectionTransactionId + $.transactionId + 1 + 0 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.resultCode + 00 + true + false + false + false + + + + + $.debtId + ${loanDebtId} + true + false + false + false + + + + + + + true + + + + false + { + "requestId": "${requestId}_verify_collection", + "countryCode": "${countryCode}", + "counter": "${counter}", + "transactionId": "${collectionTransactionId}", + "customerId": "${customerId}", + "accountId": "${accountId}", + "transactionType": "Collection" +} + = + + + + + + + + /TransactionVerify + POST + true + false + true + false + + + + + + + collectionVerifyResultCode + $.resultCode + 1 + 99 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.resultCode + 00 + true + false + false + false + + + + + $.transactionType + Collection + true + false + false + false + + + + + + + true + + + + false + { + "text": "Your loan repayment of ${currentLoanAmount} has been successfully processed. Thank you for your payment.", + "dest": "${phoneNumber}", + "unicode": false +} + = + + + + + + + + /SMS + POST + true + false + true + false + + + + + + + smsCollectionResultCode + $.statusCode + 1 + 500 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.IsSuccessful + true + true + false + false + false + + + + + + + true + + + + false + { + "requestId": "${requestId}_repay", + "countryCode": "${countryCode}", + "transactionId": "${transactionId}", + "debtId": "${loanDebtId}", + "customerId": "${customerId}", + "accountId": "${accountId}", + "productId": "${productId}", + "collectedAmount": ${currentLoanAmount}, + "penalCharge": ${penalChargeAmount}, + "collectionMethod": ${collectionMethod}, + "lienAmount": ${currentLoanAmount}, + "comment": "Repayment via JMeter test" +} + = + + + + + + + + /Repayment + POST + true + false + true + false + + + + + + + repaymentResultCode + $.resultCode + 1 + 99 + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + $.resultCode + 00 + true + false + false + false + + + + + $.debtId + ${loanDebtId} + true + false + false + false + + + + + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + + \ No newline at end of file