github.com/kubeshop/testkube@v1.17.23/contrib/executor/jmeterd/examples/gitflow/jmeter-properties-external.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="Kubeshop site" enabled="true"> 5 <stringProp name="TestPlan.comments">Kubeshop site simple perf test</stringProp> 6 <boolProp name="TestPlan.functional_mode">false</boolProp> 7 <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp> 8 <boolProp name="TestPlan.serialize_threadgroups">false</boolProp> 9 <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> 10 <collectionProp name="Arguments.arguments"> 11 <elementProp name="PATH" elementType="Argument"> 12 <stringProp name="Argument.name">PATH</stringProp> 13 <stringProp name="Argument.value">/pricing</stringProp> 14 <stringProp name="Argument.metadata">=</stringProp> 15 </elementProp> 16 </collectionProp> 17 </elementProp> 18 <stringProp name="TestPlan.user_define_classpath"></stringProp> 19 </TestPlan> 20 <hashTree> 21 <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> 22 <collectionProp name="Arguments.arguments"> 23 <elementProp name="UC1_NBUSERS" elementType="Argument"> 24 <stringProp name="Argument.name">UC1_NBUSERS</stringProp> 25 <stringProp name="Argument.value">${__property(JMETER_UC1_NBUSERS,,2)}</stringProp> 26 <stringProp name="Argument.metadata">=</stringProp> 27 </elementProp> 28 <elementProp name="UC1_RAMPUP" elementType="Argument"> 29 <stringProp name="Argument.name">UC1_RAMPUP</stringProp> 30 <stringProp name="Argument.value">${__property(JMETER_UC1_RAMPUP,,2)}</stringProp> 31 <stringProp name="Argument.metadata">=</stringProp> 32 </elementProp> 33 <elementProp name="URI_PATH" elementType="Argument"> 34 <stringProp name="Argument.name">URI_PATH</stringProp> 35 <stringProp name="Argument.value">${__property(JMETER_URI_PATH,,/pricing)}</stringProp> 36 <stringProp name="Argument.metadata">=</stringProp> 37 </elementProp> 38 <elementProp name="PROJECT_HOME" elementType="Argument"> 39 <stringProp name="Argument.name">PROJECT_HOME</stringProp> 40 <stringProp name="Argument.value">${__BeanShell(import org.apache.jmeter.services.FileServer; FileServer.getFileServer().getBaseDir();)}</stringProp> 41 <stringProp name="Argument.metadata">=</stringProp> 42 </elementProp> 43 </collectionProp> 44 </Arguments> 45 <hashTree/> 46 <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true"> 47 <stringProp name="delimiter">,</stringProp> 48 <stringProp name="fileEncoding"></stringProp> 49 <stringProp name="filename">${__env(DATA_CONFIG,,${__eval(${PROJECT_HOME})})}/csvdata/Credentials.csv</stringProp> 50 <boolProp name="ignoreFirstLine">false</boolProp> 51 <boolProp name="quotedData">false</boolProp> 52 <boolProp name="recycle">true</boolProp> 53 <stringProp name="shareMode">shareMode.group</stringProp> 54 <boolProp name="stopThread">false</boolProp> 55 <stringProp name="variableNames">USERNAME,PASSWORD</stringProp> 56 </CSVDataSet> 57 <hashTree/> 58 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true"> 59 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> 60 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true"> 61 <boolProp name="LoopController.continue_forever">false</boolProp> 62 <stringProp name="LoopController.loops">1</stringProp> 63 </elementProp> 64 <stringProp name="ThreadGroup.num_threads">${UC1_NBUSERS}</stringProp> 65 <stringProp name="ThreadGroup.ramp_time">${UC1_RAMPUP}</stringProp> 66 <boolProp name="ThreadGroup.scheduler">false</boolProp> 67 <stringProp name="ThreadGroup.duration"></stringProp> 68 <stringProp name="ThreadGroup.delay"></stringProp> 69 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp> 70 </ThreadGroup> 71 <hashTree> 72 <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="01_UC1-TEST" enabled="true"> 73 <boolProp name="TransactionController.includeTimers">false</boolProp> 74 <boolProp name="TransactionController.parent">false</boolProp> 75 </TransactionController> 76 <hashTree> 77 <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="BeanShell Sampler" enabled="true"> 78 <stringProp name="BeanShellSampler.query">String uc1_nbusers = vars.get("UC1_NBUSERS"); 79 String uc1_rampup = vars.get("UC1_RAMPUP"); 80 String uri_path = vars.get("URI_PATH"); 81 String username = vars.get("USERNAME"); 82 String password = vars.get("PASSWORD"); 83 log.info("================================="); 84 log.info("UC1_NBUSERS: " + uc1_nbusers); 85 log.info("UC1_RAMPUP: " + uc1_rampup); 86 log.info("URI_PATH: " + uri_path); 87 log.info("USERNAME: " + username); 88 log.info("PASSWORD: " + password); 89 log.info("=================================");</stringProp> 90 <stringProp name="BeanShellSampler.filename"></stringProp> 91 <stringProp name="BeanShellSampler.parameters"></stringProp> 92 <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp> 93 </BeanShellSampler> 94 <hashTree/> 95 <com.blazemeter.jmeter.controller.ParallelSampler guiclass="com.blazemeter.jmeter.controller.ParallelControllerGui" testclass="com.blazemeter.jmeter.controller.ParallelSampler" testname="02_UC1-PARALLEL" enabled="true"> 96 <intProp name="MAX_THREAD_NUMBER">6</intProp> 97 <boolProp name="PARENT_SAMPLE">true</boolProp> 98 <boolProp name="LIMIT_MAX_THREAD_NUMBER">false</boolProp> 99 </com.blazemeter.jmeter.controller.ParallelSampler> 100 <hashTree> 101 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTP Request" enabled="true"> 102 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> 103 <collectionProp name="Arguments.arguments"/> 104 </elementProp> 105 <stringProp name="HTTPSampler.domain">testkube.io</stringProp> 106 <stringProp name="HTTPSampler.port"></stringProp> 107 <stringProp name="HTTPSampler.protocol">https</stringProp> 108 <stringProp name="HTTPSampler.contentEncoding"></stringProp> 109 <stringProp name="HTTPSampler.path">${PATH}</stringProp> 110 <stringProp name="HTTPSampler.method">GET</stringProp> 111 <boolProp name="HTTPSampler.follow_redirects">true</boolProp> 112 <boolProp name="HTTPSampler.auto_redirects">false</boolProp> 113 <boolProp name="HTTPSampler.use_keepalive">true</boolProp> 114 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> 115 <stringProp name="HTTPSampler.embedded_url_re"></stringProp> 116 <stringProp name="HTTPSampler.connect_timeout"></stringProp> 117 <stringProp name="HTTPSampler.response_timeout"></stringProp> 118 </HTTPSamplerProxy> 119 <hashTree> 120 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true"> 121 <collectionProp name="Asserion.test_strings"> 122 <stringProp name="1620359203">SOME_NONExisting_String</stringProp> 123 </collectionProp> 124 <stringProp name="Assertion.custom_message"></stringProp> 125 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> 126 <boolProp name="Assertion.assume_success">false</boolProp> 127 <intProp name="Assertion.test_type">20</intProp> 128 </ResponseAssertion> 129 <hashTree/> 130 </hashTree> 131 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTP Request" enabled="true"> 132 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> 133 <collectionProp name="Arguments.arguments"/> 134 </elementProp> 135 <stringProp name="HTTPSampler.domain">testkube.io</stringProp> 136 <stringProp name="HTTPSampler.port"></stringProp> 137 <stringProp name="HTTPSampler.protocol">https</stringProp> 138 <stringProp name="HTTPSampler.contentEncoding"></stringProp> 139 <stringProp name="HTTPSampler.path">${PATH}</stringProp> 140 <stringProp name="HTTPSampler.method">GET</stringProp> 141 <boolProp name="HTTPSampler.follow_redirects">true</boolProp> 142 <boolProp name="HTTPSampler.auto_redirects">false</boolProp> 143 <boolProp name="HTTPSampler.use_keepalive">true</boolProp> 144 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> 145 <stringProp name="HTTPSampler.embedded_url_re"></stringProp> 146 <stringProp name="HTTPSampler.connect_timeout"></stringProp> 147 <stringProp name="HTTPSampler.response_timeout"></stringProp> 148 </HTTPSamplerProxy> 149 <hashTree> 150 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true"> 151 <collectionProp name="Asserion.test_strings"> 152 <stringProp name="1620359203">SOME_NONExisting_String</stringProp> 153 </collectionProp> 154 <stringProp name="Assertion.custom_message"></stringProp> 155 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> 156 <boolProp name="Assertion.assume_success">false</boolProp> 157 <intProp name="Assertion.test_type">20</intProp> 158 </ResponseAssertion> 159 <hashTree/> 160 </hashTree> 161 </hashTree> 162 </hashTree> 163 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> 164 <boolProp name="ResultCollector.error_logging">false</boolProp> 165 <objProp> 166 <name>saveConfig</name> 167 <value class="SampleSaveConfiguration"> 168 <time>true</time> 169 <latency>true</latency> 170 <timestamp>true</timestamp> 171 <success>true</success> 172 <label>true</label> 173 <code>true</code> 174 <message>true</message> 175 <threadName>true</threadName> 176 <dataType>true</dataType> 177 <encoding>false</encoding> 178 <assertions>true</assertions> 179 <subresults>true</subresults> 180 <responseData>false</responseData> 181 <samplerData>false</samplerData> 182 <xml>false</xml> 183 <fieldNames>true</fieldNames> 184 <responseHeaders>false</responseHeaders> 185 <requestHeaders>false</requestHeaders> 186 <responseDataOnError>false</responseDataOnError> 187 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> 188 <assertionsResultsToSave>2</assertionsResultsToSave> 189 <bytes>true</bytes> 190 <sentBytes>true</sentBytes> 191 <url>true</url> 192 <threadCounts>true</threadCounts> 193 <idleTime>true</idleTime> 194 <connectTime>true</connectTime> 195 </value> 196 </objProp> 197 <stringProp name="filename"></stringProp> 198 </ResultCollector> 199 <hashTree/> 200 </hashTree> 201 </hashTree> 202 </hashTree> 203 </jmeterTestPlan>