chore: Added jmeter jmx script for order creation

parent 7c67492e
......@@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.0.BUILD-SNAPSHOT</version>
<version>2.3.0.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.nisum</groupId>
......
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.2">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="OrderProcessingAPI" enabled="true">
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.tearDown_on_shutdown">false</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>
</TestPlan>
<hashTree>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="CreateOrderThreadGroup" enabled="true">
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
<stringProp name="LoopController.loops">1</stringProp>
<boolProp name="LoopController.continue_forever">false</boolProp>
</elementProp>
<stringProp name="ThreadGroup.num_threads">1</stringProp>
<stringProp name="ThreadGroup.ramp_time">1</stringProp>
<boolProp name="ThreadGroup.delayedStart">false</boolProp>
<boolProp name="ThreadGroup.scheduler">false</boolProp>
<stringProp name="ThreadGroup.duration"></stringProp>
<stringProp name="ThreadGroup.delay"></stringProp>
<boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
</ThreadGroup>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="createOrderMongoDB HTTP Request" enabled="true">
<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">{&#xd;
&quot;ordersDto&quot;: [&#xd;
{&#xd;
&quot;orderId&quot;: &quot;XCXC9CXZC-3434NM34-4324344DFD-32AASD&quot;,&#xd;
&quot;purchaseDate&quot;: &quot;2017-01-20T19:49:35Z&quot;,&#xd;
&quot;lastUpdateDate&quot;: &quot;2017-01-20T19:49:35Z&quot;,&#xd;
&quot;orderStatus&quot;: &quot;Pending&quot;,&#xd;
&quot;fulfillmentChannel&quot;: &quot;SellerFulfilled&quot;,&#xd;
&quot;numberOfItemsShipped&quot;: 0,&#xd;
&quot;numberOfItemsUnshipped&quot;: 0,&#xd;
&quot;paymentMethod&quot;: &quot;Other&quot;,&#xd;
&quot;paymentMethodDetails&quot;: [&#xd;
&quot;CreditCard&quot;,&#xd;
&quot;GiftCerificate&quot;&#xd;
],&#xd;
&quot;marketplaceId&quot;: &quot;ATVPDKIKX0DER&quot;,&#xd;
&quot;shipmentServiceLevelCategory&quot;: &quot;Standard&quot;,&#xd;
&quot;orderType&quot;: &quot;StandardOrder&quot;,&#xd;
&quot;earliestShipDate&quot;: &quot;2017-01-20T19:51:16Z&quot;,&#xd;
&quot;latestShipDate&quot;: &quot;2017-01-25T19:49:35Z&quot;,&#xd;
&quot;shippingAddress&quot;: {&#xd;
&quot;name&quot;: &quot;Michigan address&quot;,&#xd;
&quot;addressLine1&quot;: &quot;Nandanavanam Apartments,Durga nagar&quot;,&#xd;
&quot;city&quot;: &quot;Canton&quot;,&#xd;
&quot;stateOrRegion&quot;: &quot;MI&quot;,&#xd;
&quot;postalCode&quot;: &quot;48817&quot;,&#xd;
&quot;countryCode&quot;: &quot;US&quot;&#xd;
},&#xd;
&quot;buyerInfo&quot;: {&#xd;
&quot;buyerEmail&quot;: &quot;user@example.com&quot;,&#xd;
&quot;buyerName&quot;: &quot;John Doe&quot;,&#xd;
&quot;buyerTaxInfo&quot;: {&#xd;
&quot;companyLegalName&quot;: &quot;ABC Corporation&quot;&#xd;
},&#xd;
&quot;purchaseOrderNumber&quot;: &quot;1234567890123&quot;&#xd;
}&#xd;
}, {&#xd;
&quot;orderId&quot;: &quot;XCXC9CXZC-3434NM34-4324344DFD-32AASD&quot;,&#xd;
&quot;purchaseDate&quot;: &quot;2017-01-20T19:49:35Z&quot;,&#xd;
&quot;lastUpdateDate&quot;: &quot;2017-01-20T19:49:35Z&quot;,&#xd;
&quot;orderStatus&quot;: &quot;Pending&quot;,&#xd;
&quot;fulfillmentChannel&quot;: &quot;SellerFulfilled&quot;,&#xd;
&quot;numberOfItemsShipped&quot;: 0,&#xd;
&quot;numberOfItemsUnshipped&quot;: 0,&#xd;
&quot;paymentMethod&quot;: &quot;Other&quot;,&#xd;
&quot;paymentMethodDetails&quot;: [&#xd;
&quot;CreditCard&quot;,&#xd;
&quot;GiftCerificate&quot;&#xd;
],&#xd;
&quot;marketplaceId&quot;: &quot;ATVPDKIKX0DER&quot;,&#xd;
&quot;shipmentServiceLevelCategory&quot;: &quot;Standard&quot;,&#xd;
&quot;orderType&quot;: &quot;StandardOrder&quot;,&#xd;
&quot;earliestShipDate&quot;: &quot;2017-01-20T19:51:16Z&quot;,&#xd;
&quot;latestShipDate&quot;: &quot;2017-01-25T19:49:35Z&quot;,&#xd;
&quot;shippingAddress&quot;: {&#xd;
&quot;name&quot;: &quot;Michigan address&quot;,&#xd;
&quot;addressLine1&quot;: &quot;Nandanavanam Apartments,Durga nagar&quot;,&#xd;
&quot;city&quot;: &quot;Canton&quot;,&#xd;
&quot;stateOrRegion&quot;: &quot;MI&quot;,&#xd;
&quot;postalCode&quot;: &quot;48817&quot;,&#xd;
&quot;countryCode&quot;: &quot;US&quot;&#xd;
},&#xd;
&quot;buyerInfo&quot;: {&#xd;
&quot;buyerEmail&quot;: &quot;user@example.com&quot;,&#xd;
&quot;buyerName&quot;: &quot;John Doe&quot;,&#xd;
&quot;buyerTaxInfo&quot;: {&#xd;
&quot;companyLegalName&quot;: &quot;ABC Corporation&quot;&#xd;
},&#xd;
&quot;purchaseOrderNumber&quot;: &quot;1234567890123&quot;&#xd;
}&#xd;
}, {&#xd;
&quot;orderId&quot;: &quot;XCXC9CXZC-3434NM34-4324344DFD-32AASD&quot;,&#xd;
&quot;purchaseDate&quot;: &quot;2017-01-20T19:49:35Z&quot;,&#xd;
&quot;lastUpdateDate&quot;: &quot;2017-01-20T19:49:35Z&quot;,&#xd;
&quot;orderStatus&quot;: &quot;Pending&quot;,&#xd;
&quot;fulfillmentChannel&quot;: &quot;SellerFulfilled&quot;,&#xd;
&quot;numberOfItemsShipped&quot;: 0,&#xd;
&quot;numberOfItemsUnshipped&quot;: 0,&#xd;
&quot;paymentMethod&quot;: &quot;Other&quot;,&#xd;
&quot;paymentMethodDetails&quot;: [&#xd;
&quot;CreditCard&quot;,&#xd;
&quot;GiftCerificate&quot;&#xd;
],&#xd;
&quot;marketplaceId&quot;: &quot;ATVPDKIKX0DER&quot;,&#xd;
&quot;shipmentServiceLevelCategory&quot;: &quot;Standard&quot;,&#xd;
&quot;orderType&quot;: &quot;StandardOrder&quot;,&#xd;
&quot;earliestShipDate&quot;: &quot;2017-01-20T19:51:16Z&quot;,&#xd;
&quot;latestShipDate&quot;: &quot;2017-01-25T19:49:35Z&quot;,&#xd;
&quot;shippingAddress&quot;: {&#xd;
&quot;name&quot;: &quot;Michigan address&quot;,&#xd;
&quot;addressLine1&quot;: &quot;Nandanavanam Apartments,Durga nagar&quot;,&#xd;
&quot;city&quot;: &quot;Canton&quot;,&#xd;
&quot;stateOrRegion&quot;: &quot;MI&quot;,&#xd;
&quot;postalCode&quot;: &quot;48817&quot;,&#xd;
&quot;countryCode&quot;: &quot;US&quot;&#xd;
},&#xd;
&quot;buyerInfo&quot;: {&#xd;
&quot;buyerEmail&quot;: &quot;user@example.com&quot;,&#xd;
&quot;buyerName&quot;: &quot;John Doe&quot;,&#xd;
&quot;buyerTaxInfo&quot;: {&#xd;
&quot;companyLegalName&quot;: &quot;ABC Corporation&quot;&#xd;
},&#xd;
&quot;purchaseOrderNumber&quot;: &quot;1234567890123&quot;&#xd;
}&#xd;
}&#xd;
]&#xd;
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp name="HTTPSampler.domain">localhost</stringProp>
<stringProp name="HTTPSampler.port">8080</stringProp>
<stringProp name="HTTPSampler.protocol">http</stringProp>
<stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
<stringProp name="HTTPSampler.path">/order/create</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
<boolProp name="HTTPSampler.BROWSER_COMPATIBLE_MULTIPART">false</boolProp>
<boolProp name="HTTPSampler.image_parser">false</boolProp>
<boolProp name="HTTPSampler.concurrentDwn">false</boolProp>
<stringProp name="HTTPSampler.concurrentPool">6</stringProp>
<boolProp name="HTTPSampler.md5">false</boolProp>
<intProp name="HTTPSampler.ipSourceType">0</intProp>
</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>
</collectionProp>
</HeaderManager>
<hashTree/>
<ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" 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">D:\Work\apache-jmeter-5.6.2\apache-jmeter-5.6.2\scripts\ReponseFiles\CreateOrderResponseFile.xml</stringProp>
</ResultCollector>
<hashTree/>
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
<stringProp name="JSON_PATH">$..orderId</stringProp>
<stringProp name="EXPECTED_VALUE">[
&quot;XCXC9CXZC-3434NM34-4324344DFD-32AASD&quot;,
&quot;XCXC9CXZC-3434NM34-4324344DFD-32AASD&quot;,
&quot;XCXC9CXZC-3434NM34-4324344DFD-32AASD&quot;
]</stringProp>
<boolProp name="JSONVALIDATION">true</boolProp>
<boolProp name="EXPECT_NULL">false</boolProp>
<boolProp name="INVERT">false</boolProp>
<boolProp name="ISREGEX">false</boolProp>
</JSONPathAssertion>
<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>
</hashTree>
</hashTree>
</hashTree>
</jmeterTestPlan>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment