Skip to content

Instantly share code, notes, and snippets.

@TharmiganK
Created April 17, 2024 05:06
Show Gist options
  • Save TharmiganK/6098afe243c8032c69bcb73d42ba380c to your computer and use it in GitHub Desktop.
Save TharmiganK/6098afe243c8032c69bcb73d42ba380c to your computer and use it in GitHub Desktop.
Load test configuration
<?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="Test Plan" 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="Users">
<intProp name="ThreadGroup.num_threads">60</intProp>
<intProp name="ThreadGroup.ramp_time">60</intProp>
<longProp name="ThreadGroup.duration">300</longProp>
<boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
<boolProp name="ThreadGroup.scheduler">true</boolProp>
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller">
<intProp name="LoopController.loops">-1</intProp>
<boolProp name="LoopController.continue_forever">false</boolProp>
</elementProp>
</ThreadGroup>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTP Request">
<intProp name="HTTPSampler.connect_timeout">10000</intProp>
<intProp name="HTTPSampler.response_timeout">30000</intProp>
<stringProp name="HTTPSampler.domain">localhost</stringProp>
<stringProp name="HTTPSampler.port">9999</stringProp>
<stringProp name="HTTPSampler.protocol">http</stringProp>
<stringProp name="HTTPSampler.path">passthrough</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">{&#xd;
&quot;users&quot;: [&#xd;
{&#xd;
&quot;id&quot;: 1,&#xd;
&quot;username&quot;: &quot;user1&quot;,&#xd;
&quot;email&quot;: &quot;user1@example.com&quot;,&#xd;
&quot;age&quot;: 25,&#xd;
&quot;gender&quot;: &quot;male&quot;,&#xd;
&quot;address&quot;: {&#xd;
&quot;street&quot;: &quot;123 Main St&quot;,&#xd;
&quot;city&quot;: &quot;New York&quot;,&#xd;
&quot;state&quot;: &quot;NY&quot;,&#xd;
&quot;zip&quot;: &quot;10001&quot;&#xd;
}&#xd;
},&#xd;
{&#xd;
&quot;id&quot;: 2,&#xd;
&quot;username&quot;: &quot;user2&quot;,&#xd;
&quot;email&quot;: &quot;user2@example.com&quot;,&#xd;
&quot;age&quot;: 30,&#xd;
&quot;gender&quot;: &quot;female&quot;,&#xd;
&quot;address&quot;: {&#xd;
&quot;street&quot;: &quot;456 Elm St&quot;,&#xd;
&quot;city&quot;: &quot;Los Angeles&quot;,&#xd;
&quot;state&quot;: &quot;CA&quot;,&#xd;
&quot;zip&quot;: &quot;90001&quot;&#xd;
}&#xd;
},&#xd;
{&#xd;
&quot;id&quot;: 3,&#xd;
&quot;username&quot;: &quot;user3&quot;,&#xd;
&quot;email&quot;: &quot;user3@example.com&quot;,&#xd;
&quot;age&quot;: 28,&#xd;
&quot;gender&quot;: &quot;male&quot;,&#xd;
&quot;address&quot;: {&#xd;
&quot;street&quot;: &quot;789 Oak St&quot;,&#xd;
&quot;city&quot;: &quot;Chicago&quot;,&#xd;
&quot;state&quot;: &quot;IL&quot;,&#xd;
&quot;zip&quot;: &quot;60001&quot;&#xd;
}&#xd;
},&#xd;
{&#xd;
&quot;id&quot;: 4,&#xd;
&quot;username&quot;: &quot;user4&quot;,&#xd;
&quot;email&quot;: &quot;user4@example.com&quot;,&#xd;
&quot;age&quot;: 35,&#xd;
&quot;gender&quot;: &quot;female&quot;,&#xd;
&quot;address&quot;: {&#xd;
&quot;street&quot;: &quot;1011 Pine St&quot;,&#xd;
&quot;city&quot;: &quot;Houston&quot;,&#xd;
&quot;state&quot;: &quot;TX&quot;,&#xd;
&quot;zip&quot;: &quot;77001&quot;&#xd;
}&#xd;
},&#xd;
{&#xd;
&quot;id&quot;: 5,&#xd;
&quot;username&quot;: &quot;user5&quot;,&#xd;
&quot;email&quot;: &quot;user5@example.com&quot;,&#xd;
&quot;age&quot;: 27,&#xd;
&quot;gender&quot;: &quot;male&quot;,&#xd;
&quot;address&quot;: {&#xd;
&quot;street&quot;: &quot;1213 Maple St&quot;,&#xd;
&quot;city&quot;: &quot;Miami&quot;,&#xd;
&quot;state&quot;: &quot;FL&quot;,&#xd;
&quot;zip&quot;: &quot;33001&quot;&#xd;
}&#xd;
}&#xd;
]&#xd;
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
</HTTPSamplerProxy>
<hashTree>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager">
<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/>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion">
<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">1</intProp>
</ResponseAssertion>
<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/>
</hashTree>
</hashTree>
</hashTree>
</jmeterTestPlan>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment