|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.3"> |
| 3 | + <hashTree> |
| 4 | + <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan"> |
| 5 | + <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables"> |
| 6 | + <collectionProp name="Arguments.arguments"/> |
| 7 | + </elementProp> |
| 8 | + </TestPlan> |
| 9 | + <hashTree> |
| 10 | + <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group"> |
| 11 | + <intProp name="ThreadGroup.num_threads">3</intProp> |
| 12 | + <intProp name="ThreadGroup.ramp_time">1</intProp> |
| 13 | + <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp> |
| 14 | + <stringProp name="ThreadGroup.on_sample_error">stopthread</stringProp> |
| 15 | + <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller"> |
| 16 | + <stringProp name="LoopController.loops">2</stringProp> |
| 17 | + <boolProp name="LoopController.continue_forever">false</boolProp> |
| 18 | + </elementProp> |
| 19 | + </ThreadGroup> |
| 20 | + <hashTree> |
| 21 | + <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="csv user db"> |
| 22 | + <stringProp name="delimiter">,</stringProp> |
| 23 | + <stringProp name="fileEncoding"></stringProp> |
| 24 | + <stringProp name="filename">/home/ulisses/git/hub/bael/tutorials/testing-modules/jmeter-2/src/main/resources/com/baeldung/cookiemanagement/config/users.csv</stringProp> |
| 25 | + <boolProp name="ignoreFirstLine">false</boolProp> |
| 26 | + <boolProp name="quotedData">false</boolProp> |
| 27 | + <boolProp name="recycle">true</boolProp> |
| 28 | + <stringProp name="shareMode">shareMode.all</stringProp> |
| 29 | + <boolProp name="stopThread">false</boolProp> |
| 30 | + <stringProp name="variableNames"></stringProp> |
| 31 | + </CSVDataSet> |
| 32 | + <hashTree/> |
| 33 | + <CookieManager guiclass="CookiePanel" testclass="CookieManager" testname="HTTP Cookie Manager"> |
| 34 | + <collectionProp name="CookieManager.cookies"/> |
| 35 | + <boolProp name="CookieManager.clearEachIteration">false</boolProp> |
| 36 | + <boolProp name="CookieManager.controlledByThreadGroup">true</boolProp> |
| 37 | + </CookieManager> |
| 38 | + <hashTree/> |
| 39 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="login" enabled="true"> |
| 40 | + <stringProp name="HTTPSampler.domain">localhost</stringProp> |
| 41 | + <stringProp name="HTTPSampler.port">8080</stringProp> |
| 42 | + <stringProp name="HTTPSampler.path">/login</stringProp> |
| 43 | + <stringProp name="HTTPSampler.method">POST</stringProp> |
| 44 | + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 45 | + <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 46 | + <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 47 | + <collectionProp name="Arguments.arguments"> |
| 48 | + <elementProp name="" elementType="HTTPArgument"> |
| 49 | + <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 50 | + <stringProp name="Argument.value">username=${username}&password=${password}</stringProp> |
| 51 | + <stringProp name="Argument.metadata">=</stringProp> |
| 52 | + </elementProp> |
| 53 | + </collectionProp> |
| 54 | + </elementProp> |
| 55 | + </HTTPSamplerProxy> |
| 56 | + <hashTree> |
| 57 | + <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true"> |
| 58 | + <collectionProp name="HeaderManager.headers"> |
| 59 | + <elementProp name="" elementType="Header"> |
| 60 | + <stringProp name="Header.name">Content-Type</stringProp> |
| 61 | + <stringProp name="Header.value">application/x-www-form-urlencoded</stringProp> |
| 62 | + </elementProp> |
| 63 | + </collectionProp> |
| 64 | + </HeaderManager> |
| 65 | + <hashTree/> |
| 66 | + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="assert redirected"> |
| 67 | + <collectionProp name="Asserion.test_strings"> |
| 68 | + <stringProp name="50549">302</stringProp> |
| 69 | + </collectionProp> |
| 70 | + <stringProp name="Assertion.custom_message"></stringProp> |
| 71 | + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> |
| 72 | + <boolProp name="Assertion.assume_success">false</boolProp> |
| 73 | + <intProp name="Assertion.test_type">8</intProp> |
| 74 | + </ResponseAssertion> |
| 75 | + <hashTree/> |
| 76 | + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="assert no login error"> |
| 77 | + <collectionProp name="Asserion.test_strings"> |
| 78 | + <stringProp name="96784904">error</stringProp> |
| 79 | + </collectionProp> |
| 80 | + <stringProp name="Assertion.custom_message">Invalid login: ${username}</stringProp> |
| 81 | + <stringProp name="Assertion.test_field">Assertion.response_headers</stringProp> |
| 82 | + <boolProp name="Assertion.assume_success">false</boolProp> |
| 83 | + <intProp name="Assertion.test_type">6</intProp> |
| 84 | + </ResponseAssertion> |
| 85 | + <hashTree/> |
| 86 | + </hashTree> |
| 87 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="protected resource" enabled="true"> |
| 88 | + <stringProp name="HTTPSampler.domain">localhost</stringProp> |
| 89 | + <stringProp name="HTTPSampler.port">8080</stringProp> |
| 90 | + <stringProp name="HTTPSampler.path">/secured/api/me</stringProp> |
| 91 | + <stringProp name="HTTPSampler.method">GET</stringProp> |
| 92 | + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 93 | + <boolProp name="HTTPSampler.postBodyRaw">false</boolProp> |
| 94 | + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables"> |
| 95 | + <collectionProp name="Arguments.arguments"/> |
| 96 | + </elementProp> |
| 97 | + </HTTPSamplerProxy> |
| 98 | + <hashTree> |
| 99 | + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="assert resource matches user"> |
| 100 | + <collectionProp name="Asserion.test_strings"> |
| 101 | + <stringProp name="1685720944">${username}</stringProp> |
| 102 | + </collectionProp> |
| 103 | + <stringProp name="Assertion.custom_message"></stringProp> |
| 104 | + <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 105 | + <boolProp name="Assertion.assume_success">false</boolProp> |
| 106 | + <intProp name="Assertion.test_type">1</intProp> |
| 107 | + </ResponseAssertion> |
| 108 | + <hashTree/> |
| 109 | + </hashTree> |
| 110 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="logout"> |
| 111 | + <stringProp name="HTTPSampler.domain">localhost</stringProp> |
| 112 | + <stringProp name="HTTPSampler.port">8080</stringProp> |
| 113 | + <stringProp name="HTTPSampler.path">/logout</stringProp> |
| 114 | + <stringProp name="HTTPSampler.method">GET</stringProp> |
| 115 | + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 116 | + <boolProp name="HTTPSampler.postBodyRaw">false</boolProp> |
| 117 | + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables"> |
| 118 | + <collectionProp name="Arguments.arguments"/> |
| 119 | + </elementProp> |
| 120 | + </HTTPSamplerProxy> |
| 121 | + <hashTree> |
| 122 | + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="assert redirected"> |
| 123 | + <collectionProp name="Asserion.test_strings"> |
| 124 | + <stringProp name="50549">302</stringProp> |
| 125 | + </collectionProp> |
| 126 | + <stringProp name="Assertion.custom_message"></stringProp> |
| 127 | + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> |
| 128 | + <boolProp name="Assertion.assume_success">false</boolProp> |
| 129 | + <intProp name="Assertion.test_type">8</intProp> |
| 130 | + </ResponseAssertion> |
| 131 | + <hashTree/> |
| 132 | + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="assert logged-out"> |
| 133 | + <collectionProp name="Asserion.test_strings"> |
| 134 | + <stringProp name="-1097329270">logout</stringProp> |
| 135 | + </collectionProp> |
| 136 | + <stringProp name="Assertion.custom_message">logout error</stringProp> |
| 137 | + <stringProp name="Assertion.test_field">Assertion.response_headers</stringProp> |
| 138 | + <boolProp name="Assertion.assume_success">false</boolProp> |
| 139 | + <intProp name="Assertion.test_type">2</intProp> |
| 140 | + </ResponseAssertion> |
| 141 | + <hashTree/> |
| 142 | + </hashTree> |
| 143 | + <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree"> |
| 144 | + <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 145 | + <objProp> |
| 146 | + <name>saveConfig</name> |
| 147 | + <value class="SampleSaveConfiguration"> |
| 148 | + <time>true</time> |
| 149 | + <latency>true</latency> |
| 150 | + <timestamp>true</timestamp> |
| 151 | + <success>true</success> |
| 152 | + <label>true</label> |
| 153 | + <code>true</code> |
| 154 | + <message>true</message> |
| 155 | + <threadName>true</threadName> |
| 156 | + <dataType>true</dataType> |
| 157 | + <encoding>false</encoding> |
| 158 | + <assertions>true</assertions> |
| 159 | + <subresults>true</subresults> |
| 160 | + <responseData>false</responseData> |
| 161 | + <samplerData>false</samplerData> |
| 162 | + <xml>false</xml> |
| 163 | + <fieldNames>true</fieldNames> |
| 164 | + <responseHeaders>false</responseHeaders> |
| 165 | + <requestHeaders>false</requestHeaders> |
| 166 | + <responseDataOnError>false</responseDataOnError> |
| 167 | + <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 168 | + <assertionsResultsToSave>0</assertionsResultsToSave> |
| 169 | + <bytes>true</bytes> |
| 170 | + <sentBytes>true</sentBytes> |
| 171 | + <url>true</url> |
| 172 | + <threadCounts>true</threadCounts> |
| 173 | + <idleTime>true</idleTime> |
| 174 | + <connectTime>true</connectTime> |
| 175 | + </value> |
| 176 | + </objProp> |
| 177 | + <stringProp name="filename"></stringProp> |
| 178 | + </ResultCollector> |
| 179 | + <hashTree/> |
| 180 | + </hashTree> |
| 181 | + </hashTree> |
| 182 | + </hashTree> |
| 183 | +</jmeterTestPlan> |
0 commit comments