forked from DigiFi/digifi-BankToProductCore
652 lines
36 KiB
XML
652 lines
36 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="Simbrella FirstAdvance API Test">
|
|
<boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
|
|
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="baseUrl" elementType="Argument">
|
|
<stringProp name="Argument.name">baseUrl</stringProp>
|
|
<stringProp name="Argument.value">http://localhost:4500</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="username" elementType="Argument">
|
|
<stringProp name="Argument.name">username</stringProp>
|
|
<stringProp name="Argument.value">user</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="password" elementType="Argument">
|
|
<stringProp name="Argument.name">password</stringProp>
|
|
<stringProp name="Argument.value">password</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<boolProp name="TestPlan.functional_mode">false</boolProp>
|
|
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
|
|
</TestPlan>
|
|
<hashTree>
|
|
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Authorizaton Thread Group">
|
|
<intProp name="ThreadGroup.num_threads">1</intProp>
|
|
<intProp name="ThreadGroup.ramp_time">1</intProp>
|
|
<boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
|
|
<stringProp name="ThreadGroup.on_sample_error">stopthread</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>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="1. Authorize" enabled="true">
|
|
<stringProp name="HTTPSampler.domain">localhost</stringProp>
|
|
<stringProp name="HTTPSampler.port">4500</stringProp>
|
|
<stringProp name="HTTPSampler.protocol">http</stringProp>
|
|
<stringProp name="HTTPSampler.path">/Authorize</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">{
|
|
"username":"${username}",
|
|
"password":"${password}"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<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/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="JSON Extractor - Auth Token" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">access_token</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.data.access_token</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">NOT_FOUND</stringProp>
|
|
<stringProp name="JSONPostProcessor.scope">variable</stringProp>
|
|
<stringProp name="Scope.variable"></stringProp>
|
|
<stringProp name="Sample.scope">all</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="JSON Extractor - Auth Refresh Token" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">refresh_token</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.data.refresh_token</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">NOT_FOUND</stringProp>
|
|
<stringProp name="JSONPostProcessor.scope">variable</stringProp>
|
|
<stringProp name="Scope.variable"></stringProp>
|
|
<stringProp name="Sample.scope">all</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="JSR223 PostProcessor" enabled="true">
|
|
<stringProp name="cacheKey">true</stringProp>
|
|
<stringProp name="filename"></stringProp>
|
|
<stringProp name="parameters"></stringProp>
|
|
<stringProp name="script">props.put("GLOBAL_ACCESS_TOKEN", vars.get("access_token"));
|
|
props.put("GLOBAL_REFRESH_TOKEN", vars.get("refresh_token"));</stringProp>
|
|
<stringProp name="scriptLanguage">groovy</stringProp>
|
|
</JSR223PostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings"/>
|
|
<collectionProp name="Asserter.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<DebugSampler guiclass="TestBeanGUI" testclass="DebugSampler" testname="Debug Sampler" enabled="true">
|
|
<boolProp name="displayJMeterProperties">false</boolProp>
|
|
<boolProp name="displayJMeterVariables">true</boolProp>
|
|
<boolProp name="displaySystemProperties">false</boolProp>
|
|
</DebugSampler>
|
|
<hashTree/>
|
|
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
|
|
<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>
|
|
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="API Test Thread Group">
|
|
<intProp name="ThreadGroup.num_threads">1</intProp>
|
|
<intProp name="ThreadGroup.ramp_time">1</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>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="2. Authorize Refresh" enabled="true">
|
|
<stringProp name="HTTPSampler.domain">localhost</stringProp>
|
|
<stringProp name="HTTPSampler.port">4500</stringProp>
|
|
<stringProp name="HTTPSampler.protocol">http</stringProp>
|
|
<stringProp name="HTTPSampler.path">/AuthorizeRefresh</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">{
|
|

