github.com/kubeshop/testkube@v1.17.23/test/jmeter/executor-tests/jmeter-executor-smoke-negative.jmx (about) 1 <?xml version="1.0" encoding="UTF-8"?> 2 <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.5"> 3 <hashTree> 4 <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true"> 5 <stringProp name="TestPlan.comments"></stringProp> 6 <boolProp name="TestPlan.functional_mode">false</boolProp> 7 <boolProp name="TestPlan.serialize_threadgroups">false</boolProp> 8 <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> 9 <collectionProp name="Arguments.arguments"/> 10 </elementProp> 11 <stringProp name="TestPlan.user_define_classpath"></stringProp> 12 </TestPlan> 13 <hashTree> 14 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true"> 15 <stringProp name="ThreadGroup.on_sample_error">stopthread</stringProp> 16 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true"> 17 <boolProp name="LoopController.continue_forever">false</boolProp> 18 <stringProp name="LoopController.loops">1</stringProp> 19 </elementProp> 20 <stringProp name="ThreadGroup.num_threads">1</stringProp> 21 <stringProp name="ThreadGroup.ramp_time">1</stringProp> 22 <longProp name="ThreadGroup.start_time">1668426657000</longProp> 23 <longProp name="ThreadGroup.end_time">1668426657000</longProp> 24 <boolProp name="ThreadGroup.scheduler">false</boolProp> 25 <stringProp name="ThreadGroup.duration"></stringProp> 26 <stringProp name="ThreadGroup.delay"></stringProp> 27 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp> 28 </ThreadGroup> 29 <hashTree> 30 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Testkube - HTTP Request" enabled="true"> 31 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> 32 <collectionProp name="Arguments.arguments"/> 33 </elementProp> 34 <stringProp name="HTTPSampler.domain">testkube.kubeshop.io</stringProp> 35 <stringProp name="HTTPSampler.port"></stringProp> 36 <stringProp name="HTTPSampler.protocol"></stringProp> 37 <stringProp name="HTTPSampler.contentEncoding"></stringProp> 38 <stringProp name="HTTPSampler.path"></stringProp> 39 <stringProp name="HTTPSampler.method">GET</stringProp> 40 <boolProp name="HTTPSampler.follow_redirects">true</boolProp> 41 <boolProp name="HTTPSampler.auto_redirects">false</boolProp> 42 <boolProp name="HTTPSampler.use_keepalive">true</boolProp> 43 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> 44 <stringProp name="HTTPSampler.embedded_url_re"></stringProp> 45 <stringProp name="HTTPSampler.connect_timeout"></stringProp> 46 <stringProp name="HTTPSampler.response_timeout"></stringProp> 47 </HTTPSamplerProxy> 48 <hashTree/> 49 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true"> 50 <collectionProp name="Asserion.test_strings"> 51 <stringProp name="51547">418</stringProp> 52 </collectionProp> 53 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> 54 <boolProp name="Assertion.assume_success">false</boolProp> 55 <intProp name="Assertion.test_type">8</intProp> 56 <stringProp name="Assertion.custom_message"></stringProp> 57 </ResponseAssertion> 58 <hashTree/> 59 <ResultCollector guiclass="AssertionVisualizer" testclass="ResultCollector" testname="Assertion Results" enabled="true"> 60 <boolProp name="ResultCollector.error_logging">false</boolProp> 61 <objProp> 62 <name>saveConfig</name> 63 <value class="SampleSaveConfiguration"> 64 <time>true</time> 65 <latency>true</latency> 66 <timestamp>true</timestamp> 67 <success>true</success> 68 <label>true</label> 69 <code>true</code> 70 <message>true</message> 71 <threadName>true</threadName> 72 <dataType>true</dataType> 73 <encoding>false</encoding> 74 <assertions>true</assertions> 75 <subresults>true</subresults> 76 <responseData>false</responseData> 77 <samplerData>false</samplerData> 78 <xml>false</xml> 79 <fieldNames>false</fieldNames> 80 <responseHeaders>false</responseHeaders> 81 <requestHeaders>false</requestHeaders> 82 <responseDataOnError>false</responseDataOnError> 83 <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> 84 <assertionsResultsToSave>0</assertionsResultsToSave> 85 <bytes>true</bytes> 86 <threadCounts>true</threadCounts> 87 </value> 88 </objProp> 89 <stringProp name="filename"></stringProp> 90 </ResultCollector> 91 <hashTree/> 92 <JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="JSR223 PostProcessor" enabled="true"> 93 <stringProp name="scriptLanguage">groovy</stringProp> 94 <stringProp name="parameters"></stringProp> 95 <stringProp name="filename"></stringProp> 96 <stringProp name="cacheKey">true</stringProp> 97 <stringProp name="script">println "\nJMeter negative test - failing Thread Group in purpose with System.exit(1)\n"; 98 System.exit(1);</stringProp> 99 </JSR223PostProcessor> 100 <hashTree/> 101 </hashTree> 102 </hashTree> 103 </hashTree> 104 </jmeterTestPlan>