1290 lines
81 KiB
XML
1290 lines
81 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.3">
|
|
<hashTree>
|
|
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Complete Loan Application Flow Test" enabled="true">
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
<boolProp name="TestPlan.functional_mode">false</boolProp>
|
|
<boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
|
|
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
|
|
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
<collectionProp name="Arguments.arguments"/>
|
|
</elementProp>
|
|
<stringProp name="TestPlan.user_define_classpath"></stringProp>
|
|
</TestPlan>
|
|
<hashTree>
|
|
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Loan Application Users">
|
|
<intProp name="ThreadGroup.num_threads">5</intProp>
|
|
<intProp name="ThreadGroup.ramp_time">5</intProp>
|
|
<boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
|
|
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
|
|
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller">
|
|
<stringProp name="LoopController.loops">1</stringProp>
|
|
<boolProp name="LoopController.continue_forever">false</boolProp>
|
|
</elementProp>
|
|
</ThreadGroup>
|
|
<hashTree>
|
|
<ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults">
|
|
<intProp name="HTTPSampler.connect_timeout">10000</intProp>
|
|
<intProp name="HTTPSampler.response_timeout">30000</intProp>
|
|
<stringProp name="HTTPSampler.domain">devcore.digifi.chiefsoft.net</stringProp>
|
|
<stringProp name="HTTPSampler.protocol">http</stringProp>
|
|
<stringProp name="HTTPSampler.path">/v1/api/salary</stringProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
|
|
<collectionProp name="Arguments.arguments"/>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.implementation"></stringProp>
|
|
</ConfigTestElement>
|
|
<hashTree/>
|
|
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
|
|
<collectionProp name="HeaderManager.headers">
|
|
<elementProp name="" elementType="Header">
|
|
<stringProp name="Header.name">Content-Type</stringProp>
|
|
<stringProp name="Header.value">application/json</stringProp>
|
|
</elementProp>
|
|
<elementProp name="" elementType="Header">
|
|
<stringProp name="Header.name">Accept</stringProp>
|
|
<stringProp name="Header.value">application/json</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</HeaderManager>
|
|
<hashTree/>
|
|
<AuthManager guiclass="AuthPanel" testclass="AuthManager" testname="HTTP Authorization Manager" enabled="true">
|
|
<collectionProp name="AuthManager.auth_list">
|
|
<elementProp name="" elementType="Authorization">
|
|
<stringProp name="Authorization.url">https://devcore.digifi.chiefsoft.net</stringProp>
|
|
<stringProp name="Authorization.username">${__P(username,testuser)}</stringProp>
|
|
<stringProp name="Authorization.password">${__P(password,testpass)}</stringProp>
|
|
<stringProp name="Authorization.domain"></stringProp>
|
|
<stringProp name="Authorization.realm"></stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
<boolProp name="AuthManager.controlledByThreadGroup">false</boolProp>
|
|
</AuthManager>
|
|
<hashTree/>
|
|
<Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="transactionId" elementType="Argument">
|
|
<stringProp name="Argument.name">transactionId</stringProp>
|
|
<stringProp name="Argument.value">TR${__time(yyyyMMddHHmmss)}${__threadNum}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="customerId" elementType="Argument">
|
|
<stringProp name="Argument.name">customerId</stringProp>
|
|
<stringProp name="Argument.value">CN${__Random(100000,999999)}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="accountId" elementType="Argument">
|
|
<stringProp name="Argument.name">accountId</stringProp>
|
|
<stringProp name="Argument.value">ACN${__Random(1000000,9999999)}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="msisdn" elementType="Argument">
|
|
<stringProp name="Argument.name">msisdn</stringProp>
|
|
<stringProp name="Argument.value">234${__Random(7000000000,9099999999)}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="requestId" elementType="Argument">
|
|
<stringProp name="Argument.name">requestId</stringProp>
|
|
<stringProp name="Argument.value">REQ${__time(yyyyMMddHHmmss)}${__threadNum}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="countryCode" elementType="Argument">
|
|
<stringProp name="Argument.name">countryCode</stringProp>
|
|
<stringProp name="Argument.value">NGR</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="countryId" elementType="Argument">
|
|
<stringProp name="Argument.name">countryId</stringProp>
|
|
<stringProp name="Argument.value">01</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="requestedAmount" elementType="Argument">
|
|
<stringProp name="Argument.name">requestedAmount</stringProp>
|
|
<stringProp name="Argument.value">10000</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="productId" elementType="Argument">
|
|
<stringProp name="Argument.name">productId</stringProp>
|
|
<stringProp name="Argument.value">101</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="channel" elementType="Argument">
|
|
<stringProp name="Argument.name">channel</stringProp>
|
|
<stringProp name="Argument.value">USSD</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="collectionMethod" elementType="Argument">
|
|
<stringProp name="Argument.name">collectionMethod</stringProp>
|
|
<stringProp name="Argument.value">1</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="counter" elementType="Argument">
|
|
<stringProp name="Argument.name">counter</stringProp>
|
|
<stringProp name="Argument.value">1</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="penalChargeAmount" elementType="Argument">
|
|
<stringProp name="Argument.name">penalChargeAmount</stringProp>
|
|
<stringProp name="Argument.value">500</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="phoneNumber" elementType="Argument">
|
|
<stringProp name="Argument.name">phoneNumber</stringProp>
|
|
<stringProp name="Argument.value">+234${__Random(7000000000,9099999999)}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="smsMessage" elementType="Argument">
|
|
<stringProp name="Argument.name">smsMessage</stringProp>
|
|
<stringProp name="Argument.value">Your loan application with ID ${transactionId} has been processed successfully. Thank you for choosing our service.</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="bulkSmsMessage" elementType="Argument">
|
|
<stringProp name="Argument.name">bulkSmsMessage</stringProp>
|
|
<stringProp name="Argument.value">Special offer: Apply for a loan today and get reduced interest rates!</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</Arguments>
|
|
<hashTree/>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="1. RAC Check">
|
|
<stringProp name="HTTPSampler.path">/RACCheck</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"transactionId": "${transactionId}",
|
|
"fbnTransactionId": "${transactionId}",
|
|
"customerId": "${customerId}",
|
|
"accountId": "${accountId}",
|
|
"RAC_Array": ["SalaryAccount", "BVN", "BVNAttachedtoAccount", "CRC", "CRMS", "AccountStatus", "Lien", "NoBouncedCheck", "Whitelist", "NoPastDueSalaryLoan", "NoPastDueOtherLoan"]
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract RAC Result" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">racResult</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.resultDescription</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">Failed</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert RAC Response Exists" enabled="true">
|
|
<stringProp name="JSON_PATH">$.RACResponse</stringProp>
|
|
<stringProp name="EXPECTED_VALUE"></stringProp>
|
|
<boolProp name="JSONVALIDATION">false</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="2. Lien Check" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/LienCheck</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"transactionId": "${transactionId}",
|
|
"customerId": "${customerId}",
|
|
"accountId": "${accountId}"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Lien Amount" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">lienAmount</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.lienAmount</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">0</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Lien Check Result Code" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">lienCheckResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.resultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">99</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Lien Check Result" enabled="true">
|
|
<stringProp name="JSON_PATH">$.resultCode</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">00</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="3. Eligibility Check" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/EligibilityCheck</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"transactionId": "${transactionId}",
|
|
"countryCode": "${countryCode}",
|
|
"customerId": "${customerId}",
|
|
"accountId": "${accountId}",
|
|
"msisdn": "${msisdn}",
|
|
"channel": "${channel}"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract offerId" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">offerId</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.eligibleOffers[0].offerId</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">101</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract resultCode" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">eligibilityResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.resultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">99</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Eligibility Result" enabled="true">
|
|
<stringProp name="JSON_PATH">$.resultCode</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">00</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Eligible Offers Exist" enabled="true">
|
|
<stringProp name="JSON_PATH">$.eligibleOffers</stringProp>
|
|
<stringProp name="EXPECTED_VALUE"></stringProp>
|
|
<boolProp name="JSONVALIDATION">false</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<IfController guiclass="IfControllerPanel" testclass="IfController" testname="If Eligibility Check Successful" enabled="true">
|
|
<stringProp name="IfController.condition">${__jexl3("${eligibilityResultCode}" == "00")}</stringProp>
|
|
<boolProp name="IfController.evaluateAll">false</boolProp>
|
|
<boolProp name="IfController.useExpression">true</boolProp>
|
|
</IfController>
|
|
<hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="4. Select Offer" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/SelectOffer</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"requestId": "${requestId}",
|
|
"transactionId": "${transactionId}",
|
|
"customerId": "${customerId}",
|
|
"accountId": "${accountId}",
|
|
"msisdn": "${msisdn}",
|
|
"requestedAmount": ${requestedAmount},
|
|
"productId": "${productId}",
|
|
"channel": "${channel}"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Select Offer Result Code" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">selectOfferResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.resultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">99</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Loan Amount" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">loanAmount</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.loan[0].amount</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">${requestedAmount}</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Interest" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">interestAmount</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.loan[0].Interest</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">300</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Management Fee" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">managementFee</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.loan[0].ManagementFee</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">100</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Insurance Fee" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">insuranceFee</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.loan[0].InsuranceFee</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">100</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract VAT Amount" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">vatAmount</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.loan[0].VATamount</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">75</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Select Offer Result" enabled="true">
|
|
<stringProp name="JSON_PATH">$.resultCode</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">00</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Loan Details Exist" enabled="true">
|
|
<stringProp name="JSON_PATH">$.loan</stringProp>
|
|
<stringProp name="EXPECTED_VALUE"></stringProp>
|
|
<boolProp name="JSONVALIDATION">false</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<IfController guiclass="IfControllerPanel" testclass="IfController" testname="If Select Offer Successful" enabled="true">
|
|
<stringProp name="IfController.condition">${__jexl3("${selectOfferResultCode}" == "00")}</stringProp>
|
|
<boolProp name="IfController.evaluateAll">false</boolProp>
|
|
<boolProp name="IfController.useExpression">true</boolProp>
|
|
</IfController>
|
|
<hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="5. Provide Loan" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/ProvideLoan</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"requestId": "${requestId}",
|
|
"transactionId": "${transactionId}",
|
|
"customerId": "${customerId}",
|
|
"accountId": "${accountId}",
|
|
"msisdn": "${msisdn}",
|
|
"productId": "${productId}",
|
|
"requestedAmount": ${loanAmount},
|
|
"collectionType": 0,
|
|
"offerId": ${offerId},
|
|
"channel": "${channel}"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Provide Loan Result Code" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">provideLoanResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.resultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">99</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Provide Loan Result" enabled="true">
|
|
<stringProp name="JSON_PATH">$.resultCode</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">00</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Transaction ID Match" enabled="true">
|
|
<stringProp name="JSON_PATH">$.transactionId</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">${transactionId}</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<IfController guiclass="IfControllerPanel" testclass="IfController" testname="If Provide Loan Successful" enabled="true">
|
|
<stringProp name="IfController.condition">${__jexl3("${provideLoanResultCode}" == "00")}</stringProp>
|
|
<boolProp name="IfController.evaluateAll">false</boolProp>
|
|
<boolProp name="IfController.useExpression">true</boolProp>
|
|
</IfController>
|
|
<hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="6. Send SMS Notification (Loan Approval)" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/SMS</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"text": "Your loan application with ID ${transactionId} has been approved. Amount: ${loanAmount}. Thank you for choosing our service.",
|
|
"dest": "${phoneNumber}",
|
|
"unicode": false
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract SMS Result" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">smsResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.statusCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">500</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert SMS Success" enabled="true">
|
|
<stringProp name="JSON_PATH">$.IsSuccessful</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">true</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="7. Disbursement" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/Disbursement</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"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}"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Disbursement Result Code" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">disbursementResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.resultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">99</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Debt ID" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">debtId</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.debtId</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">0</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Disbursement Result" enabled="true">
|
|
<stringProp name="JSON_PATH">$.resultCode</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">00</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="8. Status Call (Disbursement)" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/StatusCall</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"requestId": "${requestId}_status",
|
|
"countryCode": "${countryCode}",
|
|
"transactionId": "${transactionId}",
|
|
"debtId": "${debtId}",
|
|
"transactionType": "Disbursement",
|
|
"customerId": "${customerId}"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Status Call Result Code" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">statusCallResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.resultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">99</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Status Call Result" enabled="true">
|
|
<stringProp name="JSON_PATH">$.resultCode</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">00</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Data Exists" enabled="true">
|
|
<stringProp name="JSON_PATH">$.data</stringProp>
|
|
<stringProp name="EXPECTED_VALUE"></stringProp>
|
|
<boolProp name="JSONVALIDATION">false</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="9. Transaction Verify (Disbursement)" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/TransactionVerify</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"requestId": "${requestId}_verify",
|
|
"countryCode": "${countryCode}",
|
|
"counter": "${counter}",
|
|
"transactionId": "${transactionId}",
|
|
"customerId": "${customerId}",
|
|
"accountId": "${accountId}",
|
|
"transactionType": "Disbursement"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Transaction Verify Result Code" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">transactionVerifyResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.resultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">99</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Transaction Verify Result" enabled="true">
|
|
<stringProp name="JSON_PATH">$.resultCode</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">00</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Transaction Type" enabled="true">
|
|
<stringProp name="JSON_PATH">$.transactionType</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">Disbursement</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="10. Loan Status Check" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/LoanStatus</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"transactionId": "${transactionId}",
|
|
"customerId": "${customerId}",
|
|
"msisdn": "${msisdn}",
|
|
"channel": "${channel}"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Loan Status Result Code" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">loanStatusResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.resultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">99</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Debt ID from Loan Status" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">loanDebtId</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.loans[0].debtId</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">${debtId}</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Current Loan Amount" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">currentLoanAmount</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.loans[0].currentLoanAmount</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">${loanAmount}</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Loan Status Result" enabled="true">
|
|
<stringProp name="JSON_PATH">$.resultCode</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">00</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Loans Exist" enabled="true">
|
|
<stringProp name="JSON_PATH">$.loans</stringProp>
|
|
<stringProp name="EXPECTED_VALUE"></stringProp>
|
|
<boolProp name="JSONVALIDATION">false</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<IfController guiclass="IfControllerPanel" testclass="IfController" testname="If Loan Status Check Successful" enabled="true">
|
|
<stringProp name="IfController.condition">${__jexl3("${loanStatusResultCode}" == "00" and "${loanDebtId}" != "0")}</stringProp>
|
|
<boolProp name="IfController.evaluateAll">false</boolProp>
|
|
<boolProp name="IfController.useExpression">true</boolProp>
|
|
</IfController>
|
|
<hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="11. Penal Charge" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/PenalCharge</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"transactionId": "PC${__time(yyyyMMddHHmmss)}${__threadNum}",
|
|
"fbnTransactionId": "${transactionId}",
|
|
"debtId": "${loanDebtId}",
|
|
"customerId": "${customerId}",
|
|
"accountId": "${accountId}",
|
|
"penalCharge": ${penalChargeAmount},
|
|
"lienAmount": ${penalChargeAmount},
|
|
"comment": "Penal charge via JMeter test"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Penal Charge Result Code" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">penalChargeResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.resultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">99</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Penal Charge Result" enabled="true">
|
|
<stringProp name="JSON_PATH">$.resultCode</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">00</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="12. Send Bulk SMS (Penal Charge Notification)" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/BulkSMS</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">[
|
|
{
|
|
"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
|
|
}
|
|
]</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Bulk SMS Result" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">bulkSmsResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.statusCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">500</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Bulk SMS Success" enabled="true">
|
|
<stringProp name="JSON_PATH">$.IsSuccessful</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">true</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="13. Collect Loan" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/CollectLoan</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"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"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Collect Loan Result Code" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">collectLoanResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.resultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">99</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Collection Transaction ID" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">collectionTransactionId</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.transactionId</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">0</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Collect Loan Result" enabled="true">
|
|
<stringProp name="JSON_PATH">$.resultCode</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">00</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Debt ID Match" enabled="true">
|
|
<stringProp name="JSON_PATH">$.debtId</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">${loanDebtId}</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="14. Transaction Verify (Collection)" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/TransactionVerify</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"requestId": "${requestId}_verify_collection",
|
|
"countryCode": "${countryCode}",
|
|
"counter": "${counter}",
|
|
"transactionId": "${collectionTransactionId}",
|
|
"customerId": "${customerId}",
|
|
"accountId": "${accountId}",
|
|
"transactionType": "Collection"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Collection Verify Result Code" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">collectionVerifyResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.resultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">99</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Collection Verify Result" enabled="true">
|
|
<stringProp name="JSON_PATH">$.resultCode</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">00</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Transaction Type" enabled="true">
|
|
<stringProp name="JSON_PATH">$.transactionType</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">Collection</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="15. Send SMS (Collection Confirmation)" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/SMS</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"text": "Your loan repayment of ${currentLoanAmount} has been successfully processed. Thank you for your payment.",
|
|
"dest": "${phoneNumber}",
|
|
"unicode": false
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract SMS Result" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">smsCollectionResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.statusCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">500</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert SMS Success" enabled="true">
|
|
<stringProp name="JSON_PATH">$.IsSuccessful</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">true</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="16. Repayment" enabled="true">
|
|
<stringProp name="HTTPSampler.path">/Repayment</stringProp>
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
<stringProp name="Argument.value">{
|
|
"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"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Extract Repayment Result Code" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">repaymentResultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.resultCode</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">99</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Code Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">8</intProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Repayment Result" enabled="true">
|
|
<stringProp name="JSON_PATH">$.resultCode</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">00</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Assert Debt ID Match" enabled="true">
|
|
<stringProp name="JSON_PATH">$.debtId</stringProp>
|
|
<stringProp name="EXPECTED_VALUE">${loanDebtId}</stringProp>
|
|
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
<boolProp name="INVERT">false</boolProp>
|
|
<boolProp name="ISREGEX">false</boolProp>
|
|
</JSONPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
</hashTree>
|
|
</hashTree>
|
|
</hashTree>
|
|
</hashTree>
|
|
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree">
|
|
<boolProp name="ResultCollector.error_logging">false</boolProp>
|
|
<objProp>
|
|
<name>saveConfig</name>
|
|
<value class="SampleSaveConfiguration">
|
|
<time>true</time>
|
|
<latency>true</latency>
|
|
<timestamp>true</timestamp>
|
|
<success>true</success>
|
|
<label>true</label>
|
|
<code>true</code>
|
|
<message>true</message>
|
|
<threadName>true</threadName>
|
|
<dataType>true</dataType>
|
|
<encoding>false</encoding>
|
|
<assertions>true</assertions>
|
|
<subresults>true</subresults>
|
|
<responseData>false</responseData>
|
|
<samplerData>false</samplerData>
|
|
<xml>false</xml>
|
|
<fieldNames>true</fieldNames>
|
|
<responseHeaders>false</responseHeaders>
|
|
<requestHeaders>false</requestHeaders>
|
|
<responseDataOnError>false</responseDataOnError>
|
|
<saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
|
|
<assertionsResultsToSave>0</assertionsResultsToSave>
|
|
<bytes>true</bytes>
|
|
<sentBytes>true</sentBytes>
|
|
<url>true</url>
|
|
<threadCounts>true</threadCounts>
|
|
<idleTime>true</idleTime>
|
|
<connectTime>true</connectTime>
|
|
</value>
|
|
</objProp>
|
|
<stringProp name="filename"></stringProp>
|
|
</ResultCollector>
|
|
<hashTree/>
|
|
<ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report">
|
|
<boolProp name="ResultCollector.error_logging">false</boolProp>
|
|
<objProp>
|
|
<name>saveConfig</name>
|
|
<value class="SampleSaveConfiguration">
|
|
<time>true</time>
|
|
<latency>true</latency>
|
|
<timestamp>true</timestamp>
|
|
<success>true</success>
|
|
<label>true</label>
|
|
<code>true</code>
|
|
<message>true</message>
|
|
<threadName>true</threadName>
|
|
<dataType>true</dataType>
|
|
<encoding>false</encoding>
|
|
<assertions>true</assertions>
|
|
<subresults>true</subresults>
|
|
<responseData>false</responseData>
|
|
<samplerData>false</samplerData>
|
|
<xml>false</xml>
|
|
<fieldNames>true</fieldNames>
|
|
<responseHeaders>false</responseHeaders>
|
|
<requestHeaders>false</requestHeaders>
|
|
<responseDataOnError>false</responseDataOnError>
|
|
<saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
|
|
<assertionsResultsToSave>0</assertionsResultsToSave>
|
|
<bytes>true</bytes>
|
|
<sentBytes>true</sentBytes>
|
|
<url>true</url>
|
|
<threadCounts>true</threadCounts>
|
|
<idleTime>true</idleTime>
|
|
<connectTime>true</connectTime>
|
|
</value>
|
|
</objProp>
|
|
<stringProp name="filename"></stringProp>
|
|
</ResultCollector>
|
|
<hashTree/>
|
|
<ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="Aggregate Report">
|
|
<boolProp name="ResultCollector.error_logging">false</boolProp>
|
|
<objProp>
|
|
<name>saveConfig</name>
|
|
<value class="SampleSaveConfiguration">
|
|
<time>true</time>
|
|
<latency>true</latency>
|
|
<timestamp>true</timestamp>
|
|
<success>true</success>
|
|
<label>true</label>
|
|
<code>true</code>
|
|
<message>true</message>
|
|
<threadName>true</threadName>
|
|
<dataType>true</dataType>
|
|
<encoding>false</encoding>
|
|
<assertions>true</assertions>
|
|
<subresults>true</subresults>
|
|
<responseData>false</responseData>
|
|
<samplerData>false</samplerData>
|
|
<xml>false</xml>
|
|
<fieldNames>true</fieldNames>
|
|
<responseHeaders>false</responseHeaders>
|
|
<requestHeaders>false</requestHeaders>
|
|
<responseDataOnError>false</responseDataOnError>
|
|
<saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
|
|
<assertionsResultsToSave>0</assertionsResultsToSave>
|
|
<bytes>true</bytes>
|
|
<sentBytes>true</sentBytes>
|
|
<url>true</url>
|
|
<threadCounts>true</threadCounts>
|
|
<idleTime>true</idleTime>
|
|
<connectTime>true</connectTime>
|
|
</value>
|
|
</objProp>
|
|
<stringProp name="filename"></stringProp>
|
|
</ResultCollector>
|
|
<hashTree/>
|
|
</hashTree>
|
|
</hashTree>
|
|
</hashTree>
|
|
</jmeterTestPlan>
|