|
|
}
|
|
</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<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>
|
|
<elementProp name="" elementType="Header">
|
|
<stringProp name="Header.name">Authorization</stringProp>
|
|
<stringProp name="Header.value">Bearer ${__P(GLOBAL_REFRESH_TOKEN)}</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</HeaderManager>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings"/>
|
|
<collectionProp name="Asserter.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
<JSR223PreProcessor guiclass="TestBeanGUI" testclass="JSR223PreProcessor" testname="JSR223 PreProcessor" enabled="true">
|
|
<stringProp name="scriptLanguage">groovy</stringProp>
|
|
<stringProp name="parameters"></stringProp>
|
|
<stringProp name="filename"></stringProp>
|
|
<stringProp name="cacheKey">true</stringProp>
|
|
<stringProp name="script">// Generate random IDs and store them in JMeter variables
|
|
def transactionId = "TR" + org.apache.commons.lang3.RandomStringUtils.randomAlphanumeric(12)
|
|
def customerId = "CN" + org.apache.commons.lang3.RandomUtils.nextInt(1000000, 9999999)
|
|
def accountId = "ACN" + org.apache.commons.lang3.RandomUtils.nextInt(1000000, 9999999)
|
|
def msisdn = "809" + org.apache.commons.lang3.RandomUtils.nextInt(1000000, 9999999)
|
|
|
|
// Generate requestId: current timestamp + 6-digit random number
|
|
def timestamp = new Date().format("yyyyMMddHHmmssSSS") // e.g., 20250414161243123
|
|
def randomSuffix = org.apache.commons.lang3.RandomStringUtils.randomNumeric(6)
|
|
def requestId = timestamp + randomSuffix
|
|
|
|
vars.put("transactionId", transactionId)
|
|
vars.put("customerId", customerId.toString())
|
|
vars.put("accountId", accountId.toString())
|
|
vars.put("msisdn", msisdn.toString())
|
|
vars.put("requestId", requestId)
|
|
</stringProp>
|
|
</JSR223PreProcessor>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="3. Eligibility Check">
|
|
<stringProp name="HTTPSampler.domain">localhost</stringProp>
|
|
<stringProp name="HTTPSampler.port">4500</stringProp>
|
|
<stringProp name="HTTPSampler.protocol">http</stringProp>
|
|
<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":"NGR",
|
|
"customerId":"${customerId}",
|
|
"msisdn":"${msisdn}",
|
|
"channel":"100",
|
|
"accountId":"${accountId}"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<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>
|
|
<elementProp name="" elementType="Header">
|
|
<stringProp name="Header.name">Authorization</stringProp>
|
|
<stringProp name="Header.value">Bearer ${__P(GLOBAL_ACCESS_TOKEN)}</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</HeaderManager>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="JSON Extractor - Product ID">
|
|
<stringProp name="JSONPostProcessor.referenceNames">productId</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.eligibleOffers[0].productId</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">0</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">NOT_FOUND</stringProp>
|
|
<stringProp name="JSONPostProcessor.scope">variable</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings"/>
|
|
<collectionProp name="Asserter.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="4. Select Offer">
|
|
<stringProp name="HTTPSampler.domain">localhost</stringProp>
|
|
<stringProp name="HTTPSampler.port">4500</stringProp>
|
|
<stringProp name="HTTPSampler.protocol">http</stringProp>
|
|
<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}",
|
|
"msisdn": "${msisdn}",
|
|
"requestedAmount": ${__Random(500000,1000000,)}.00,
|
|
"accountId":"${accountId}",
|
|
"productId": "${productId}",
|
|
"channel": "100"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<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>
|
|
<elementProp name="" elementType="Header">
|
|
<stringProp name="Header.name">Authorization</stringProp>
|
|
<stringProp name="Header.value">Bearer ${__P(GLOBAL_ACCESS_TOKEN)}</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</HeaderManager>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="JSON Extractor - Offer ID">
|
|
<stringProp name="JSONPostProcessor.referenceNames">offerId</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.loan[0].offerId</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">0</stringProp>
|
|
<stringProp name="JSONPostProcessor.scope">variable</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">NOT_FOUND</stringProp>
|
|
<stringProp name="Sample.scope">all</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="JSON Extractor - Requested Amount" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">amount</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.loan[0].amount</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">0</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">800</stringProp>
|
|
<stringProp name="JSONPostProcessor.scope">variable</stringProp>
|
|
<stringProp name="Sample.scope">all</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings"/>
|
|
<collectionProp name="Asserter.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="5. Provide Loan">
|
|
<stringProp name="HTTPSampler.domain">localhost</stringProp>
|
|
<stringProp name="HTTPSampler.port">4500</stringProp>
|
|
<stringProp name="HTTPSampler.protocol">http</stringProp>
|
|
<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}",
|
|
"requestedAmount":${amount},
|
|
"collectionType":1,
|
|
"offerId":"${offerId}",
|
|
"channel":"100"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<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>
|
|
<elementProp name="" elementType="Header">
|
|
<stringProp name="Header.name">Authorization</stringProp>
|
|
<stringProp name="Header.value">Bearer ${__P(GLOBAL_ACCESS_TOKEN)}</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</HeaderManager>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings"/>
|
|
<collectionProp name="Asserter.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="6. Loan Status" enabled="true">
|
|
<stringProp name="HTTPSampler.domain">localhost</stringProp>
|
|
<stringProp name="HTTPSampler.port">4500</stringProp>
|
|
<stringProp name="HTTPSampler.protocol">http</stringProp>
|
|
<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":"100",
|
|
"accountId":"${accountId}"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<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>
|
|
<elementProp name="" elementType="Header">
|
|
<stringProp name="Header.name">Authorization</stringProp>
|
|
<stringProp name="Header.value">Bearer ${__P(GLOBAL_ACCESS_TOKEN)}</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</HeaderManager>
|
|
<hashTree/>
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="JSON Extractor - Debt Id" enabled="true">
|
|
<stringProp name="JSONPostProcessor.referenceNames">debtId</stringProp>
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.loans[0].debtId</stringProp>
|
|
<stringProp name="JSONPostProcessor.match_numbers">0</stringProp>
|
|
<stringProp name="JSONPostProcessor.defaultValues">800</stringProp>
|
|
<stringProp name="JSONPostProcessor.scope">variable</stringProp>
|
|
<stringProp name="Sample.scope">all</stringProp>
|
|
</JSONPostProcessor>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings"/>
|
|
<collectionProp name="Asserter.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="7. Repayment" enabled="true">
|
|
<stringProp name="HTTPSampler.domain">localhost</stringProp>
|
|
<stringProp name="HTTPSampler.port">4500</stringProp>
|
|
<stringProp name="HTTPSampler.protocol">http</stringProp>
|
|
<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">{
|
|
"debtId":"${debtId}",
|
|
"transactionId":"${transactionId}",
|
|
"customerId":"${customerId}",
|
|
"msisdn":"${msisdn}",
|
|
"channel":"100",
|
|
"accountId":"${accountId}",
|
|
"productId": "${productId}"
|
|
}</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
</HTTPSamplerProxy>
|
|
<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>
|
|
<elementProp name="" elementType="Header">
|
|
<stringProp name="Header.name">Authorization</stringProp>
|
|
<stringProp name="Header.value">Bearer ${__P(GLOBAL_ACCESS_TOKEN)}</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</HeaderManager>
|
|
<hashTree/>
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
<collectionProp name="Asserion.test_strings"/>
|
|
<collectionProp name="Asserter.test_strings">
|
|
<stringProp name="49586">200</stringProp>
|
|
</collectionProp>
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
</ResponseAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
|
|
<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/>
|
|
<DebugSampler guiclass="TestBeanGUI" testclass="DebugSampler" testname="Debug Sampler" enabled="true">
|
|
<boolProp name="displayJMeterProperties">false</boolProp>
|
|
<boolProp name="displayJMeterVariables">true</boolProp>
|
|
<boolProp name="displaySystemProperties">false</boolProp>
|
|
</DebugSampler>
|
|
<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/>
|
|
</hashTree>
|
|
</hashTree>
|
|
</jmeterTestPlan>
|