ranpollak | e5f6283 | 2018-06-07 14:32:02 +0300 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <jmeterTestPlan version="1.2" properties="2.9" jmeter="3.0 r1743807"> |
| 3 | <hashTree> |
| 4 | <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="438-BackEnd_BVT.jmx" enabled="true"> |
| 5 | <stringProp name="TestPlan.comments">omrir1_598_06-06-2016-08-52 || omrir1_680_09-06-2016-14-43</stringProp> |
| 6 | <boolProp name="TestPlan.functional_mode">true</boolProp> |
| 7 | <boolProp name="TestPlan.serialize_threadgroups">true</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 name="ASDC_SETUP" elementType="Argument"> |
| 11 | <stringProp name="Argument.name">ASDC_SETUP</stringProp> |
| 12 | <stringProp name="Argument.value">${__P(setup,ranp_955_26-06-2016-13-41)}</stringProp> |
| 13 | <stringProp name="Argument.metadata">=</stringProp> |
| 14 | </elementProp> |
| 15 | <elementProp name="NUM_OF_THREAD" elementType="Argument"> |
| 16 | <stringProp name="Argument.name">NUM_OF_THREAD</stringProp> |
| 17 | <stringProp name="Argument.value">${__P(iterations,1)}</stringProp> |
| 18 | <stringProp name="Argument.metadata">=</stringProp> |
| 19 | </elementProp> |
| 20 | <elementProp name="TEST_DURATION" elementType="Argument"> |
| 21 | <stringProp name="Argument.name">TEST_DURATION</stringProp> |
| 22 | <stringProp name="Argument.value">${__P(Duration,1)}</stringProp> |
| 23 | <stringProp name="Argument.metadata">=</stringProp> |
| 24 | </elementProp> |
| 25 | <elementProp name="MAIN_THREAD_GROUP_CNT" elementType="Argument"> |
| 26 | <stringProp name="Argument.name">MAIN_THREAD_GROUP_CNT</stringProp> |
| 27 | <stringProp name="Argument.value">${__P(loops,1)}</stringProp> |
| 28 | <stringProp name="Argument.metadata">=</stringProp> |
| 29 | </elementProp> |
| 30 | </collectionProp> |
| 31 | </elementProp> |
| 32 | <stringProp name="TestPlan.user_define_classpath"></stringProp> |
| 33 | <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp> |
| 34 | </TestPlan> |
| 35 | <hashTree> |
| 36 | <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="Test General Variables" enabled="true"> |
| 37 | <collectionProp name="Arguments.arguments"> |
| 38 | <elementProp name="################## Test-Params ##################" elementType="Argument"> |
| 39 | <stringProp name="Argument.name">################## Test-Params ##################</stringProp> |
| 40 | <stringProp name="Argument.value">##############################################</stringProp> |
| 41 | <stringProp name="Argument.desc">##############################################</stringProp> |
| 42 | <stringProp name="Argument.metadata">=</stringProp> |
| 43 | </elementProp> |
| 44 | <elementProp name="TestName" elementType="Argument"> |
| 45 | <stringProp name="Argument.name">TestName</stringProp> |
| 46 | <stringProp name="Argument.value">000-BackEnd_BVT.log</stringProp> |
| 47 | <stringProp name="Argument.metadata">=</stringProp> |
| 48 | </elementProp> |
| 49 | <elementProp name="step" elementType="Argument"> |
| 50 | <stringProp name="Argument.name">step</stringProp> |
| 51 | <stringProp name="Argument.value">0</stringProp> |
| 52 | <stringProp name="Argument.metadata">=</stringProp> |
| 53 | </elementProp> |
| 54 | <elementProp name="product" elementType="Argument"> |
| 55 | <stringProp name="Argument.name">product</stringProp> |
| 56 | <stringProp name="Argument.value">ASDC</stringProp> |
| 57 | <stringProp name="Argument.metadata">=</stringProp> |
| 58 | </elementProp> |
| 59 | <elementProp name="dashboard_path" elementType="Argument"> |
| 60 | <stringProp name="Argument.name">dashboard_path</stringProp> |
| 61 | <stringProp name="Argument.value">/sdc1/proxy-designer1#/dashboard</stringProp> |
| 62 | <stringProp name="Argument.metadata">=</stringProp> |
| 63 | </elementProp> |
| 64 | <elementProp name="service_name" elementType="Argument"> |
| 65 | <stringProp name="Argument.name">service_name</stringProp> |
| 66 | <stringProp name="Argument.value">Internet_${__RandomString(5,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz,)}</stringProp> |
| 67 | <stringProp name="Argument.metadata">=</stringProp> |
| 68 | </elementProp> |
| 69 | <elementProp name="fileRepo" elementType="Argument"> |
| 70 | <stringProp name="Argument.name">fileRepo</stringProp> |
| 71 | <stringProp name="Argument.value">/qa-test-repo/asdc_repo/heat_tmpl/438/</stringProp> |
| 72 | <stringProp name="Argument.metadata">=</stringProp> |
| 73 | </elementProp> |
| 74 | <elementProp name="file" elementType="Argument"> |
| 75 | <stringProp name="Argument.name">file</stringProp> |
| 76 | <stringProp name="Argument.value">HeatValidations.zip</stringProp> |
| 77 | <stringProp name="Argument.metadata">=</stringProp> |
| 78 | </elementProp> |
| 79 | <elementProp name="zip" elementType="Argument"> |
| 80 | <stringProp name="Argument.name">zip</stringProp> |
| 81 | <stringProp name="Argument.value">application/zip</stringProp> |
| 82 | <stringProp name="Argument.metadata">=</stringProp> |
| 83 | </elementProp> |
| 84 | <elementProp name="##################### URL ####################" elementType="Argument"> |
| 85 | <stringProp name="Argument.name">##################### URL ####################</stringProp> |
| 86 | <stringProp name="Argument.value">##############################################</stringProp> |
| 87 | <stringProp name="Argument.desc">##############################################</stringProp> |
| 88 | <stringProp name="Argument.metadata">=</stringProp> |
| 89 | </elementProp> |
| 90 | <elementProp name="port" elementType="Argument"> |
| 91 | <stringProp name="Argument.name">port</stringProp> |
| 92 | <stringProp name="Argument.value">8080</stringProp> |
| 93 | <stringProp name="Argument.metadata">=</stringProp> |
| 94 | </elementProp> |
| 95 | <elementProp name="protocol" elementType="Argument"> |
| 96 | <stringProp name="Argument.name">protocol</stringProp> |
| 97 | <stringProp name="Argument.value">http</stringProp> |
| 98 | <stringProp name="Argument.metadata">=</stringProp> |
| 99 | </elementProp> |
| 100 | <elementProp name="##############################################" elementType="Argument"> |
| 101 | <stringProp name="Argument.name">##############################################</stringProp> |
| 102 | <stringProp name="Argument.value">##############################################</stringProp> |
| 103 | <stringProp name="Argument.desc">##############################################</stringProp> |
| 104 | <stringProp name="Argument.metadata">=</stringProp> |
| 105 | </elementProp> |
| 106 | <elementProp name="HTTP_CSP_ATTUID" elementType="Argument"> |
| 107 | <stringProp name="Argument.name">HTTP_CSP_ATTUID</stringProp> |
| 108 | <stringProp name="Argument.value">BVT</stringProp> |
| 109 | <stringProp name="Argument.metadata">=</stringProp> |
| 110 | </elementProp> |
| 111 | </collectionProp> |
| 112 | <stringProp name="TestPlan.comments">attvdi142</stringProp> |
| 113 | </Arguments> |
| 114 | <hashTree/> |
| 115 | <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Test Init" enabled="true"> |
| 116 | <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> |
| 117 | <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true"> |
| 118 | <boolProp name="LoopController.continue_forever">false</boolProp> |
| 119 | <stringProp name="LoopController.loops">1</stringProp> |
| 120 | </elementProp> |
| 121 | <stringProp name="ThreadGroup.num_threads">1</stringProp> |
| 122 | <stringProp name="ThreadGroup.ramp_time">1</stringProp> |
| 123 | <longProp name="ThreadGroup.start_time">1422885662000</longProp> |
| 124 | <longProp name="ThreadGroup.end_time">1422885662000</longProp> |
| 125 | <boolProp name="ThreadGroup.scheduler">false</boolProp> |
| 126 | <stringProp name="ThreadGroup.duration"></stringProp> |
| 127 | <stringProp name="ThreadGroup.delay"></stringProp> |
| 128 | </ThreadGroup> |
| 129 | <hashTree> |
| 130 | <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Remove previous log file" enabled="true"> |
| 131 | <boolProp name="SystemSampler.checkReturnCode">false</boolProp> |
| 132 | <stringProp name="SystemSampler.expectedReturnCode">0</stringProp> |
| 133 | <stringProp name="SystemSampler.command">rm</stringProp> |
| 134 | <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 135 | <collectionProp name="Arguments.arguments"> |
| 136 | <elementProp name="" elementType="Argument"> |
| 137 | <stringProp name="Argument.name"></stringProp> |
| 138 | <stringProp name="Argument.value">-rf</stringProp> |
| 139 | <stringProp name="Argument.metadata">=</stringProp> |
| 140 | </elementProp> |
| 141 | <elementProp name="" elementType="Argument"> |
| 142 | <stringProp name="Argument.name"></stringProp> |
| 143 | <stringProp name="Argument.value">/tmp/TestResult/${TestName}</stringProp> |
| 144 | <stringProp name="Argument.metadata">=</stringProp> |
| 145 | </elementProp> |
| 146 | </collectionProp> |
| 147 | </elementProp> |
| 148 | <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 149 | <collectionProp name="Arguments.arguments"/> |
| 150 | </elementProp> |
| 151 | <stringProp name="SystemSampler.directory"></stringProp> |
| 152 | </SystemSampler> |
| 153 | <hashTree> |
| 154 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 155 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 156 | <objProp> |
| 157 | <name>saveConfig</name> |
| 158 | <value class="SampleSaveConfiguration"> |
| 159 | <time>true</time> |
| 160 | <latency>true</latency> |
| 161 | <timestamp>true</timestamp> |
| 162 | <success>true</success> |
| 163 | <label>true</label> |
| 164 | <code>true</code> |
| 165 | <message>true</message> |
| 166 | <threadName>true</threadName> |
| 167 | <dataType>true</dataType> |
| 168 | <encoding>true</encoding> |
| 169 | <assertions>true</assertions> |
| 170 | <subresults>true</subresults> |
| 171 | <responseData>true</responseData> |
| 172 | <samplerData>true</samplerData> |
| 173 | <xml>false</xml> |
| 174 | <fieldNames>true</fieldNames> |
| 175 | <responseHeaders>true</responseHeaders> |
| 176 | <requestHeaders>true</requestHeaders> |
| 177 | <responseDataOnError>false</responseDataOnError> |
| 178 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 179 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 180 | <bytes>true</bytes> |
| 181 | <url>true</url> |
| 182 | <fileName>true</fileName> |
| 183 | <hostname>true</hostname> |
| 184 | <threadCounts>true</threadCounts> |
| 185 | <sampleCount>true</sampleCount> |
| 186 | <idleTime>true</idleTime> |
| 187 | </value> |
| 188 | </objProp> |
| 189 | <stringProp name="filename"></stringProp> |
| 190 | </ResultCollector> |
| 191 | <hashTree/> |
| 192 | </hashTree> |
| 193 | <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Get API&Names" enabled="true"> |
| 194 | <boolProp name="SystemSampler.checkReturnCode">false</boolProp> |
| 195 | <stringProp name="SystemSampler.expectedReturnCode">0</stringProp> |
| 196 | <stringProp name="SystemSampler.command">cat</stringProp> |
| 197 | <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 198 | <collectionProp name="Arguments.arguments"> |
| 199 | <elementProp name="" elementType="Argument"> |
| 200 | <stringProp name="Argument.name"></stringProp> |
| 201 | <stringProp name="Argument.value">ASDC.txt</stringProp> |
| 202 | <stringProp name="Argument.metadata">=</stringProp> |
| 203 | </elementProp> |
| 204 | </collectionProp> |
| 205 | </elementProp> |
| 206 | <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 207 | <collectionProp name="Arguments.arguments"/> |
| 208 | </elementProp> |
| 209 | <stringProp name="SystemSampler.directory">/qa-test-repo/API/</stringProp> |
| 210 | </SystemSampler> |
| 211 | <hashTree> |
| 212 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Extract API data" enabled="true"> |
| 213 | <boolProp name="resetInterpreter">false</boolProp> |
| 214 | <stringProp name="parameters"></stringProp> |
| 215 | <stringProp name="filename"></stringProp> |
| 216 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 217 | |
| 218 | String[] ActionItem= ResponseString.split("\n"); |
| 219 | |
| 220 | for( String s : ActionItem) |
| 221 | { |
| 222 | log.info("line is : " + s); |
| 223 | log.info("key is : " + s.split("!~!~!")[0]); |
| 224 | log.info("value is : " + s.split("!~!~!")[1]); |
| 225 | props.put(s.split("!~!~!")[0], s.split("!~!~!")[1]); |
| 226 | } |
| 227 | |
| 228 | |
| 229 | </stringProp> |
| 230 | </BeanShellPostProcessor> |
| 231 | <hashTree/> |
| 232 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 233 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 234 | <objProp> |
| 235 | <name>saveConfig</name> |
| 236 | <value class="SampleSaveConfiguration"> |
| 237 | <time>true</time> |
| 238 | <latency>true</latency> |
| 239 | <timestamp>true</timestamp> |
| 240 | <success>true</success> |
| 241 | <label>true</label> |
| 242 | <code>true</code> |
| 243 | <message>true</message> |
| 244 | <threadName>true</threadName> |
| 245 | <dataType>true</dataType> |
| 246 | <encoding>true</encoding> |
| 247 | <assertions>true</assertions> |
| 248 | <subresults>true</subresults> |
| 249 | <responseData>true</responseData> |
| 250 | <samplerData>true</samplerData> |
| 251 | <xml>false</xml> |
| 252 | <fieldNames>true</fieldNames> |
| 253 | <responseHeaders>true</responseHeaders> |
| 254 | <requestHeaders>true</requestHeaders> |
| 255 | <responseDataOnError>false</responseDataOnError> |
| 256 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 257 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 258 | <bytes>true</bytes> |
| 259 | <url>true</url> |
| 260 | <fileName>true</fileName> |
| 261 | <hostname>true</hostname> |
| 262 | <threadCounts>true</threadCounts> |
| 263 | <sampleCount>true</sampleCount> |
| 264 | <idleTime>true</idleTime> |
| 265 | </value> |
| 266 | </objProp> |
| 267 | <stringProp name="filename">/tmp/TestResult/ResultsTree.csv</stringProp> |
| 268 | </ResultCollector> |
| 269 | <hashTree/> |
| 270 | </hashTree> |
| 271 | <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Get SUT Parameters" enabled="true"> |
| 272 | <boolProp name="SystemSampler.checkReturnCode">false</boolProp> |
| 273 | <stringProp name="SystemSampler.expectedReturnCode">0</stringProp> |
| 274 | <stringProp name="SystemSampler.command">bash</stringProp> |
| 275 | <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 276 | <collectionProp name="Arguments.arguments"> |
| 277 | <elementProp name="" elementType="Argument"> |
| 278 | <stringProp name="Argument.name"></stringProp> |
| 279 | <stringProp name="Argument.value">Get_SUT_Params.sh</stringProp> |
| 280 | <stringProp name="Argument.metadata">=</stringProp> |
| 281 | </elementProp> |
| 282 | <elementProp name="" elementType="Argument"> |
| 283 | <stringProp name="Argument.name"></stringProp> |
| 284 | <stringProp name="Argument.value">${product}</stringProp> |
| 285 | <stringProp name="Argument.metadata">=</stringProp> |
| 286 | </elementProp> |
| 287 | <elementProp name="" elementType="Argument"> |
| 288 | <stringProp name="Argument.name"></stringProp> |
| 289 | <stringProp name="Argument.value">${ASDC_SETUP}.xml</stringProp> |
| 290 | <stringProp name="Argument.metadata">=</stringProp> |
| 291 | </elementProp> |
| 292 | </collectionProp> |
| 293 | </elementProp> |
| 294 | <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 295 | <collectionProp name="Arguments.arguments"/> |
| 296 | </elementProp> |
| 297 | <stringProp name="SystemSampler.directory">/qa-test-repo/scripts/ASDC/</stringProp> |
| 298 | </SystemSampler> |
| 299 | <hashTree> |
| 300 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Extract Environment data" enabled="true"> |
| 301 | <boolProp name="resetInterpreter">false</boolProp> |
| 302 | <stringProp name="parameters"></stringProp> |
| 303 | <stringProp name="filename"></stringProp> |
| 304 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 305 | |
| 306 | log.info("########################" + ResponseString); |
| 307 | |
| 308 | String[] ActionItem= ResponseString.split("\n"); |
| 309 | |
| 310 | for( String s : ActionItem) |
| 311 | { |
| 312 | log.info("line is : " + s); |
| 313 | log.info("data field name is : " + s.split(" ")[0]); |
| 314 | log.info("value is : " + s.split(" ")[1]); |
| 315 | props.put(s.split(" ")[0], s.split(" ")[1]); |
| 316 | } |
| 317 | </stringProp> |
| 318 | </BeanShellPostProcessor> |
| 319 | <hashTree/> |
| 320 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 321 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 322 | <objProp> |
| 323 | <name>saveConfig</name> |
| 324 | <value class="SampleSaveConfiguration"> |
| 325 | <time>true</time> |
| 326 | <latency>true</latency> |
| 327 | <timestamp>true</timestamp> |
| 328 | <success>true</success> |
| 329 | <label>true</label> |
| 330 | <code>true</code> |
| 331 | <message>true</message> |
| 332 | <threadName>true</threadName> |
| 333 | <dataType>true</dataType> |
| 334 | <encoding>true</encoding> |
| 335 | <assertions>true</assertions> |
| 336 | <subresults>true</subresults> |
| 337 | <responseData>true</responseData> |
| 338 | <samplerData>true</samplerData> |
| 339 | <xml>false</xml> |
| 340 | <fieldNames>true</fieldNames> |
| 341 | <responseHeaders>true</responseHeaders> |
| 342 | <requestHeaders>true</requestHeaders> |
| 343 | <responseDataOnError>false</responseDataOnError> |
| 344 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 345 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 346 | <bytes>true</bytes> |
| 347 | <url>true</url> |
| 348 | <fileName>true</fileName> |
| 349 | <hostname>true</hostname> |
| 350 | <threadCounts>true</threadCounts> |
| 351 | <sampleCount>true</sampleCount> |
| 352 | <idleTime>true</idleTime> |
| 353 | </value> |
| 354 | </objProp> |
| 355 | <stringProp name="filename">/tmp/TestResult/ResultsTree.csv</stringProp> |
| 356 | </ResultCollector> |
| 357 | <hashTree/> |
| 358 | </hashTree> |
| 359 | </hashTree> |
| 360 | <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Test Flow" enabled="true"> |
| 361 | <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> |
| 362 | <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true"> |
| 363 | <boolProp name="LoopController.continue_forever">false</boolProp> |
| 364 | <stringProp name="LoopController.loops">${MAIN_THREAD_GROUP_CNT}</stringProp> |
| 365 | </elementProp> |
| 366 | <stringProp name="ThreadGroup.num_threads">${NUM_OF_THREAD}</stringProp> |
| 367 | <stringProp name="ThreadGroup.ramp_time">${TEST_DURATION}</stringProp> |
| 368 | <longProp name="ThreadGroup.start_time">1422885662000</longProp> |
| 369 | <longProp name="ThreadGroup.end_time">1422885662000</longProp> |
| 370 | <boolProp name="ThreadGroup.scheduler">false</boolProp> |
| 371 | <stringProp name="ThreadGroup.duration"></stringProp> |
| 372 | <stringProp name="ThreadGroup.delay"></stringProp> |
| 373 | </ThreadGroup> |
| 374 | <hashTree> |
| 375 | <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager Main" enabled="true"> |
| 376 | <collectionProp name="HeaderManager.headers"> |
| 377 | <elementProp name="" elementType="Header"> |
| 378 | <stringProp name="Header.name">Accept</stringProp> |
| 379 | <stringProp name="Header.value">application/json</stringProp> |
| 380 | </elementProp> |
| 381 | <elementProp name="" elementType="Header"> |
| 382 | <stringProp name="Header.name">Content-Type</stringProp> |
| 383 | <stringProp name="Header.value">application/json</stringProp> |
| 384 | </elementProp> |
| 385 | <elementProp name="" elementType="Header"> |
| 386 | <stringProp name="Header.name">HTTP_CSP_ATTUID</stringProp> |
| 387 | <stringProp name="Header.value">${HTTP_CSP_ATTUID}</stringProp> |
| 388 | </elementProp> |
| 389 | </collectionProp> |
| 390 | <stringProp name="TestPlan.comments">Accept - application/octet-stream</stringProp> |
| 391 | </HeaderManager> |
| 392 | <hashTree/> |
| 393 | <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Vendor License Model" enabled="true"/> |
| 394 | <hashTree> |
| 395 | <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="Define Test VLM Properties" enabled="true"> |
| 396 | <stringProp name="BeanShellSampler.query">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/VLM_props.txt)})};</stringProp> |
| 397 | <stringProp name="BeanShellSampler.filename"></stringProp> |
| 398 | <stringProp name="BeanShellSampler.parameters"></stringProp> |
| 399 | <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp> |
| 400 | </BeanShellSampler> |
| 401 | <hashTree> |
| 402 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 403 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 404 | </ConstantTimer> |
| 405 | <hashTree/> |
| 406 | </hashTree> |
| 407 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Vendor License Model" enabled="true"> |
| 408 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 409 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 410 | <collectionProp name="Arguments.arguments"> |
| 411 | <elementProp name="" elementType="HTTPArgument"> |
| 412 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 413 | <stringProp name="Argument.value">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/VLM_body.txt)})}</stringProp> |
| 414 | <stringProp name="Argument.metadata">=</stringProp> |
| 415 | </elementProp> |
| 416 | </collectionProp> |
| 417 | </elementProp> |
| 418 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 419 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 420 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 421 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 422 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 423 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 424 | <stringProp name="HTTPSampler.path">${__P(ASDC_prefix)}</stringProp> |
| 425 | <stringProp name="HTTPSampler.method">POST</stringProp> |
| 426 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 427 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 428 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 429 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 430 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 431 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 432 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 433 | </HTTPSamplerProxy> |
| 434 | <hashTree> |
| 435 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 436 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 437 | <objProp> |
| 438 | <name>saveConfig</name> |
| 439 | <value class="SampleSaveConfiguration"> |
| 440 | <time>true</time> |
| 441 | <latency>true</latency> |
| 442 | <timestamp>true</timestamp> |
| 443 | <success>true</success> |
| 444 | <label>true</label> |
| 445 | <code>true</code> |
| 446 | <message>true</message> |
| 447 | <threadName>true</threadName> |
| 448 | <dataType>true</dataType> |
| 449 | <encoding>false</encoding> |
| 450 | <assertions>true</assertions> |
| 451 | <subresults>true</subresults> |
| 452 | <responseData>false</responseData> |
| 453 | <samplerData>false</samplerData> |
| 454 | <xml>false</xml> |
| 455 | <fieldNames>false</fieldNames> |
| 456 | <responseHeaders>false</responseHeaders> |
| 457 | <requestHeaders>false</requestHeaders> |
| 458 | <responseDataOnError>false</responseDataOnError> |
| 459 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 460 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 461 | <bytes>true</bytes> |
| 462 | <threadCounts>true</threadCounts> |
| 463 | </value> |
| 464 | </objProp> |
| 465 | <stringProp name="filename"></stringProp> |
| 466 | </ResultCollector> |
| 467 | <hashTree/> |
| 468 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Get VLM from Response" enabled="true"> |
| 469 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 470 | <stringProp name="RegexExtractor.refname">VLM</stringProp> |
| 471 | <stringProp name="RegexExtractor.regex">"value":"(.+?)"</stringProp> |
| 472 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 473 | <stringProp name="RegexExtractor.default">0</stringProp> |
| 474 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 475 | <stringProp name="Scope.variable"></stringProp> |
| 476 | </RegexExtractor> |
| 477 | <hashTree/> |
| 478 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 479 | <boolProp name="resetInterpreter">false</boolProp> |
| 480 | <stringProp name="parameters"></stringProp> |
| 481 | <stringProp name="filename"></stringProp> |
| 482 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 483 | String ResponseCode = prev.getResponseCode(); |
| 484 | String ResponseMessage = prev.getResponseMessage(); |
| 485 | |
| 486 | props.put("VLM_P","${VLM}"); |
| 487 | |
| 488 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 489 | f = new FileOutputStream(test_tmp_folder, true); |
| 490 | p = new PrintStream(f); |
| 491 | |
| 492 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 493 | |
| 494 | p.println("\n#######################"+" Create Vendor License Model "+"#######################"); |
| 495 | |
| 496 | if (ResponseCode.contains("200")) |
| 497 | { |
| 498 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 499 | p.println("Response Code : " + ResponseCode); |
| 500 | p.println("Response Message : " + ResponseMessage); |
| 501 | p.println("Response String : " + ResponseString); |
| 502 | } |
| 503 | else |
| 504 | { |
| 505 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 506 | p.println("Response Code : " + ResponseCode); |
| 507 | p.println("Response Message : " + ResponseMessage); |
| 508 | p.println("Response String : " + ResponseString); |
| 509 | } |
| 510 | |
| 511 | p.println("############################################################################\n"); |
| 512 | |
| 513 | p.close();f.close();</stringProp> |
| 514 | </BeanShellPostProcessor> |
| 515 | <hashTree/> |
| 516 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 517 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 518 | </ConstantTimer> |
| 519 | <hashTree/> |
| 520 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 521 | <intProp name="OnError.action">1</intProp> |
| 522 | </ResultAction> |
| 523 | <hashTree/> |
| 524 | </hashTree> |
| 525 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Vendor License Model" enabled="true"> |
| 526 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 527 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 528 | <collectionProp name="Arguments.arguments"> |
| 529 | <elementProp name="" elementType="HTTPArgument"> |
| 530 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 531 | <stringProp name="Argument.value"></stringProp> |
| 532 | <stringProp name="Argument.metadata">=</stringProp> |
| 533 | </elementProp> |
| 534 | </collectionProp> |
| 535 | </elementProp> |
| 536 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 537 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 538 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 539 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 540 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 541 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 542 | <stringProp name="HTTPSampler.path">${__P(ASDC_prefix)}/${VLM}</stringProp> |
| 543 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 544 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 545 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 546 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 547 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 548 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 549 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 550 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 551 | </HTTPSamplerProxy> |
| 552 | <hashTree> |
| 553 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 554 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 555 | <objProp> |
| 556 | <name>saveConfig</name> |
| 557 | <value class="SampleSaveConfiguration"> |
| 558 | <time>true</time> |
| 559 | <latency>true</latency> |
| 560 | <timestamp>true</timestamp> |
| 561 | <success>true</success> |
| 562 | <label>true</label> |
| 563 | <code>true</code> |
| 564 | <message>true</message> |
| 565 | <threadName>true</threadName> |
| 566 | <dataType>true</dataType> |
| 567 | <encoding>false</encoding> |
| 568 | <assertions>true</assertions> |
| 569 | <subresults>true</subresults> |
| 570 | <responseData>false</responseData> |
| 571 | <samplerData>false</samplerData> |
| 572 | <xml>false</xml> |
| 573 | <fieldNames>false</fieldNames> |
| 574 | <responseHeaders>false</responseHeaders> |
| 575 | <requestHeaders>false</requestHeaders> |
| 576 | <responseDataOnError>false</responseDataOnError> |
| 577 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 578 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 579 | <bytes>true</bytes> |
| 580 | <threadCounts>true</threadCounts> |
| 581 | </value> |
| 582 | </objProp> |
| 583 | <stringProp name="filename"></stringProp> |
| 584 | </ResultCollector> |
| 585 | <hashTree/> |
| 586 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 587 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 588 | </ConstantTimer> |
| 589 | <hashTree/> |
| 590 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 591 | <boolProp name="resetInterpreter">false</boolProp> |
| 592 | <stringProp name="parameters"></stringProp> |
| 593 | <stringProp name="filename"></stringProp> |
| 594 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 595 | String ResponseCode = prev.getResponseCode(); |
| 596 | String ResponseMessage = prev.getResponseMessage(); |
| 597 | |
| 598 | import org.apache.jmeter.services.FileServer; |
| 599 | import test.TestParse.*; |
| 600 | |
| 601 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 602 | f = new FileOutputStream(test_tmp_folder, true); |
| 603 | p = new PrintStream(f); |
| 604 | |
| 605 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 606 | |
| 607 | Map map = new HashMap(); |
| 608 | |
| 609 | map.put("vendorName","${__P(VLM_vendorName)}"); |
| 610 | map.put("description","${__P(VLM_description)}"); |
| 611 | map.put("iconRef","${__P(VLM_iconRef)}"); |
| 612 | map.put("id","${__P(VLM_P)}"); |
| 613 | |
| 614 | |
| 615 | DataValidation dv = new DataValidation(); |
| 616 | String res = dv.verifyResponse(map,ResponseString); |
| 617 | |
| 618 | p.println("\n#######################"+" Get Vendor License Model "+"#######################"); |
| 619 | |
| 620 | if (ResponseCode.contains("200") && !res.contains("FAIL")) |
| 621 | { |
| 622 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 623 | p.println("Response Code : " + ResponseCode); |
| 624 | p.println("Response Message : " + ResponseMessage); |
| 625 | p.println("Response String : " + ResponseString); |
| 626 | |
| 627 | p.println(res); |
| 628 | } |
| 629 | else |
| 630 | { |
| 631 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 632 | p.println("Response Code : " + ResponseCode); |
| 633 | p.println("Response Message : " + ResponseMessage); |
| 634 | p.println("Response String : " + ResponseString); |
| 635 | |
| 636 | p.println(res); |
| 637 | } |
| 638 | p.println("#####################################################################\n"); |
| 639 | |
| 640 | p.close();f.close();</stringProp> |
| 641 | </BeanShellPostProcessor> |
| 642 | <hashTree/> |
| 643 | </hashTree> |
| 644 | </hashTree> |
| 645 | <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Entitlement Pool" enabled="true"/> |
| 646 | <hashTree> |
| 647 | <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="Define Test EP Properties" enabled="true"> |
| 648 | <stringProp name="BeanShellSampler.query">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/EP_props.txt)})}</stringProp> |
| 649 | <stringProp name="BeanShellSampler.filename"></stringProp> |
| 650 | <stringProp name="BeanShellSampler.parameters"></stringProp> |
| 651 | <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp> |
| 652 | </BeanShellSampler> |
| 653 | <hashTree> |
| 654 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 655 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 656 | </ConstantTimer> |
| 657 | <hashTree/> |
| 658 | </hashTree> |
| 659 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Entitlement Pool" enabled="true"> |
| 660 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 661 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 662 | <collectionProp name="Arguments.arguments"> |
| 663 | <elementProp name="" elementType="HTTPArgument"> |
| 664 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 665 | <stringProp name="Argument.value">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/EP_body.txt)})}</stringProp> |
| 666 | <stringProp name="Argument.metadata">=</stringProp> |
| 667 | </elementProp> |
| 668 | </collectionProp> |
| 669 | </elementProp> |
| 670 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 671 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 672 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 673 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 674 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 675 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 676 | <stringProp name="HTTPSampler.path">${__P(ASDC_prefix)}/${__P(VLM_P)}/${__P(EP)}</stringProp> |
| 677 | <stringProp name="HTTPSampler.method">POST</stringProp> |
| 678 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 679 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 680 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 681 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 682 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 683 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 684 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 685 | </HTTPSamplerProxy> |
| 686 | <hashTree> |
| 687 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 688 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 689 | <objProp> |
| 690 | <name>saveConfig</name> |
| 691 | <value class="SampleSaveConfiguration"> |
| 692 | <time>true</time> |
| 693 | <latency>true</latency> |
| 694 | <timestamp>true</timestamp> |
| 695 | <success>true</success> |
| 696 | <label>true</label> |
| 697 | <code>true</code> |
| 698 | <message>true</message> |
| 699 | <threadName>true</threadName> |
| 700 | <dataType>true</dataType> |
| 701 | <encoding>false</encoding> |
| 702 | <assertions>true</assertions> |
| 703 | <subresults>true</subresults> |
| 704 | <responseData>false</responseData> |
| 705 | <samplerData>false</samplerData> |
| 706 | <xml>false</xml> |
| 707 | <fieldNames>false</fieldNames> |
| 708 | <responseHeaders>false</responseHeaders> |
| 709 | <requestHeaders>false</requestHeaders> |
| 710 | <responseDataOnError>false</responseDataOnError> |
| 711 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 712 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 713 | <bytes>true</bytes> |
| 714 | <threadCounts>true</threadCounts> |
| 715 | </value> |
| 716 | </objProp> |
| 717 | <stringProp name="filename"></stringProp> |
| 718 | </ResultCollector> |
| 719 | <hashTree/> |
| 720 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Get entityId from Response" enabled="true"> |
| 721 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 722 | <stringProp name="RegexExtractor.refname">entityId</stringProp> |
| 723 | <stringProp name="RegexExtractor.regex">"value":"(.+?)"</stringProp> |
| 724 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 725 | <stringProp name="RegexExtractor.default">0</stringProp> |
| 726 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 727 | </RegexExtractor> |
| 728 | <hashTree/> |
| 729 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 730 | <boolProp name="resetInterpreter">false</boolProp> |
| 731 | <stringProp name="parameters"></stringProp> |
| 732 | <stringProp name="filename"></stringProp> |
| 733 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 734 | String ResponseCode = prev.getResponseCode(); |
| 735 | String ResponseMessage = prev.getResponseMessage(); |
| 736 | |
| 737 | props.put("EPid_P","${entityId}"); |
| 738 | |
| 739 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 740 | f = new FileOutputStream(test_tmp_folder, true); |
| 741 | p = new PrintStream(f); |
| 742 | |
| 743 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 744 | p.println("\n#######################"+" Create Entitlement Pool Step "+"#######################"); |
| 745 | if (ResponseCode.contains("200")) |
| 746 | { |
| 747 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 748 | p.println("Response Code : " + ResponseCode); |
| 749 | p.println("Response Message : " + ResponseMessage); |
| 750 | p.println("Response String : " + ResponseString); |
| 751 | } |
| 752 | else |
| 753 | { |
| 754 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 755 | p.println("Response Code : " + ResponseCode); |
| 756 | p.println("Response Message : " + ResponseMessage + "\nERROR: Create REST failed."); |
| 757 | p.println("Response String : " + ResponseString); |
| 758 | } |
| 759 | p.println("#####################################################################\n"); |
| 760 | p.close();f.close();</stringProp> |
| 761 | </BeanShellPostProcessor> |
| 762 | <hashTree/> |
| 763 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 764 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 765 | </ConstantTimer> |
| 766 | <hashTree/> |
| 767 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 768 | <intProp name="OnError.action">1</intProp> |
| 769 | </ResultAction> |
| 770 | <hashTree/> |
| 771 | </hashTree> |
| 772 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Entitlement Pool" enabled="true"> |
| 773 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 774 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 775 | <collectionProp name="Arguments.arguments"> |
| 776 | <elementProp name="" elementType="HTTPArgument"> |
| 777 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 778 | <stringProp name="Argument.value"></stringProp> |
| 779 | <stringProp name="Argument.metadata">=</stringProp> |
| 780 | </elementProp> |
| 781 | </collectionProp> |
| 782 | </elementProp> |
| 783 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 784 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 785 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 786 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 787 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 788 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 789 | <stringProp name="HTTPSampler.path">${__P(ASDC_prefix)}/${__P(VLM_P)}/${__P(EP)}/${__P(EPid_P)}</stringProp> |
| 790 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 791 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 792 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 793 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 794 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 795 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 796 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 797 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 798 | </HTTPSamplerProxy> |
| 799 | <hashTree> |
| 800 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 801 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 802 | <objProp> |
| 803 | <name>saveConfig</name> |
| 804 | <value class="SampleSaveConfiguration"> |
| 805 | <time>true</time> |
| 806 | <latency>true</latency> |
| 807 | <timestamp>true</timestamp> |
| 808 | <success>true</success> |
| 809 | <label>true</label> |
| 810 | <code>true</code> |
| 811 | <message>true</message> |
| 812 | <threadName>true</threadName> |
| 813 | <dataType>true</dataType> |
| 814 | <encoding>false</encoding> |
| 815 | <assertions>true</assertions> |
| 816 | <subresults>true</subresults> |
| 817 | <responseData>false</responseData> |
| 818 | <samplerData>false</samplerData> |
| 819 | <xml>false</xml> |
| 820 | <fieldNames>false</fieldNames> |
| 821 | <responseHeaders>false</responseHeaders> |
| 822 | <requestHeaders>false</requestHeaders> |
| 823 | <responseDataOnError>false</responseDataOnError> |
| 824 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 825 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 826 | <bytes>true</bytes> |
| 827 | <threadCounts>true</threadCounts> |
| 828 | </value> |
| 829 | </objProp> |
| 830 | <stringProp name="filename"></stringProp> |
| 831 | </ResultCollector> |
| 832 | <hashTree/> |
| 833 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 834 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 835 | </ConstantTimer> |
| 836 | <hashTree/> |
| 837 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 838 | <boolProp name="resetInterpreter">false</boolProp> |
| 839 | <stringProp name="parameters"></stringProp> |
| 840 | <stringProp name="filename"></stringProp> |
| 841 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 842 | String ResponseCode = prev.getResponseCode(); |
| 843 | String ResponseMessage = prev.getResponseMessage(); |
| 844 | |
| 845 | import org.apache.jmeter.services.FileServer; |
| 846 | import test.TestParse.*; |
| 847 | |
| 848 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 849 | f = new FileOutputStream(test_tmp_folder, true); |
| 850 | p = new PrintStream(f); |
| 851 | |
| 852 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 853 | |
| 854 | Map map = new HashMap(); |
| 855 | |
| 856 | map.put("name","${__P(EP_name)}"); |
| 857 | map.put("description","${__P(EP_description)}"); |
| 858 | //map.put("thresholdValue",props.get("EP_thresholdValue")); |
| 859 | map.put("thresholdUnits","${__P(EP_thresholdUnits)}"); |
| 860 | //map.put("entitlementMetric",props.get("EP_entitlementMetric")); |
| 861 | map.put("increments","${__P(EP_increments)}"); |
| 862 | //map.put("aggregationFunction",props.get("EP_aggregationFunction")); |
| 863 | //map.put("operationalScope",props.get("EP_operationalScope")); |
| 864 | //map.put("time",props.get("EP_time")); |
| 865 | map.put("manufacturerReferenceNumber","${__P(EP_manufacturerReferenceNumber)}"); |
| 866 | |
| 867 | map.put("id","${__P(EPid_P)}"); |
| 868 | |
| 869 | |
| 870 | DataValidation dv = new DataValidation(); |
| 871 | String res = dv.verifyResponse(map,ResponseString); |
| 872 | |
| 873 | p.println("\n#######################"+" Get Entitlement Pool "+"#######################"); |
| 874 | |
| 875 | if (ResponseCode.contains("200") && !res.contains("FAIL")) |
| 876 | { |
| 877 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 878 | p.println("Response Code : " + ResponseCode); |
| 879 | p.println("Response Message : " + ResponseMessage); |
| 880 | p.println("Response String : " + ResponseString); |
| 881 | |
| 882 | p.println(res); |
| 883 | } |
| 884 | else |
| 885 | { |
| 886 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 887 | p.println("Response Code : " + ResponseCode); |
| 888 | p.println("Response Message : " + ResponseMessage); |
| 889 | p.println("Response String : " + ResponseString); |
| 890 | |
| 891 | p.println(res); |
| 892 | } |
| 893 | p.println("#####################################################################\n"); |
| 894 | |
| 895 | p.close();f.close();</stringProp> |
| 896 | </BeanShellPostProcessor> |
| 897 | <hashTree/> |
| 898 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 899 | <intProp name="OnError.action">1</intProp> |
| 900 | </ResultAction> |
| 901 | <hashTree/> |
| 902 | </hashTree> |
| 903 | </hashTree> |
| 904 | <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="License Key Group" enabled="true"/> |
| 905 | <hashTree> |
| 906 | <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="Define Test LKG Properties" enabled="true"> |
| 907 | <stringProp name="BeanShellSampler.query">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/LKG_props.txt)})}</stringProp> |
| 908 | <stringProp name="BeanShellSampler.filename"></stringProp> |
| 909 | <stringProp name="BeanShellSampler.parameters"></stringProp> |
| 910 | <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp> |
| 911 | </BeanShellSampler> |
| 912 | <hashTree> |
| 913 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 914 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 915 | </ConstantTimer> |
| 916 | <hashTree/> |
| 917 | </hashTree> |
| 918 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create License Key Group" enabled="true"> |
| 919 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 920 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 921 | <collectionProp name="Arguments.arguments"> |
| 922 | <elementProp name="" elementType="HTTPArgument"> |
| 923 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 924 | <stringProp name="Argument.value">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/LKG_body.txt)})}</stringProp> |
| 925 | <stringProp name="Argument.metadata">=</stringProp> |
| 926 | </elementProp> |
| 927 | </collectionProp> |
| 928 | </elementProp> |
| 929 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 930 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 931 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 932 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 933 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 934 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 935 | <stringProp name="HTTPSampler.path">${__P(ASDC_prefix)}/${__P(VLM_P)}/${__P(LKG)}</stringProp> |
| 936 | <stringProp name="HTTPSampler.method">POST</stringProp> |
| 937 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 938 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 939 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 940 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 941 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 942 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 943 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 944 | </HTTPSamplerProxy> |
| 945 | <hashTree> |
| 946 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 947 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 948 | <objProp> |
| 949 | <name>saveConfig</name> |
| 950 | <value class="SampleSaveConfiguration"> |
| 951 | <time>true</time> |
| 952 | <latency>true</latency> |
| 953 | <timestamp>true</timestamp> |
| 954 | <success>true</success> |
| 955 | <label>true</label> |
| 956 | <code>true</code> |
| 957 | <message>true</message> |
| 958 | <threadName>true</threadName> |
| 959 | <dataType>true</dataType> |
| 960 | <encoding>false</encoding> |
| 961 | <assertions>true</assertions> |
| 962 | <subresults>true</subresults> |
| 963 | <responseData>false</responseData> |
| 964 | <samplerData>false</samplerData> |
| 965 | <xml>false</xml> |
| 966 | <fieldNames>false</fieldNames> |
| 967 | <responseHeaders>false</responseHeaders> |
| 968 | <requestHeaders>false</requestHeaders> |
| 969 | <responseDataOnError>false</responseDataOnError> |
| 970 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 971 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 972 | <bytes>true</bytes> |
| 973 | <threadCounts>true</threadCounts> |
| 974 | </value> |
| 975 | </objProp> |
| 976 | <stringProp name="filename"></stringProp> |
| 977 | </ResultCollector> |
| 978 | <hashTree/> |
| 979 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Get entityId from Response" enabled="true"> |
| 980 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 981 | <stringProp name="RegexExtractor.refname">entityId</stringProp> |
| 982 | <stringProp name="RegexExtractor.regex">"value":"(.+?)"</stringProp> |
| 983 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 984 | <stringProp name="RegexExtractor.default">0</stringProp> |
| 985 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 986 | </RegexExtractor> |
| 987 | <hashTree/> |
| 988 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 989 | <boolProp name="resetInterpreter">false</boolProp> |
| 990 | <stringProp name="parameters"></stringProp> |
| 991 | <stringProp name="filename"></stringProp> |
| 992 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 993 | String ResponseCode = prev.getResponseCode(); |
| 994 | String ResponseMessage = prev.getResponseMessage(); |
| 995 | |
| 996 | props.put("LKGid_P","${entityId}"); |
| 997 | |
| 998 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 999 | f = new FileOutputStream(test_tmp_folder, true); |
| 1000 | p = new PrintStream(f); |
| 1001 | |
| 1002 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 1003 | p.println("\n#######################"+" Create License Key Group Step "+"#######################"); |
| 1004 | if (ResponseCode.contains("200")) |
| 1005 | { |
| 1006 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 1007 | p.println("Response Code : " + ResponseCode); |
| 1008 | p.println("Response Message : " + ResponseMessage); |
| 1009 | p.println("Response String : " + ResponseString); |
| 1010 | } |
| 1011 | else |
| 1012 | { |
| 1013 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 1014 | p.println("Response Code : " + ResponseCode); |
| 1015 | p.println("Response Message : " + ResponseMessage + "\nERROR: Create REST failed."); |
| 1016 | p.println("Response String : " + ResponseString); |
| 1017 | } |
| 1018 | p.println("#####################################################################\n"); |
| 1019 | p.close();f.close();</stringProp> |
| 1020 | </BeanShellPostProcessor> |
| 1021 | <hashTree/> |
| 1022 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 1023 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 1024 | </ConstantTimer> |
| 1025 | <hashTree/> |
| 1026 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 1027 | <intProp name="OnError.action">1</intProp> |
| 1028 | </ResultAction> |
| 1029 | <hashTree/> |
| 1030 | </hashTree> |
| 1031 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get License Key Group" enabled="true"> |
| 1032 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 1033 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 1034 | <collectionProp name="Arguments.arguments"> |
| 1035 | <elementProp name="" elementType="HTTPArgument"> |
| 1036 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 1037 | <stringProp name="Argument.value"></stringProp> |
| 1038 | <stringProp name="Argument.metadata">=</stringProp> |
| 1039 | </elementProp> |
| 1040 | </collectionProp> |
| 1041 | </elementProp> |
| 1042 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 1043 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 1044 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 1045 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 1046 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 1047 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 1048 | <stringProp name="HTTPSampler.path">${__P(ASDC_prefix)}/${__P(VLM_P)}/${__P(LKG)}/${__P(LKGid_P)}</stringProp> |
| 1049 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 1050 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 1051 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 1052 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 1053 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 1054 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 1055 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 1056 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 1057 | </HTTPSamplerProxy> |
| 1058 | <hashTree> |
| 1059 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 1060 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 1061 | <objProp> |
| 1062 | <name>saveConfig</name> |
| 1063 | <value class="SampleSaveConfiguration"> |
| 1064 | <time>true</time> |
| 1065 | <latency>true</latency> |
| 1066 | <timestamp>true</timestamp> |
| 1067 | <success>true</success> |
| 1068 | <label>true</label> |
| 1069 | <code>true</code> |
| 1070 | <message>true</message> |
| 1071 | <threadName>true</threadName> |
| 1072 | <dataType>true</dataType> |
| 1073 | <encoding>false</encoding> |
| 1074 | <assertions>true</assertions> |
| 1075 | <subresults>true</subresults> |
| 1076 | <responseData>false</responseData> |
| 1077 | <samplerData>false</samplerData> |
| 1078 | <xml>false</xml> |
| 1079 | <fieldNames>false</fieldNames> |
| 1080 | <responseHeaders>false</responseHeaders> |
| 1081 | <requestHeaders>false</requestHeaders> |
| 1082 | <responseDataOnError>false</responseDataOnError> |
| 1083 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 1084 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 1085 | <bytes>true</bytes> |
| 1086 | <threadCounts>true</threadCounts> |
| 1087 | </value> |
| 1088 | </objProp> |
| 1089 | <stringProp name="filename"></stringProp> |
| 1090 | </ResultCollector> |
| 1091 | <hashTree/> |
| 1092 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 1093 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 1094 | </ConstantTimer> |
| 1095 | <hashTree/> |
| 1096 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 1097 | <boolProp name="resetInterpreter">false</boolProp> |
| 1098 | <stringProp name="parameters"></stringProp> |
| 1099 | <stringProp name="filename"></stringProp> |
| 1100 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 1101 | String ResponseCode = prev.getResponseCode(); |
| 1102 | String ResponseMessage = prev.getResponseMessage(); |
| 1103 | |
| 1104 | import org.apache.jmeter.services.FileServer; |
| 1105 | import test.TestParse.*; |
| 1106 | |
| 1107 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 1108 | f = new FileOutputStream(test_tmp_folder, true); |
| 1109 | p = new PrintStream(f); |
| 1110 | |
| 1111 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 1112 | |
| 1113 | Map map = new HashMap(); |
| 1114 | |
| 1115 | map.put("name","${__P(LKG_name)}"); |
| 1116 | map.put("description","${__P(LKG_description)}"); |
| 1117 | //map.put("aggregationFunction",props.get("LKG_type")); |
| 1118 | //map.put("operationalScope",props.get("LKG_operationalScope")); |
| 1119 | map.put("id","${__P(LKGid_P)}"); |
| 1120 | |
| 1121 | DataValidation dv = new DataValidation(); |
| 1122 | String res = dv.verifyResponse(map,ResponseString); |
| 1123 | |
| 1124 | p.println("\n#######################"+" Get License Key Group "+"#######################"); |
| 1125 | |
| 1126 | if (ResponseCode.contains("200") && !res.contains("FAIL")) |
| 1127 | { |
| 1128 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 1129 | p.println("Response Code : " + ResponseCode); |
| 1130 | p.println("Response Message : " + ResponseMessage); |
| 1131 | p.println("Response String : " + ResponseString); |
| 1132 | |
| 1133 | p.println(res); |
| 1134 | } |
| 1135 | else |
| 1136 | { |
| 1137 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 1138 | p.println("Response Code : " + ResponseCode); |
| 1139 | p.println("Response Message : " + ResponseMessage); |
| 1140 | p.println("Response String : " + ResponseString); |
| 1141 | |
| 1142 | p.println(res); |
| 1143 | } |
| 1144 | p.println("#####################################################################\n"); |
| 1145 | |
| 1146 | p.close();f.close();</stringProp> |
| 1147 | </BeanShellPostProcessor> |
| 1148 | <hashTree/> |
| 1149 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 1150 | <intProp name="OnError.action">1</intProp> |
| 1151 | </ResultAction> |
| 1152 | <hashTree/> |
| 1153 | </hashTree> |
| 1154 | </hashTree> |
| 1155 | <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Feature Group" enabled="true"/> |
| 1156 | <hashTree> |
| 1157 | <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="Define Test FG Properties" enabled="true"> |
| 1158 | <stringProp name="BeanShellSampler.query">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/FG_props.txt)})}</stringProp> |
| 1159 | <stringProp name="BeanShellSampler.filename"></stringProp> |
| 1160 | <stringProp name="BeanShellSampler.parameters"></stringProp> |
| 1161 | <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp> |
| 1162 | </BeanShellSampler> |
| 1163 | <hashTree> |
| 1164 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 1165 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 1166 | </ConstantTimer> |
| 1167 | <hashTree/> |
| 1168 | </hashTree> |
| 1169 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Feature Group" enabled="true"> |
| 1170 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 1171 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 1172 | <collectionProp name="Arguments.arguments"> |
| 1173 | <elementProp name="" elementType="HTTPArgument"> |
| 1174 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 1175 | <stringProp name="Argument.value">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/FG_body.txt)})}</stringProp> |
| 1176 | <stringProp name="Argument.metadata">=</stringProp> |
| 1177 | </elementProp> |
| 1178 | </collectionProp> |
| 1179 | </elementProp> |
| 1180 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 1181 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 1182 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 1183 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 1184 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 1185 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 1186 | <stringProp name="HTTPSampler.path">${__P(ASDC_prefix)}/${__P(VLM_P)}/${__P(FG)}</stringProp> |
| 1187 | <stringProp name="HTTPSampler.method">POST</stringProp> |
| 1188 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 1189 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 1190 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 1191 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 1192 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 1193 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 1194 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 1195 | </HTTPSamplerProxy> |
| 1196 | <hashTree> |
| 1197 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 1198 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 1199 | <objProp> |
| 1200 | <name>saveConfig</name> |
| 1201 | <value class="SampleSaveConfiguration"> |
| 1202 | <time>true</time> |
| 1203 | <latency>true</latency> |
| 1204 | <timestamp>true</timestamp> |
| 1205 | <success>true</success> |
| 1206 | <label>true</label> |
| 1207 | <code>true</code> |
| 1208 | <message>true</message> |
| 1209 | <threadName>true</threadName> |
| 1210 | <dataType>true</dataType> |
| 1211 | <encoding>false</encoding> |
| 1212 | <assertions>true</assertions> |
| 1213 | <subresults>true</subresults> |
| 1214 | <responseData>false</responseData> |
| 1215 | <samplerData>false</samplerData> |
| 1216 | <xml>false</xml> |
| 1217 | <fieldNames>false</fieldNames> |
| 1218 | <responseHeaders>false</responseHeaders> |
| 1219 | <requestHeaders>false</requestHeaders> |
| 1220 | <responseDataOnError>false</responseDataOnError> |
| 1221 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 1222 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 1223 | <bytes>true</bytes> |
| 1224 | <threadCounts>true</threadCounts> |
| 1225 | </value> |
| 1226 | </objProp> |
| 1227 | <stringProp name="filename"></stringProp> |
| 1228 | </ResultCollector> |
| 1229 | <hashTree/> |
| 1230 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Get entityId from Response" enabled="true"> |
| 1231 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 1232 | <stringProp name="RegexExtractor.refname">entityId</stringProp> |
| 1233 | <stringProp name="RegexExtractor.regex">"value":"(.+?)"</stringProp> |
| 1234 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 1235 | <stringProp name="RegexExtractor.default">0</stringProp> |
| 1236 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 1237 | </RegexExtractor> |
| 1238 | <hashTree/> |
| 1239 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 1240 | <boolProp name="resetInterpreter">false</boolProp> |
| 1241 | <stringProp name="parameters"></stringProp> |
| 1242 | <stringProp name="filename"></stringProp> |
| 1243 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 1244 | String ResponseCode = prev.getResponseCode(); |
| 1245 | String ResponseMessage = prev.getResponseMessage(); |
| 1246 | |
| 1247 | props.put("FGid_P","${entityId}"); |
| 1248 | |
| 1249 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 1250 | f = new FileOutputStream(test_tmp_folder, true); |
| 1251 | p = new PrintStream(f); |
| 1252 | |
| 1253 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 1254 | p.println("\n#######################"+" Create Feature Group Step "+"#######################"); |
| 1255 | if (ResponseCode.contains("200")) |
| 1256 | { |
| 1257 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 1258 | p.println("Response Code : " + ResponseCode); |
| 1259 | p.println("Response Message : " + ResponseMessage); |
| 1260 | p.println("Response String : " + ResponseString); |
| 1261 | } |
| 1262 | else |
| 1263 | { |
| 1264 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 1265 | p.println("Response Code : " + ResponseCode); |
| 1266 | p.println("Response Message : " + ResponseMessage + "\nERROR: Create REST failed."); |
| 1267 | p.println("Response String : " + ResponseString); |
| 1268 | } |
| 1269 | p.println("#####################################################################\n"); |
| 1270 | p.close();f.close();</stringProp> |
| 1271 | </BeanShellPostProcessor> |
| 1272 | <hashTree/> |
| 1273 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 1274 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 1275 | </ConstantTimer> |
| 1276 | <hashTree/> |
| 1277 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 1278 | <intProp name="OnError.action">1</intProp> |
| 1279 | </ResultAction> |
| 1280 | <hashTree/> |
| 1281 | </hashTree> |
| 1282 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Feature Group" enabled="true"> |
| 1283 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 1284 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 1285 | <collectionProp name="Arguments.arguments"> |
| 1286 | <elementProp name="" elementType="HTTPArgument"> |
| 1287 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 1288 | <stringProp name="Argument.value"></stringProp> |
| 1289 | <stringProp name="Argument.metadata">=</stringProp> |
| 1290 | </elementProp> |
| 1291 | </collectionProp> |
| 1292 | </elementProp> |
| 1293 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 1294 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 1295 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 1296 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 1297 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 1298 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 1299 | <stringProp name="HTTPSampler.path">${__P(ASDC_prefix)}/${__P(VLM_P)}/${__P(FG)}/${__P(FGid_P)}</stringProp> |
| 1300 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 1301 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 1302 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 1303 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 1304 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 1305 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 1306 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 1307 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 1308 | </HTTPSamplerProxy> |
| 1309 | <hashTree> |
| 1310 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 1311 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 1312 | <objProp> |
| 1313 | <name>saveConfig</name> |
| 1314 | <value class="SampleSaveConfiguration"> |
| 1315 | <time>true</time> |
| 1316 | <latency>true</latency> |
| 1317 | <timestamp>true</timestamp> |
| 1318 | <success>true</success> |
| 1319 | <label>true</label> |
| 1320 | <code>true</code> |
| 1321 | <message>true</message> |
| 1322 | <threadName>true</threadName> |
| 1323 | <dataType>true</dataType> |
| 1324 | <encoding>false</encoding> |
| 1325 | <assertions>true</assertions> |
| 1326 | <subresults>true</subresults> |
| 1327 | <responseData>false</responseData> |
| 1328 | <samplerData>false</samplerData> |
| 1329 | <xml>false</xml> |
| 1330 | <fieldNames>false</fieldNames> |
| 1331 | <responseHeaders>false</responseHeaders> |
| 1332 | <requestHeaders>false</requestHeaders> |
| 1333 | <responseDataOnError>false</responseDataOnError> |
| 1334 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 1335 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 1336 | <bytes>true</bytes> |
| 1337 | <threadCounts>true</threadCounts> |
| 1338 | </value> |
| 1339 | </objProp> |
| 1340 | <stringProp name="filename"></stringProp> |
| 1341 | </ResultCollector> |
| 1342 | <hashTree/> |
| 1343 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 1344 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 1345 | </ConstantTimer> |
| 1346 | <hashTree/> |
| 1347 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 1348 | <boolProp name="resetInterpreter">false</boolProp> |
| 1349 | <stringProp name="parameters"></stringProp> |
| 1350 | <stringProp name="filename"></stringProp> |
| 1351 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 1352 | String ResponseCode = prev.getResponseCode(); |
| 1353 | String ResponseMessage = prev.getResponseMessage(); |
| 1354 | |
| 1355 | import org.apache.jmeter.services.FileServer; |
| 1356 | import test.TestParse.*; |
| 1357 | |
| 1358 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 1359 | f = new FileOutputStream(test_tmp_folder, true); |
| 1360 | p = new PrintStream(f); |
| 1361 | |
| 1362 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 1363 | |
| 1364 | Map map = new HashMap(); |
| 1365 | |
| 1366 | map.put("name","${__P(FG_name)}"); |
| 1367 | map.put("description","${__P(FG_description)}"); |
| 1368 | map.put("partNumber","${__P(FG_partNumber)}"); |
| 1369 | |
| 1370 | map.put("id","${__P(FGid_P)}"); |
| 1371 | |
| 1372 | DataValidation dv = new DataValidation(); |
| 1373 | String res = dv.verifyResponse(map,ResponseString); |
| 1374 | |
| 1375 | p.println("\n#######################"+" Get Feature Group "+"#######################"); |
| 1376 | |
| 1377 | if (ResponseCode.contains("200") && !res.contains("FAIL")) |
| 1378 | { |
| 1379 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 1380 | p.println("Response Code : " + ResponseCode); |
| 1381 | p.println("Response Message : " + ResponseMessage); |
| 1382 | p.println("Response String : " + ResponseString); |
| 1383 | |
| 1384 | p.println(res); |
| 1385 | } |
| 1386 | else |
| 1387 | { |
| 1388 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 1389 | p.println("Response Code : " + ResponseCode); |
| 1390 | p.println("Response Message : " + ResponseMessage); |
| 1391 | p.println("Response String : " + ResponseString); |
| 1392 | |
| 1393 | p.println(res); |
| 1394 | } |
| 1395 | p.println("#####################################################################\n"); |
| 1396 | |
| 1397 | p.close();f.close();</stringProp> |
| 1398 | </BeanShellPostProcessor> |
| 1399 | <hashTree/> |
| 1400 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 1401 | <intProp name="OnError.action">1</intProp> |
| 1402 | </ResultAction> |
| 1403 | <hashTree/> |
| 1404 | </hashTree> |
| 1405 | </hashTree> |
| 1406 | <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="License Agreement" enabled="true"/> |
| 1407 | <hashTree> |
| 1408 | <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="Define Test LA Properties" enabled="true"> |
| 1409 | <stringProp name="BeanShellSampler.query">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/LA_props.txt)})}</stringProp> |
| 1410 | <stringProp name="BeanShellSampler.filename"></stringProp> |
| 1411 | <stringProp name="BeanShellSampler.parameters"></stringProp> |
| 1412 | <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp> |
| 1413 | </BeanShellSampler> |
| 1414 | <hashTree> |
| 1415 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 1416 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 1417 | </ConstantTimer> |
| 1418 | <hashTree/> |
| 1419 | </hashTree> |
| 1420 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create License Agreement" enabled="true"> |
| 1421 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 1422 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 1423 | <collectionProp name="Arguments.arguments"> |
| 1424 | <elementProp name="" elementType="HTTPArgument"> |
| 1425 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 1426 | <stringProp name="Argument.value">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/LA_body.txt)})}</stringProp> |
| 1427 | <stringProp name="Argument.metadata">=</stringProp> |
| 1428 | </elementProp> |
| 1429 | </collectionProp> |
| 1430 | </elementProp> |
| 1431 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 1432 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 1433 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 1434 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 1435 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 1436 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 1437 | <stringProp name="HTTPSampler.path">${__P(ASDC_prefix)}/${__P(VLM_P)}/${__P(LA)}</stringProp> |
| 1438 | <stringProp name="HTTPSampler.method">POST</stringProp> |
| 1439 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 1440 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 1441 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 1442 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 1443 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 1444 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 1445 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 1446 | </HTTPSamplerProxy> |
| 1447 | <hashTree> |
| 1448 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 1449 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 1450 | <objProp> |
| 1451 | <name>saveConfig</name> |
| 1452 | <value class="SampleSaveConfiguration"> |
| 1453 | <time>true</time> |
| 1454 | <latency>true</latency> |
| 1455 | <timestamp>true</timestamp> |
| 1456 | <success>true</success> |
| 1457 | <label>true</label> |
| 1458 | <code>true</code> |
| 1459 | <message>true</message> |
| 1460 | <threadName>true</threadName> |
| 1461 | <dataType>true</dataType> |
| 1462 | <encoding>false</encoding> |
| 1463 | <assertions>true</assertions> |
| 1464 | <subresults>true</subresults> |
| 1465 | <responseData>false</responseData> |
| 1466 | <samplerData>false</samplerData> |
| 1467 | <xml>false</xml> |
| 1468 | <fieldNames>false</fieldNames> |
| 1469 | <responseHeaders>false</responseHeaders> |
| 1470 | <requestHeaders>false</requestHeaders> |
| 1471 | <responseDataOnError>false</responseDataOnError> |
| 1472 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 1473 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 1474 | <bytes>true</bytes> |
| 1475 | <threadCounts>true</threadCounts> |
| 1476 | </value> |
| 1477 | </objProp> |
| 1478 | <stringProp name="filename"></stringProp> |
| 1479 | </ResultCollector> |
| 1480 | <hashTree/> |
| 1481 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Get entityId from Response" enabled="true"> |
| 1482 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 1483 | <stringProp name="RegexExtractor.refname">entityId</stringProp> |
| 1484 | <stringProp name="RegexExtractor.regex">"value":"(.+?)"</stringProp> |
| 1485 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 1486 | <stringProp name="RegexExtractor.default">0</stringProp> |
| 1487 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 1488 | </RegexExtractor> |
| 1489 | <hashTree/> |
| 1490 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 1491 | <boolProp name="resetInterpreter">false</boolProp> |
| 1492 | <stringProp name="parameters"></stringProp> |
| 1493 | <stringProp name="filename"></stringProp> |
| 1494 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 1495 | String ResponseCode = prev.getResponseCode(); |
| 1496 | String ResponseMessage = prev.getResponseMessage(); |
| 1497 | |
| 1498 | props.put("LAid_P","${entityId}"); |
| 1499 | |
| 1500 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 1501 | f = new FileOutputStream(test_tmp_folder, true); |
| 1502 | p = new PrintStream(f); |
| 1503 | |
| 1504 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 1505 | p.println("\n#######################"+" Create License Agreement Step "+"#######################"); |
| 1506 | if (ResponseCode.contains("200")) |
| 1507 | { |
| 1508 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 1509 | p.println("Response Code : " + ResponseCode); |
| 1510 | p.println("Response Message : " + ResponseMessage); |
| 1511 | p.println("Response String : " + ResponseString); |
| 1512 | } |
| 1513 | else |
| 1514 | { |
| 1515 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 1516 | p.println("Response Code : " + ResponseCode); |
| 1517 | p.println("Response Message : " + ResponseMessage + "\nERROR: Create REST failed."); |
| 1518 | p.println("Response String : " + ResponseString); |
| 1519 | } |
| 1520 | p.println("#####################################################################\n"); |
| 1521 | p.close();f.close();</stringProp> |
| 1522 | </BeanShellPostProcessor> |
| 1523 | <hashTree/> |
| 1524 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 1525 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 1526 | </ConstantTimer> |
| 1527 | <hashTree/> |
| 1528 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 1529 | <intProp name="OnError.action">1</intProp> |
| 1530 | </ResultAction> |
| 1531 | <hashTree/> |
| 1532 | </hashTree> |
| 1533 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get License Agreement" enabled="true"> |
| 1534 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 1535 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 1536 | <collectionProp name="Arguments.arguments"> |
| 1537 | <elementProp name="" elementType="HTTPArgument"> |
| 1538 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 1539 | <stringProp name="Argument.value"></stringProp> |
| 1540 | <stringProp name="Argument.metadata">=</stringProp> |
| 1541 | </elementProp> |
| 1542 | </collectionProp> |
| 1543 | </elementProp> |
| 1544 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 1545 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 1546 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 1547 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 1548 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 1549 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 1550 | <stringProp name="HTTPSampler.path">${__P(ASDC_prefix)}/${__P(VLM_P)}/${__P(LA)}/${__P(LAid_P)}</stringProp> |
| 1551 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 1552 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 1553 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 1554 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 1555 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 1556 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 1557 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 1558 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 1559 | </HTTPSamplerProxy> |
| 1560 | <hashTree> |
| 1561 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 1562 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 1563 | <objProp> |
| 1564 | <name>saveConfig</name> |
| 1565 | <value class="SampleSaveConfiguration"> |
| 1566 | <time>true</time> |
| 1567 | <latency>true</latency> |
| 1568 | <timestamp>true</timestamp> |
| 1569 | <success>true</success> |
| 1570 | <label>true</label> |
| 1571 | <code>true</code> |
| 1572 | <message>true</message> |
| 1573 | <threadName>true</threadName> |
| 1574 | <dataType>true</dataType> |
| 1575 | <encoding>false</encoding> |
| 1576 | <assertions>true</assertions> |
| 1577 | <subresults>true</subresults> |
| 1578 | <responseData>false</responseData> |
| 1579 | <samplerData>false</samplerData> |
| 1580 | <xml>false</xml> |
| 1581 | <fieldNames>false</fieldNames> |
| 1582 | <responseHeaders>false</responseHeaders> |
| 1583 | <requestHeaders>false</requestHeaders> |
| 1584 | <responseDataOnError>false</responseDataOnError> |
| 1585 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 1586 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 1587 | <bytes>true</bytes> |
| 1588 | <threadCounts>true</threadCounts> |
| 1589 | </value> |
| 1590 | </objProp> |
| 1591 | <stringProp name="filename"></stringProp> |
| 1592 | </ResultCollector> |
| 1593 | <hashTree/> |
| 1594 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 1595 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 1596 | </ConstantTimer> |
| 1597 | <hashTree/> |
| 1598 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 1599 | <boolProp name="resetInterpreter">false</boolProp> |
| 1600 | <stringProp name="parameters"></stringProp> |
| 1601 | <stringProp name="filename"></stringProp> |
| 1602 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 1603 | String ResponseCode = prev.getResponseCode(); |
| 1604 | String ResponseMessage = prev.getResponseMessage(); |
| 1605 | |
| 1606 | import org.apache.jmeter.services.FileServer; |
| 1607 | import test.TestParse.*; |
| 1608 | |
| 1609 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 1610 | f = new FileOutputStream(test_tmp_folder, true); |
| 1611 | p = new PrintStream(f); |
| 1612 | |
| 1613 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 1614 | |
| 1615 | Map map = new HashMap(); |
| 1616 | |
| 1617 | map.put("name","${__P(LA_name)}"); |
| 1618 | map.put("description","${__P(LA_description)}"); |
| 1619 | //map.put("licenseModelType","${LA_licenseModelType}"); |
| 1620 | map.put("requirementsAndConstrains","${__P(LA_requirementsAndConstrains)}"); |
| 1621 | map.put("id","${__P(LAid_P)}"); |
| 1622 | |
| 1623 | DataValidation dv = new DataValidation(); |
| 1624 | String res = dv.verifyResponse(map,ResponseString); |
| 1625 | |
| 1626 | p.println("\n#######################"+" Get License Agreement "+"#######################"); |
| 1627 | |
| 1628 | if (ResponseCode.contains("200") && !res.contains("FAIL")) |
| 1629 | { |
| 1630 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 1631 | p.println("Response Code : " + ResponseCode); |
| 1632 | p.println("Response Message : " + ResponseMessage); |
| 1633 | p.println("Response String : " + ResponseString); |
| 1634 | |
| 1635 | p.println(res); |
| 1636 | } |
| 1637 | else |
| 1638 | { |
| 1639 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 1640 | p.println("Response Code : " + ResponseCode); |
| 1641 | p.println("Response Message : " + ResponseMessage); |
| 1642 | p.println("Response String : " + ResponseString); |
| 1643 | |
| 1644 | p.println(res); |
| 1645 | } |
| 1646 | p.println("#####################################################################\n"); |
| 1647 | |
| 1648 | p.close();f.close();</stringProp> |
| 1649 | </BeanShellPostProcessor> |
| 1650 | <hashTree/> |
| 1651 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 1652 | <intProp name="OnError.action">1</intProp> |
| 1653 | </ResultAction> |
| 1654 | <hashTree/> |
| 1655 | </hashTree> |
| 1656 | </hashTree> |
| 1657 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Checkin VLM" enabled="true"> |
| 1658 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 1659 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 1660 | <collectionProp name="Arguments.arguments"> |
| 1661 | <elementProp name="" elementType="HTTPArgument"> |
| 1662 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 1663 | <stringProp name="Argument.value">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/Action_Checkin.txt)})}</stringProp> |
| 1664 | <stringProp name="Argument.metadata">=</stringProp> |
| 1665 | </elementProp> |
| 1666 | </collectionProp> |
| 1667 | </elementProp> |
| 1668 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 1669 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 1670 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 1671 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 1672 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 1673 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 1674 | <stringProp name="HTTPSampler.path">${__P(ASDC_prefix)}/${__P(VLM_P)}/actions</stringProp> |
| 1675 | <stringProp name="HTTPSampler.method">PUT</stringProp> |
| 1676 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 1677 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 1678 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 1679 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 1680 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 1681 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 1682 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 1683 | </HTTPSamplerProxy> |
| 1684 | <hashTree> |
| 1685 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 1686 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 1687 | <objProp> |
| 1688 | <name>saveConfig</name> |
| 1689 | <value class="SampleSaveConfiguration"> |
| 1690 | <time>true</time> |
| 1691 | <latency>true</latency> |
| 1692 | <timestamp>true</timestamp> |
| 1693 | <success>true</success> |
| 1694 | <label>true</label> |
| 1695 | <code>true</code> |
| 1696 | <message>true</message> |
| 1697 | <threadName>true</threadName> |
| 1698 | <dataType>true</dataType> |
| 1699 | <encoding>false</encoding> |
| 1700 | <assertions>true</assertions> |
| 1701 | <subresults>true</subresults> |
| 1702 | <responseData>false</responseData> |
| 1703 | <samplerData>false</samplerData> |
| 1704 | <xml>false</xml> |
| 1705 | <fieldNames>false</fieldNames> |
| 1706 | <responseHeaders>false</responseHeaders> |
| 1707 | <requestHeaders>false</requestHeaders> |
| 1708 | <responseDataOnError>false</responseDataOnError> |
| 1709 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 1710 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 1711 | <bytes>true</bytes> |
| 1712 | <threadCounts>true</threadCounts> |
| 1713 | </value> |
| 1714 | </objProp> |
| 1715 | <stringProp name="filename"></stringProp> |
| 1716 | </ResultCollector> |
| 1717 | <hashTree/> |
| 1718 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 1719 | <boolProp name="resetInterpreter">false</boolProp> |
| 1720 | <stringProp name="parameters"></stringProp> |
| 1721 | <stringProp name="filename"></stringProp> |
| 1722 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 1723 | String ResponseCode = prev.getResponseCode(); |
| 1724 | String ResponseMessage = prev.getResponseMessage(); |
| 1725 | |
| 1726 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 1727 | f = new FileOutputStream(test_tmp_folder, true); |
| 1728 | p = new PrintStream(f); |
| 1729 | |
| 1730 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 1731 | |
| 1732 | p.println("\n#######################"+" Checkin VLM "+"#######################"); |
| 1733 | |
| 1734 | if (ResponseCode.contains("200")) |
| 1735 | { |
| 1736 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 1737 | p.println("Response Code : " + ResponseCode); |
| 1738 | p.println("Response Message : " + ResponseMessage); |
| 1739 | p.println("Response String : " + ResponseString); |
| 1740 | } |
| 1741 | else |
| 1742 | { |
| 1743 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 1744 | p.println("Response Code : " + ResponseCode); |
| 1745 | p.println("Response Message : " + ResponseMessage + "\nERROR: Create VLM REST failed."); |
| 1746 | p.println("Response String : " + ResponseString); |
| 1747 | } |
| 1748 | |
| 1749 | p.println("############################################################################\n"); |
| 1750 | |
| 1751 | p.close();f.close();</stringProp> |
| 1752 | </BeanShellPostProcessor> |
| 1753 | <hashTree/> |
| 1754 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 1755 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 1756 | </ConstantTimer> |
| 1757 | <hashTree/> |
| 1758 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 1759 | <intProp name="OnError.action">1</intProp> |
| 1760 | </ResultAction> |
| 1761 | <hashTree/> |
| 1762 | </hashTree> |
| 1763 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Submit VLM" enabled="true"> |
| 1764 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 1765 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 1766 | <collectionProp name="Arguments.arguments"> |
| 1767 | <elementProp name="" elementType="HTTPArgument"> |
| 1768 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 1769 | <stringProp name="Argument.value">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/Action_Submit.txt)})}</stringProp> |
| 1770 | <stringProp name="Argument.metadata">=</stringProp> |
| 1771 | </elementProp> |
| 1772 | </collectionProp> |
| 1773 | </elementProp> |
| 1774 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 1775 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 1776 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 1777 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 1778 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 1779 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 1780 | <stringProp name="HTTPSampler.path">${__P(ASDC_prefix)}/${__P(VLM_P)}/actions</stringProp> |
| 1781 | <stringProp name="HTTPSampler.method">PUT</stringProp> |
| 1782 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 1783 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 1784 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 1785 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 1786 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 1787 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 1788 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 1789 | </HTTPSamplerProxy> |
| 1790 | <hashTree> |
| 1791 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 1792 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 1793 | <objProp> |
| 1794 | <name>saveConfig</name> |
| 1795 | <value class="SampleSaveConfiguration"> |
| 1796 | <time>true</time> |
| 1797 | <latency>true</latency> |
| 1798 | <timestamp>true</timestamp> |
| 1799 | <success>true</success> |
| 1800 | <label>true</label> |
| 1801 | <code>true</code> |
| 1802 | <message>true</message> |
| 1803 | <threadName>true</threadName> |
| 1804 | <dataType>true</dataType> |
| 1805 | <encoding>false</encoding> |
| 1806 | <assertions>true</assertions> |
| 1807 | <subresults>true</subresults> |
| 1808 | <responseData>false</responseData> |
| 1809 | <samplerData>false</samplerData> |
| 1810 | <xml>false</xml> |
| 1811 | <fieldNames>false</fieldNames> |
| 1812 | <responseHeaders>false</responseHeaders> |
| 1813 | <requestHeaders>false</requestHeaders> |
| 1814 | <responseDataOnError>false</responseDataOnError> |
| 1815 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 1816 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 1817 | <bytes>true</bytes> |
| 1818 | <threadCounts>true</threadCounts> |
| 1819 | </value> |
| 1820 | </objProp> |
| 1821 | <stringProp name="filename"></stringProp> |
| 1822 | </ResultCollector> |
| 1823 | <hashTree/> |
| 1824 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 1825 | <boolProp name="resetInterpreter">false</boolProp> |
| 1826 | <stringProp name="parameters"></stringProp> |
| 1827 | <stringProp name="filename"></stringProp> |
| 1828 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 1829 | String ResponseCode = prev.getResponseCode(); |
| 1830 | String ResponseMessage = prev.getResponseMessage(); |
| 1831 | |
| 1832 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 1833 | f = new FileOutputStream(test_tmp_folder, true); |
| 1834 | p = new PrintStream(f); |
| 1835 | |
| 1836 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 1837 | |
| 1838 | p.println("\n#######################"+" Submit VLM "+"#######################"); |
| 1839 | |
| 1840 | if (ResponseCode.contains("200")) |
| 1841 | { |
| 1842 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 1843 | p.println("Response Code : " + ResponseCode); |
| 1844 | p.println("Response Message : " + ResponseMessage); |
| 1845 | p.println("Response String : " + ResponseString); |
| 1846 | } |
| 1847 | else |
| 1848 | { |
| 1849 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 1850 | p.println("Response Code : " + ResponseCode); |
| 1851 | p.println("Response Message : " + ResponseMessage + "\nERROR: Create VLM REST failed."); |
| 1852 | p.println("Response String : " + ResponseString); |
| 1853 | } |
| 1854 | |
| 1855 | p.println("############################################################################\n"); |
| 1856 | |
| 1857 | p.close();f.close();</stringProp> |
| 1858 | </BeanShellPostProcessor> |
| 1859 | <hashTree/> |
| 1860 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 1861 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 1862 | </ConstantTimer> |
| 1863 | <hashTree/> |
| 1864 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 1865 | <intProp name="OnError.action">1</intProp> |
| 1866 | </ResultAction> |
| 1867 | <hashTree/> |
| 1868 | </hashTree> |
| 1869 | <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Read All HEAT Files" enabled="true"> |
| 1870 | <boolProp name="SystemSampler.checkReturnCode">false</boolProp> |
| 1871 | <stringProp name="SystemSampler.expectedReturnCode">0</stringProp> |
| 1872 | <stringProp name="SystemSampler.command">ls</stringProp> |
| 1873 | <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 1874 | <collectionProp name="Arguments.arguments"/> |
| 1875 | </elementProp> |
| 1876 | <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 1877 | <collectionProp name="Arguments.arguments"/> |
| 1878 | </elementProp> |
| 1879 | <stringProp name="SystemSampler.directory">${fileRepo}</stringProp> |
| 1880 | </SystemSampler> |
| 1881 | <hashTree> |
| 1882 | <JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="Save Files" enabled="true"> |
| 1883 | <stringProp name="cacheKey"></stringProp> |
| 1884 | <stringProp name="filename"></stringProp> |
| 1885 | <stringProp name="parameters"></stringProp> |
| 1886 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 1887 | |
| 1888 | |
| 1889 | String[] ActionItem = ResponseString.split("\n"); |
| 1890 | int i=1; |
| 1891 | |
| 1892 | for( String s : ActionItem) |
| 1893 | { |
| 1894 | log.info("line is : " + s); |
| 1895 | vars.put("files"+i, s); |
| 1896 | i++; |
| 1897 | } |
| 1898 | |
| 1899 | </stringProp> |
| 1900 | <stringProp name="scriptLanguage">beanshell</stringProp> |
| 1901 | </JSR223PostProcessor> |
| 1902 | <hashTree/> |
| 1903 | </hashTree> |
| 1904 | <ForeachController guiclass="ForeachControlPanel" testclass="ForeachController" testname="ForEach Controller" enabled="true"> |
| 1905 | <stringProp name="ForeachController.inputVal">files</stringProp> |
| 1906 | <stringProp name="ForeachController.returnVal">index</stringProp> |
| 1907 | <boolProp name="ForeachController.useSeparator">false</boolProp> |
| 1908 | </ForeachController> |
| 1909 | <hashTree> |
| 1910 | <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Vendor Software Products" enabled="true"/> |
| 1911 | <hashTree> |
| 1912 | <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="Define Test VSP Properties" enabled="true"> |
| 1913 | <stringProp name="BeanShellSampler.query">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/VSP_props.txt)})}</stringProp> |
| 1914 | <stringProp name="BeanShellSampler.filename"></stringProp> |
| 1915 | <stringProp name="BeanShellSampler.parameters"></stringProp> |
| 1916 | <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp> |
| 1917 | </BeanShellSampler> |
| 1918 | <hashTree> |
| 1919 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 1920 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 1921 | </ConstantTimer> |
| 1922 | <hashTree/> |
| 1923 | </hashTree> |
| 1924 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Vendor Software Products" enabled="true"> |
| 1925 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 1926 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 1927 | <collectionProp name="Arguments.arguments"> |
| 1928 | <elementProp name="" elementType="HTTPArgument"> |
| 1929 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 1930 | <stringProp name="Argument.value">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/VSP_body.txt)})}</stringProp> |
| 1931 | <stringProp name="Argument.metadata">=</stringProp> |
| 1932 | </elementProp> |
| 1933 | </collectionProp> |
| 1934 | </elementProp> |
| 1935 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 1936 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 1937 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 1938 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 1939 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 1940 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 1941 | <stringProp name="HTTPSampler.path">${__P(ASDC_VSP)}</stringProp> |
| 1942 | <stringProp name="HTTPSampler.method">POST</stringProp> |
| 1943 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 1944 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 1945 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 1946 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 1947 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 1948 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 1949 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 1950 | </HTTPSamplerProxy> |
| 1951 | <hashTree> |
| 1952 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 1953 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 1954 | <objProp> |
| 1955 | <name>saveConfig</name> |
| 1956 | <value class="SampleSaveConfiguration"> |
| 1957 | <time>true</time> |
| 1958 | <latency>true</latency> |
| 1959 | <timestamp>true</timestamp> |
| 1960 | <success>true</success> |
| 1961 | <label>true</label> |
| 1962 | <code>true</code> |
| 1963 | <message>true</message> |
| 1964 | <threadName>true</threadName> |
| 1965 | <dataType>true</dataType> |
| 1966 | <encoding>false</encoding> |
| 1967 | <assertions>true</assertions> |
| 1968 | <subresults>true</subresults> |
| 1969 | <responseData>false</responseData> |
| 1970 | <samplerData>false</samplerData> |
| 1971 | <xml>false</xml> |
| 1972 | <fieldNames>false</fieldNames> |
| 1973 | <responseHeaders>false</responseHeaders> |
| 1974 | <requestHeaders>false</requestHeaders> |
| 1975 | <responseDataOnError>false</responseDataOnError> |
| 1976 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 1977 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 1978 | <bytes>true</bytes> |
| 1979 | <threadCounts>true</threadCounts> |
| 1980 | </value> |
| 1981 | </objProp> |
| 1982 | <stringProp name="filename"></stringProp> |
| 1983 | </ResultCollector> |
| 1984 | <hashTree/> |
| 1985 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Get entityId from Response" enabled="true"> |
| 1986 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 1987 | <stringProp name="RegexExtractor.refname">entityId</stringProp> |
| 1988 | <stringProp name="RegexExtractor.regex">"vspId":"(.+?)"</stringProp> |
| 1989 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 1990 | <stringProp name="RegexExtractor.default">0</stringProp> |
| 1991 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 1992 | </RegexExtractor> |
| 1993 | <hashTree/> |
| 1994 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 1995 | <boolProp name="resetInterpreter">false</boolProp> |
| 1996 | <stringProp name="parameters"></stringProp> |
| 1997 | <stringProp name="filename"></stringProp> |
| 1998 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 1999 | String ResponseCode = prev.getResponseCode(); |
| 2000 | String ResponseMessage = prev.getResponseMessage(); |
| 2001 | |
| 2002 | props.put("VSP_P","${entityId}"); |
| 2003 | |
| 2004 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 2005 | f = new FileOutputStream(test_tmp_folder, true); |
| 2006 | p = new PrintStream(f); |
| 2007 | |
| 2008 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 2009 | p.println("\n#######################"+" Create Vendor Software Products Step "+"#######################"); |
| 2010 | if (ResponseCode.contains("200")) |
| 2011 | { |
| 2012 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 2013 | p.println("Response Code : " + ResponseCode); |
| 2014 | p.println("Response Message : " + ResponseMessage); |
| 2015 | p.println("Response String : " + ResponseString); |
| 2016 | } |
| 2017 | else |
| 2018 | { |
| 2019 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 2020 | p.println("Response Code : " + ResponseCode); |
| 2021 | p.println("Response Message : " + ResponseMessage + "\nERROR: Create REST failed."); |
| 2022 | p.println("Response String : " + ResponseString); |
| 2023 | } |
| 2024 | p.println("#####################################################################\n"); |
| 2025 | p.close();f.close();</stringProp> |
| 2026 | </BeanShellPostProcessor> |
| 2027 | <hashTree/> |
| 2028 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 2029 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 2030 | </ConstantTimer> |
| 2031 | <hashTree/> |
| 2032 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 2033 | <intProp name="OnError.action">1</intProp> |
| 2034 | </ResultAction> |
| 2035 | <hashTree/> |
| 2036 | </hashTree> |
| 2037 | </hashTree> |
| 2038 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Upload ZIP file to VSP" enabled="true"> |
| 2039 | <elementProp name="HTTPsampler.Files" elementType="HTTPFileArgs"> |
| 2040 | <collectionProp name="HTTPFileArgs.files"> |
| 2041 | <elementProp name="${fileRepo}${index}" elementType="HTTPFileArg"> |
| 2042 | <stringProp name="File.path">${fileRepo}${index}</stringProp> |
| 2043 | <stringProp name="File.paramname"></stringProp> |
| 2044 | <stringProp name="File.mimetype">${zip}</stringProp> |
| 2045 | </elementProp> |
| 2046 | </collectionProp> |
| 2047 | </elementProp> |
| 2048 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2049 | <collectionProp name="Arguments.arguments"/> |
| 2050 | </elementProp> |
| 2051 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 2052 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 2053 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 2054 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 2055 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 2056 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 2057 | <stringProp name="HTTPSampler.path">${__P(ASDC_VSP)}/${__P(VSP_P)}/upload</stringProp> |
| 2058 | <stringProp name="HTTPSampler.method">POST</stringProp> |
| 2059 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 2060 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 2061 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 2062 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">true</boolProp> |
| 2063 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 2064 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 2065 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 2066 | </HTTPSamplerProxy> |
| 2067 | <hashTree> |
| 2068 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 2069 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 2070 | <objProp> |
| 2071 | <name>saveConfig</name> |
| 2072 | <value class="SampleSaveConfiguration"> |
| 2073 | <time>true</time> |
| 2074 | <latency>true</latency> |
| 2075 | <timestamp>true</timestamp> |
| 2076 | <success>true</success> |
| 2077 | <label>true</label> |
| 2078 | <code>true</code> |
| 2079 | <message>true</message> |
| 2080 | <threadName>true</threadName> |
| 2081 | <dataType>true</dataType> |
| 2082 | <encoding>false</encoding> |
| 2083 | <assertions>true</assertions> |
| 2084 | <subresults>true</subresults> |
| 2085 | <responseData>false</responseData> |
| 2086 | <samplerData>false</samplerData> |
| 2087 | <xml>false</xml> |
| 2088 | <fieldNames>false</fieldNames> |
| 2089 | <responseHeaders>false</responseHeaders> |
| 2090 | <requestHeaders>false</requestHeaders> |
| 2091 | <responseDataOnError>false</responseDataOnError> |
| 2092 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 2093 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 2094 | <bytes>true</bytes> |
| 2095 | <threadCounts>true</threadCounts> |
| 2096 | </value> |
| 2097 | </objProp> |
| 2098 | <stringProp name="filename"></stringProp> |
| 2099 | </ResultCollector> |
| 2100 | <hashTree/> |
| 2101 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Get Response status" enabled="true"> |
| 2102 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 2103 | <stringProp name="RegexExtractor.refname">status</stringProp> |
| 2104 | <stringProp name="RegexExtractor.regex">"status":"(.+?)"</stringProp> |
| 2105 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 2106 | <stringProp name="RegexExtractor.default">0</stringProp> |
| 2107 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 2108 | <stringProp name="Scope.variable"></stringProp> |
| 2109 | </RegexExtractor> |
| 2110 | <hashTree/> |
| 2111 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 2112 | <boolProp name="resetInterpreter">false</boolProp> |
| 2113 | <stringProp name="parameters"></stringProp> |
| 2114 | <stringProp name="filename"></stringProp> |
| 2115 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 2116 | String ResponseCode = prev.getResponseCode(); |
| 2117 | String ResponseMessage = prev.getResponseMessage(); |
| 2118 | |
| 2119 | |
| 2120 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 2121 | f = new FileOutputStream(test_tmp_folder, true); |
| 2122 | p = new PrintStream(f); |
| 2123 | |
| 2124 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 2125 | |
| 2126 | p.println("\n#######################"+" ${__samplerName} "+"#######################"); |
| 2127 | |
| 2128 | if (ResponseCode.contains("200") || "${status}".equals("Success")) |
| 2129 | { |
| 2130 | |
| 2131 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 2132 | p.println("Response Code : " + ResponseCode); |
| 2133 | p.println("Response Message : " + ResponseMessage); |
| 2134 | p.println("Response String : " + ResponseString); |
| 2135 | |
| 2136 | } |
| 2137 | else |
| 2138 | { |
| 2139 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 2140 | p.println("Response Code : " + ResponseCode); |
| 2141 | p.println("Response Message : " + ResponseMessage); |
| 2142 | p.println("Response String : " + ResponseString); |
| 2143 | } |
| 2144 | |
| 2145 | p.println("############################################################################\n"); |
| 2146 | |
| 2147 | p.close();f.close();</stringProp> |
| 2148 | </BeanShellPostProcessor> |
| 2149 | <hashTree/> |
| 2150 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 2151 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 2152 | </ConstantTimer> |
| 2153 | <hashTree/> |
| 2154 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 2155 | <intProp name="OnError.action">1</intProp> |
| 2156 | </ResultAction> |
| 2157 | <hashTree/> |
| 2158 | </hashTree> |
| 2159 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Checkin VSP" enabled="true"> |
| 2160 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 2161 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 2162 | <collectionProp name="Arguments.arguments"> |
| 2163 | <elementProp name="" elementType="HTTPArgument"> |
| 2164 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 2165 | <stringProp name="Argument.value">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/Action_Checkin.txt)})}</stringProp> |
| 2166 | <stringProp name="Argument.metadata">=</stringProp> |
| 2167 | </elementProp> |
| 2168 | </collectionProp> |
| 2169 | </elementProp> |
| 2170 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 2171 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 2172 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 2173 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 2174 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 2175 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 2176 | <stringProp name="HTTPSampler.path">${__P(ASDC_VSP)}/${__P(VSP_P)}/actions</stringProp> |
| 2177 | <stringProp name="HTTPSampler.method">PUT</stringProp> |
| 2178 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 2179 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 2180 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 2181 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 2182 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 2183 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 2184 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 2185 | </HTTPSamplerProxy> |
| 2186 | <hashTree> |
| 2187 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 2188 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 2189 | <objProp> |
| 2190 | <name>saveConfig</name> |
| 2191 | <value class="SampleSaveConfiguration"> |
| 2192 | <time>true</time> |
| 2193 | <latency>true</latency> |
| 2194 | <timestamp>true</timestamp> |
| 2195 | <success>true</success> |
| 2196 | <label>true</label> |
| 2197 | <code>true</code> |
| 2198 | <message>true</message> |
| 2199 | <threadName>true</threadName> |
| 2200 | <dataType>true</dataType> |
| 2201 | <encoding>false</encoding> |
| 2202 | <assertions>true</assertions> |
| 2203 | <subresults>true</subresults> |
| 2204 | <responseData>false</responseData> |
| 2205 | <samplerData>false</samplerData> |
| 2206 | <xml>false</xml> |
| 2207 | <fieldNames>false</fieldNames> |
| 2208 | <responseHeaders>false</responseHeaders> |
| 2209 | <requestHeaders>false</requestHeaders> |
| 2210 | <responseDataOnError>false</responseDataOnError> |
| 2211 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 2212 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 2213 | <bytes>true</bytes> |
| 2214 | <threadCounts>true</threadCounts> |
| 2215 | </value> |
| 2216 | </objProp> |
| 2217 | <stringProp name="filename"></stringProp> |
| 2218 | </ResultCollector> |
| 2219 | <hashTree/> |
| 2220 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 2221 | <boolProp name="resetInterpreter">false</boolProp> |
| 2222 | <stringProp name="parameters"></stringProp> |
| 2223 | <stringProp name="filename"></stringProp> |
| 2224 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 2225 | String ResponseCode = prev.getResponseCode(); |
| 2226 | String ResponseMessage = prev.getResponseMessage(); |
| 2227 | |
| 2228 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 2229 | f = new FileOutputStream(test_tmp_folder, true); |
| 2230 | p = new PrintStream(f); |
| 2231 | |
| 2232 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 2233 | |
| 2234 | p.println("\n#######################"+" Checkin VSP "+"#######################"); |
| 2235 | |
| 2236 | if (ResponseCode.contains("200")) |
| 2237 | { |
| 2238 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 2239 | p.println("Response Code : " + ResponseCode); |
| 2240 | p.println("Response Message : " + ResponseMessage); |
| 2241 | p.println("Response String : " + ResponseString); |
| 2242 | } |
| 2243 | else |
| 2244 | { |
| 2245 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 2246 | p.println("Response Code : " + ResponseCode); |
| 2247 | p.println("Response Message : " + ResponseMessage); |
| 2248 | p.println("Response String : " + ResponseString); |
| 2249 | } |
| 2250 | |
| 2251 | p.println("############################################################################\n"); |
| 2252 | |
| 2253 | p.close();f.close();</stringProp> |
| 2254 | </BeanShellPostProcessor> |
| 2255 | <hashTree/> |
| 2256 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 2257 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 2258 | </ConstantTimer> |
| 2259 | <hashTree/> |
| 2260 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 2261 | <intProp name="OnError.action">1</intProp> |
| 2262 | </ResultAction> |
| 2263 | <hashTree/> |
| 2264 | </hashTree> |
| 2265 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Submit VSP" enabled="true"> |
| 2266 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 2267 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 2268 | <collectionProp name="Arguments.arguments"> |
| 2269 | <elementProp name="" elementType="HTTPArgument"> |
| 2270 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 2271 | <stringProp name="Argument.value">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/Action_Submit.txt)})}</stringProp> |
| 2272 | <stringProp name="Argument.metadata">=</stringProp> |
| 2273 | </elementProp> |
| 2274 | </collectionProp> |
| 2275 | </elementProp> |
| 2276 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 2277 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 2278 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 2279 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 2280 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 2281 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 2282 | <stringProp name="HTTPSampler.path">${__P(ASDC_VSP)}/${__P(VSP_P)}/actions</stringProp> |
| 2283 | <stringProp name="HTTPSampler.method">PUT</stringProp> |
| 2284 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 2285 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 2286 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 2287 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 2288 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 2289 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 2290 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 2291 | </HTTPSamplerProxy> |
| 2292 | <hashTree> |
| 2293 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 2294 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 2295 | <objProp> |
| 2296 | <name>saveConfig</name> |
| 2297 | <value class="SampleSaveConfiguration"> |
| 2298 | <time>true</time> |
| 2299 | <latency>true</latency> |
| 2300 | <timestamp>true</timestamp> |
| 2301 | <success>true</success> |
| 2302 | <label>true</label> |
| 2303 | <code>true</code> |
| 2304 | <message>true</message> |
| 2305 | <threadName>true</threadName> |
| 2306 | <dataType>true</dataType> |
| 2307 | <encoding>false</encoding> |
| 2308 | <assertions>true</assertions> |
| 2309 | <subresults>true</subresults> |
| 2310 | <responseData>false</responseData> |
| 2311 | <samplerData>false</samplerData> |
| 2312 | <xml>false</xml> |
| 2313 | <fieldNames>false</fieldNames> |
| 2314 | <responseHeaders>false</responseHeaders> |
| 2315 | <requestHeaders>false</requestHeaders> |
| 2316 | <responseDataOnError>false</responseDataOnError> |
| 2317 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 2318 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 2319 | <bytes>true</bytes> |
| 2320 | <threadCounts>true</threadCounts> |
| 2321 | </value> |
| 2322 | </objProp> |
| 2323 | <stringProp name="filename"></stringProp> |
| 2324 | </ResultCollector> |
| 2325 | <hashTree/> |
| 2326 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 2327 | <boolProp name="resetInterpreter">false</boolProp> |
| 2328 | <stringProp name="parameters"></stringProp> |
| 2329 | <stringProp name="filename"></stringProp> |
| 2330 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 2331 | String ResponseCode = prev.getResponseCode(); |
| 2332 | String ResponseMessage = prev.getResponseMessage(); |
| 2333 | |
| 2334 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 2335 | f = new FileOutputStream(test_tmp_folder, true); |
| 2336 | p = new PrintStream(f); |
| 2337 | |
| 2338 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 2339 | |
| 2340 | p.println("\n#######################"+" Submit VSP "+"#######################"); |
| 2341 | |
| 2342 | if (!ResponseCode.contains("200")) |
| 2343 | { |
| 2344 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 2345 | p.println("Response Code : " + ResponseCode); |
| 2346 | p.println("Response Message : " + ResponseMessage); |
| 2347 | p.println("Response String : " + ResponseString); |
| 2348 | } |
| 2349 | else |
| 2350 | { |
| 2351 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 2352 | p.println("Response Code : " + ResponseCode); |
| 2353 | p.println("Response Message : " + ResponseMessage); |
| 2354 | p.println("Response String : " + ResponseString); |
| 2355 | } |
| 2356 | |
| 2357 | p.println("############################################################################\n"); |
| 2358 | |
| 2359 | p.close();f.close();</stringProp> |
| 2360 | </BeanShellPostProcessor> |
| 2361 | <hashTree/> |
| 2362 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 2363 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 2364 | </ConstantTimer> |
| 2365 | <hashTree/> |
| 2366 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 2367 | <intProp name="OnError.action">0</intProp> |
| 2368 | </ResultAction> |
| 2369 | <hashTree/> |
| 2370 | </hashTree> |
| 2371 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Translate ZIP file" enabled="false"> |
| 2372 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 2373 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 2374 | <collectionProp name="Arguments.arguments"> |
| 2375 | <elementProp name="" elementType="HTTPArgument"> |
| 2376 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 2377 | <stringProp name="Argument.value">${__eval(${__FileToString(/qa-test-repo/TestsProperties/ASDC/Action_CreatePackage.txt)})}</stringProp> |
| 2378 | <stringProp name="Argument.metadata">=</stringProp> |
| 2379 | </elementProp> |
| 2380 | </collectionProp> |
| 2381 | </elementProp> |
| 2382 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 2383 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 2384 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 2385 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 2386 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 2387 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 2388 | <stringProp name="HTTPSampler.path">${__P(ASDC_VSP)}/${__P(VSP_P)}/actions</stringProp> |
| 2389 | <stringProp name="HTTPSampler.method">PUT</stringProp> |
| 2390 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 2391 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 2392 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 2393 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 2394 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 2395 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 2396 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 2397 | </HTTPSamplerProxy> |
| 2398 | <hashTree> |
| 2399 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 2400 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 2401 | <objProp> |
| 2402 | <name>saveConfig</name> |
| 2403 | <value class="SampleSaveConfiguration"> |
| 2404 | <time>true</time> |
| 2405 | <latency>true</latency> |
| 2406 | <timestamp>true</timestamp> |
| 2407 | <success>true</success> |
| 2408 | <label>true</label> |
| 2409 | <code>true</code> |
| 2410 | <message>true</message> |
| 2411 | <threadName>true</threadName> |
| 2412 | <dataType>true</dataType> |
| 2413 | <encoding>false</encoding> |
| 2414 | <assertions>true</assertions> |
| 2415 | <subresults>true</subresults> |
| 2416 | <responseData>false</responseData> |
| 2417 | <samplerData>false</samplerData> |
| 2418 | <xml>false</xml> |
| 2419 | <fieldNames>false</fieldNames> |
| 2420 | <responseHeaders>false</responseHeaders> |
| 2421 | <requestHeaders>false</requestHeaders> |
| 2422 | <responseDataOnError>false</responseDataOnError> |
| 2423 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 2424 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 2425 | <bytes>true</bytes> |
| 2426 | <threadCounts>true</threadCounts> |
| 2427 | </value> |
| 2428 | </objProp> |
| 2429 | <stringProp name="filename"></stringProp> |
| 2430 | </ResultCollector> |
| 2431 | <hashTree/> |
| 2432 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Get packageId from Response" enabled="false"> |
| 2433 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 2434 | <stringProp name="RegexExtractor.refname">packageId</stringProp> |
| 2435 | <stringProp name="RegexExtractor.regex">"packageId":"(.+?)"</stringProp> |
| 2436 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 2437 | <stringProp name="RegexExtractor.default">0</stringProp> |
| 2438 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 2439 | <stringProp name="Scope.variable"></stringProp> |
| 2440 | </RegexExtractor> |
| 2441 | <hashTree/> |
| 2442 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 2443 | <boolProp name="resetInterpreter">false</boolProp> |
| 2444 | <stringProp name="parameters"></stringProp> |
| 2445 | <stringProp name="filename"></stringProp> |
| 2446 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 2447 | String ResponseCode = prev.getResponseCode(); |
| 2448 | String ResponseMessage = prev.getResponseMessage(); |
| 2449 | |
| 2450 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 2451 | f = new FileOutputStream(test_tmp_folder, true); |
| 2452 | p = new PrintStream(f); |
| 2453 | |
| 2454 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 2455 | |
| 2456 | p.println("\n#######################"+" ${__samplerName} "+"#######################"); |
| 2457 | |
| 2458 | if (ResponseCode.contains("200")) |
| 2459 | { |
| 2460 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 2461 | p.println("Response Code : " + ResponseCode); |
| 2462 | p.println("Response Message : " + ResponseMessage); |
| 2463 | p.println("Response String : " + ResponseString); |
| 2464 | } |
| 2465 | else |
| 2466 | { |
| 2467 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 2468 | p.println("Response Code : " + ResponseCode); |
| 2469 | p.println("Response Message : " + ResponseMessage); |
| 2470 | p.println("Response String : " + ResponseString); |
| 2471 | } |
| 2472 | |
| 2473 | p.println("############################################################################\n"); |
| 2474 | |
| 2475 | p.close();f.close();</stringProp> |
| 2476 | </BeanShellPostProcessor> |
| 2477 | <hashTree/> |
| 2478 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 2479 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 2480 | </ConstantTimer> |
| 2481 | <hashTree/> |
| 2482 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 2483 | <intProp name="OnError.action">1</intProp> |
| 2484 | </ResultAction> |
| 2485 | <hashTree/> |
| 2486 | </hashTree> |
| 2487 | </hashTree> |
| 2488 | <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Create rmp DIR to download" enabled="false"> |
| 2489 | <boolProp name="SystemSampler.checkReturnCode">false</boolProp> |
| 2490 | <stringProp name="SystemSampler.expectedReturnCode">0</stringProp> |
| 2491 | <stringProp name="SystemSampler.command">mkdir</stringProp> |
| 2492 | <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2493 | <collectionProp name="Arguments.arguments"> |
| 2494 | <elementProp name="" elementType="Argument"> |
| 2495 | <stringProp name="Argument.name"></stringProp> |
| 2496 | <stringProp name="Argument.value">-p</stringProp> |
| 2497 | <stringProp name="Argument.metadata">=</stringProp> |
| 2498 | </elementProp> |
| 2499 | <elementProp name="" elementType="Argument"> |
| 2500 | <stringProp name="Argument.name"></stringProp> |
| 2501 | <stringProp name="Argument.value">/tmp/${__TestPlanName}_${__P(VSP_P)}</stringProp> |
| 2502 | <stringProp name="Argument.metadata">=</stringProp> |
| 2503 | </elementProp> |
| 2504 | </collectionProp> |
| 2505 | </elementProp> |
| 2506 | <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2507 | <collectionProp name="Arguments.arguments"/> |
| 2508 | </elementProp> |
| 2509 | <stringProp name="SystemSampler.directory"></stringProp> |
| 2510 | </SystemSampler> |
| 2511 | <hashTree> |
| 2512 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 2513 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 2514 | <objProp> |
| 2515 | <name>saveConfig</name> |
| 2516 | <value class="SampleSaveConfiguration"> |
| 2517 | <time>true</time> |
| 2518 | <latency>true</latency> |
| 2519 | <timestamp>true</timestamp> |
| 2520 | <success>true</success> |
| 2521 | <label>true</label> |
| 2522 | <code>true</code> |
| 2523 | <message>true</message> |
| 2524 | <threadName>true</threadName> |
| 2525 | <dataType>true</dataType> |
| 2526 | <encoding>true</encoding> |
| 2527 | <assertions>true</assertions> |
| 2528 | <subresults>true</subresults> |
| 2529 | <responseData>true</responseData> |
| 2530 | <samplerData>true</samplerData> |
| 2531 | <xml>false</xml> |
| 2532 | <fieldNames>true</fieldNames> |
| 2533 | <responseHeaders>true</responseHeaders> |
| 2534 | <requestHeaders>true</requestHeaders> |
| 2535 | <responseDataOnError>false</responseDataOnError> |
| 2536 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 2537 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 2538 | <bytes>true</bytes> |
| 2539 | <url>true</url> |
| 2540 | <fileName>true</fileName> |
| 2541 | <hostname>true</hostname> |
| 2542 | <threadCounts>true</threadCounts> |
| 2543 | <sampleCount>true</sampleCount> |
| 2544 | <idleTime>true</idleTime> |
| 2545 | </value> |
| 2546 | </objProp> |
| 2547 | <stringProp name="filename"></stringProp> |
| 2548 | </ResultCollector> |
| 2549 | <hashTree/> |
| 2550 | </hashTree> |
| 2551 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Download Package" enabled="false"> |
| 2552 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 2553 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 2554 | <collectionProp name="Arguments.arguments"> |
| 2555 | <elementProp name="" elementType="HTTPArgument"> |
| 2556 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 2557 | <stringProp name="Argument.value"></stringProp> |
| 2558 | <stringProp name="Argument.metadata">=</stringProp> |
| 2559 | </elementProp> |
| 2560 | </collectionProp> |
| 2561 | </elementProp> |
| 2562 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 2563 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 2564 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 2565 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 2566 | <stringProp name="HTTPSampler.protocol">${protocol}</stringProp> |
| 2567 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 2568 | <stringProp name="HTTPSampler.path">${__P(ASDC_VSP)}/${__P(PKG)}/${__P(VSP_P)}</stringProp> |
| 2569 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 2570 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 2571 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 2572 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 2573 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 2574 | <stringProp name="HTTPSampler.implementation">HttpClient3.1</stringProp> |
| 2575 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 2576 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 2577 | </HTTPSamplerProxy> |
| 2578 | <hashTree> |
| 2579 | <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager Main" enabled="true"> |
| 2580 | <collectionProp name="HeaderManager.headers"> |
| 2581 | <elementProp name="" elementType="Header"> |
| 2582 | <stringProp name="Header.name">HTTP_CSP_ATTUID</stringProp> |
| 2583 | <stringProp name="Header.value">${HTTP_CSP_ATTUID}</stringProp> |
| 2584 | </elementProp> |
| 2585 | <elementProp name="" elementType="Header"> |
| 2586 | <stringProp name="Header.name">Accept</stringProp> |
| 2587 | <stringProp name="Header.value">application/octet-stream</stringProp> |
| 2588 | </elementProp> |
| 2589 | </collectionProp> |
| 2590 | <stringProp name="TestPlan.comments">Accept - application/octet-stream</stringProp> |
| 2591 | </HeaderManager> |
| 2592 | <hashTree/> |
| 2593 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 2594 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 2595 | <objProp> |
| 2596 | <name>saveConfig</name> |
| 2597 | <value class="SampleSaveConfiguration"> |
| 2598 | <time>true</time> |
| 2599 | <latency>true</latency> |
| 2600 | <timestamp>true</timestamp> |
| 2601 | <success>true</success> |
| 2602 | <label>true</label> |
| 2603 | <code>true</code> |
| 2604 | <message>true</message> |
| 2605 | <threadName>true</threadName> |
| 2606 | <dataType>true</dataType> |
| 2607 | <encoding>false</encoding> |
| 2608 | <assertions>true</assertions> |
| 2609 | <subresults>true</subresults> |
| 2610 | <responseData>false</responseData> |
| 2611 | <samplerData>false</samplerData> |
| 2612 | <xml>false</xml> |
| 2613 | <fieldNames>false</fieldNames> |
| 2614 | <responseHeaders>false</responseHeaders> |
| 2615 | <requestHeaders>false</requestHeaders> |
| 2616 | <responseDataOnError>false</responseDataOnError> |
| 2617 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 2618 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 2619 | <bytes>true</bytes> |
| 2620 | <threadCounts>true</threadCounts> |
| 2621 | </value> |
| 2622 | </objProp> |
| 2623 | <stringProp name="filename"></stringProp> |
| 2624 | </ResultCollector> |
| 2625 | <hashTree/> |
| 2626 | <ResultSaver guiclass="ResultSaverGui" testclass="ResultSaver" testname="Save Responses to a file" enabled="true"> |
| 2627 | <stringProp name="FileSaver.filename">/tmp/${__TestPlanName}_${__P(VSP_P)}/${__P(VSP_P)}.zip</stringProp> |
| 2628 | <boolProp name="FileSaver.errorsonly">false</boolProp> |
| 2629 | <boolProp name="FileSaver.skipautonumber">true</boolProp> |
| 2630 | <boolProp name="FileSaver.skipsuffix">true</boolProp> |
| 2631 | <boolProp name="FileSaver.successonly">true</boolProp> |
| 2632 | </ResultSaver> |
| 2633 | <hashTree/> |
| 2634 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 2635 | <boolProp name="resetInterpreter">false</boolProp> |
| 2636 | <stringProp name="parameters"></stringProp> |
| 2637 | <stringProp name="filename"></stringProp> |
| 2638 | <stringProp name="script">//String ResponseString = prev.getResponseDataAsString(); |
| 2639 | String ResponseCode = prev.getResponseCode(); |
| 2640 | String ResponseMessage = prev.getResponseMessage(); |
| 2641 | |
| 2642 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 2643 | f = new FileOutputStream(test_tmp_folder, true); |
| 2644 | p = new PrintStream(f); |
| 2645 | |
| 2646 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 2647 | |
| 2648 | p.println("\n#######################"+" Download Package "+"#######################"); |
| 2649 | |
| 2650 | if (ResponseCode.contains("200")) |
| 2651 | { |
| 2652 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 2653 | p.println("Response Code : " + ResponseCode); |
| 2654 | p.println("Response Message : " + ResponseMessage); |
| 2655 | //p.println("Response String : " + ResponseString); |
| 2656 | } |
| 2657 | else |
| 2658 | { |
| 2659 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 2660 | p.println("Response Code : " + ResponseCode); |
| 2661 | p.println("Response Message : " + ResponseMessage); |
| 2662 | //p.println("Response String : " + ResponseString); |
| 2663 | } |
| 2664 | |
| 2665 | p.println("############################################################################\n"); |
| 2666 | |
| 2667 | p.close();f.close();</stringProp> |
| 2668 | </BeanShellPostProcessor> |
| 2669 | <hashTree/> |
| 2670 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 2671 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 2672 | </ConstantTimer> |
| 2673 | <hashTree/> |
| 2674 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 2675 | <intProp name="OnError.action">1</intProp> |
| 2676 | </ResultAction> |
| 2677 | <hashTree/> |
| 2678 | </hashTree> |
| 2679 | <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Unzip the package" enabled="false"> |
| 2680 | <boolProp name="SystemSampler.checkReturnCode">false</boolProp> |
| 2681 | <stringProp name="SystemSampler.expectedReturnCode">0</stringProp> |
| 2682 | <stringProp name="SystemSampler.command">unzip</stringProp> |
| 2683 | <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2684 | <collectionProp name="Arguments.arguments"> |
| 2685 | <elementProp name="" elementType="Argument"> |
| 2686 | <stringProp name="Argument.name"></stringProp> |
| 2687 | <stringProp name="Argument.value">*</stringProp> |
| 2688 | <stringProp name="Argument.metadata">=</stringProp> |
| 2689 | </elementProp> |
| 2690 | </collectionProp> |
| 2691 | </elementProp> |
| 2692 | <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2693 | <collectionProp name="Arguments.arguments"/> |
| 2694 | </elementProp> |
| 2695 | <stringProp name="SystemSampler.directory">/tmp/${__TestPlanName}_${__P(VSP_P)}/</stringProp> |
| 2696 | </SystemSampler> |
| 2697 | <hashTree> |
| 2698 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 2699 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 2700 | <objProp> |
| 2701 | <name>saveConfig</name> |
| 2702 | <value class="SampleSaveConfiguration"> |
| 2703 | <time>true</time> |
| 2704 | <latency>true</latency> |
| 2705 | <timestamp>true</timestamp> |
| 2706 | <success>true</success> |
| 2707 | <label>true</label> |
| 2708 | <code>true</code> |
| 2709 | <message>true</message> |
| 2710 | <threadName>true</threadName> |
| 2711 | <dataType>true</dataType> |
| 2712 | <encoding>true</encoding> |
| 2713 | <assertions>true</assertions> |
| 2714 | <subresults>true</subresults> |
| 2715 | <responseData>true</responseData> |
| 2716 | <samplerData>true</samplerData> |
| 2717 | <xml>false</xml> |
| 2718 | <fieldNames>true</fieldNames> |
| 2719 | <responseHeaders>true</responseHeaders> |
| 2720 | <requestHeaders>true</requestHeaders> |
| 2721 | <responseDataOnError>false</responseDataOnError> |
| 2722 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 2723 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 2724 | <bytes>true</bytes> |
| 2725 | <url>true</url> |
| 2726 | <fileName>true</fileName> |
| 2727 | <hostname>true</hostname> |
| 2728 | <threadCounts>true</threadCounts> |
| 2729 | <sampleCount>true</sampleCount> |
| 2730 | <idleTime>true</idleTime> |
| 2731 | </value> |
| 2732 | </objProp> |
| 2733 | <stringProp name="filename"></stringProp> |
| 2734 | </ResultCollector> |
| 2735 | <hashTree/> |
| 2736 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 2737 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 2738 | </ConstantTimer> |
| 2739 | <hashTree/> |
| 2740 | </hashTree> |
| 2741 | <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Remove ZIP file from directory" enabled="false"> |
| 2742 | <boolProp name="SystemSampler.checkReturnCode">false</boolProp> |
| 2743 | <stringProp name="SystemSampler.expectedReturnCode">0</stringProp> |
| 2744 | <stringProp name="SystemSampler.command">rm</stringProp> |
| 2745 | <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2746 | <collectionProp name="Arguments.arguments"> |
| 2747 | <elementProp name="" elementType="Argument"> |
| 2748 | <stringProp name="Argument.name"></stringProp> |
| 2749 | <stringProp name="Argument.value">-rf</stringProp> |
| 2750 | <stringProp name="Argument.metadata">=</stringProp> |
| 2751 | </elementProp> |
| 2752 | <elementProp name="" elementType="Argument"> |
| 2753 | <stringProp name="Argument.name"></stringProp> |
| 2754 | <stringProp name="Argument.value">${__P(VSP_P)}.zip</stringProp> |
| 2755 | <stringProp name="Argument.metadata">=</stringProp> |
| 2756 | </elementProp> |
| 2757 | </collectionProp> |
| 2758 | </elementProp> |
| 2759 | <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2760 | <collectionProp name="Arguments.arguments"/> |
| 2761 | </elementProp> |
| 2762 | <stringProp name="SystemSampler.directory">/tmp/${__TestPlanName}_${__P(VSP_P)}/</stringProp> |
| 2763 | </SystemSampler> |
| 2764 | <hashTree> |
| 2765 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 2766 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 2767 | <objProp> |
| 2768 | <name>saveConfig</name> |
| 2769 | <value class="SampleSaveConfiguration"> |
| 2770 | <time>true</time> |
| 2771 | <latency>true</latency> |
| 2772 | <timestamp>true</timestamp> |
| 2773 | <success>true</success> |
| 2774 | <label>true</label> |
| 2775 | <code>true</code> |
| 2776 | <message>true</message> |
| 2777 | <threadName>true</threadName> |
| 2778 | <dataType>true</dataType> |
| 2779 | <encoding>true</encoding> |
| 2780 | <assertions>true</assertions> |
| 2781 | <subresults>true</subresults> |
| 2782 | <responseData>true</responseData> |
| 2783 | <samplerData>true</samplerData> |
| 2784 | <xml>false</xml> |
| 2785 | <fieldNames>true</fieldNames> |
| 2786 | <responseHeaders>true</responseHeaders> |
| 2787 | <requestHeaders>true</requestHeaders> |
| 2788 | <responseDataOnError>false</responseDataOnError> |
| 2789 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 2790 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 2791 | <bytes>true</bytes> |
| 2792 | <url>true</url> |
| 2793 | <fileName>true</fileName> |
| 2794 | <hostname>true</hostname> |
| 2795 | <threadCounts>true</threadCounts> |
| 2796 | <sampleCount>true</sampleCount> |
| 2797 | <idleTime>true</idleTime> |
| 2798 | </value> |
| 2799 | </objProp> |
| 2800 | <stringProp name="filename"></stringProp> |
| 2801 | </ResultCollector> |
| 2802 | <hashTree/> |
| 2803 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 2804 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 2805 | </ConstantTimer> |
| 2806 | <hashTree/> |
| 2807 | </hashTree> |
| 2808 | <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="dos2unix template" enabled="false"> |
| 2809 | <boolProp name="SystemSampler.checkReturnCode">false</boolProp> |
| 2810 | <stringProp name="SystemSampler.expectedReturnCode">0</stringProp> |
| 2811 | <stringProp name="SystemSampler.command">bash</stringProp> |
| 2812 | <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2813 | <collectionProp name="Arguments.arguments"> |
| 2814 | <elementProp name="" elementType="Argument"> |
| 2815 | <stringProp name="Argument.name"></stringProp> |
| 2816 | <stringProp name="Argument.value">dos2unixCall.sh</stringProp> |
| 2817 | <stringProp name="Argument.metadata">=</stringProp> |
| 2818 | </elementProp> |
| 2819 | <elementProp name="" elementType="Argument"> |
| 2820 | <stringProp name="Argument.name"></stringProp> |
| 2821 | <stringProp name="Argument.value">/qa-test-repo/TestsProperties/HEATFiles/SimpleHEATtoTOSCA</stringProp> |
| 2822 | <stringProp name="Argument.metadata">=</stringProp> |
| 2823 | </elementProp> |
| 2824 | </collectionProp> |
| 2825 | </elementProp> |
| 2826 | <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2827 | <collectionProp name="Arguments.arguments"/> |
| 2828 | </elementProp> |
| 2829 | <stringProp name="SystemSampler.directory">/qa-test-repo/scripts/ASDC/</stringProp> |
| 2830 | </SystemSampler> |
| 2831 | <hashTree> |
| 2832 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 2833 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 2834 | <objProp> |
| 2835 | <name>saveConfig</name> |
| 2836 | <value class="SampleSaveConfiguration"> |
| 2837 | <time>true</time> |
| 2838 | <latency>true</latency> |
| 2839 | <timestamp>true</timestamp> |
| 2840 | <success>true</success> |
| 2841 | <label>true</label> |
| 2842 | <code>true</code> |
| 2843 | <message>true</message> |
| 2844 | <threadName>true</threadName> |
| 2845 | <dataType>true</dataType> |
| 2846 | <encoding>true</encoding> |
| 2847 | <assertions>true</assertions> |
| 2848 | <subresults>true</subresults> |
| 2849 | <responseData>true</responseData> |
| 2850 | <samplerData>true</samplerData> |
| 2851 | <xml>false</xml> |
| 2852 | <fieldNames>true</fieldNames> |
| 2853 | <responseHeaders>true</responseHeaders> |
| 2854 | <requestHeaders>true</requestHeaders> |
| 2855 | <responseDataOnError>false</responseDataOnError> |
| 2856 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 2857 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 2858 | <bytes>true</bytes> |
| 2859 | <url>true</url> |
| 2860 | <fileName>true</fileName> |
| 2861 | <hostname>true</hostname> |
| 2862 | <threadCounts>true</threadCounts> |
| 2863 | <sampleCount>true</sampleCount> |
| 2864 | <idleTime>true</idleTime> |
| 2865 | </value> |
| 2866 | </objProp> |
| 2867 | <stringProp name="filename"></stringProp> |
| 2868 | </ResultCollector> |
| 2869 | <hashTree/> |
| 2870 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 2871 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 2872 | </ConstantTimer> |
| 2873 | <hashTree/> |
| 2874 | </hashTree> |
| 2875 | <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="dos2unix new" enabled="false"> |
| 2876 | <boolProp name="SystemSampler.checkReturnCode">false</boolProp> |
| 2877 | <stringProp name="SystemSampler.expectedReturnCode">0</stringProp> |
| 2878 | <stringProp name="SystemSampler.command">bash</stringProp> |
| 2879 | <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2880 | <collectionProp name="Arguments.arguments"> |
| 2881 | <elementProp name="" elementType="Argument"> |
| 2882 | <stringProp name="Argument.name"></stringProp> |
| 2883 | <stringProp name="Argument.value">dos2unixCall.sh</stringProp> |
| 2884 | <stringProp name="Argument.metadata">=</stringProp> |
| 2885 | </elementProp> |
| 2886 | <elementProp name="" elementType="Argument"> |
| 2887 | <stringProp name="Argument.name"></stringProp> |
| 2888 | <stringProp name="Argument.value">${__eval(/tmp/${__TestPlanName}_${__P(VSP_P)})}</stringProp> |
| 2889 | <stringProp name="Argument.metadata">=</stringProp> |
| 2890 | </elementProp> |
| 2891 | </collectionProp> |
| 2892 | </elementProp> |
| 2893 | <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2894 | <collectionProp name="Arguments.arguments"/> |
| 2895 | </elementProp> |
| 2896 | <stringProp name="SystemSampler.directory">/qa-test-repo/scripts/ASDC/</stringProp> |
| 2897 | </SystemSampler> |
| 2898 | <hashTree> |
| 2899 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 2900 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 2901 | <objProp> |
| 2902 | <name>saveConfig</name> |
| 2903 | <value class="SampleSaveConfiguration"> |
| 2904 | <time>true</time> |
| 2905 | <latency>true</latency> |
| 2906 | <timestamp>true</timestamp> |
| 2907 | <success>true</success> |
| 2908 | <label>true</label> |
| 2909 | <code>true</code> |
| 2910 | <message>true</message> |
| 2911 | <threadName>true</threadName> |
| 2912 | <dataType>true</dataType> |
| 2913 | <encoding>true</encoding> |
| 2914 | <assertions>true</assertions> |
| 2915 | <subresults>true</subresults> |
| 2916 | <responseData>true</responseData> |
| 2917 | <samplerData>true</samplerData> |
| 2918 | <xml>false</xml> |
| 2919 | <fieldNames>true</fieldNames> |
| 2920 | <responseHeaders>true</responseHeaders> |
| 2921 | <requestHeaders>true</requestHeaders> |
| 2922 | <responseDataOnError>false</responseDataOnError> |
| 2923 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 2924 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 2925 | <bytes>true</bytes> |
| 2926 | <url>true</url> |
| 2927 | <fileName>true</fileName> |
| 2928 | <hostname>true</hostname> |
| 2929 | <threadCounts>true</threadCounts> |
| 2930 | <sampleCount>true</sampleCount> |
| 2931 | <idleTime>true</idleTime> |
| 2932 | </value> |
| 2933 | </objProp> |
| 2934 | <stringProp name="filename"></stringProp> |
| 2935 | </ResultCollector> |
| 2936 | <hashTree/> |
| 2937 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 2938 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 2939 | </ConstantTimer> |
| 2940 | <hashTree/> |
| 2941 | </hashTree> |
| 2942 | <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Diff template to test" enabled="false"> |
| 2943 | <boolProp name="SystemSampler.checkReturnCode">false</boolProp> |
| 2944 | <stringProp name="SystemSampler.expectedReturnCode">0</stringProp> |
| 2945 | <stringProp name="SystemSampler.command">diff</stringProp> |
| 2946 | <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2947 | <collectionProp name="Arguments.arguments"> |
| 2948 | <elementProp name="" elementType="Argument"> |
| 2949 | <stringProp name="Argument.name"></stringProp> |
| 2950 | <stringProp name="Argument.value">-x</stringProp> |
| 2951 | <stringProp name="Argument.metadata">=</stringProp> |
| 2952 | </elementProp> |
| 2953 | <elementProp name="" elementType="Argument"> |
| 2954 | <stringProp name="Argument.name"></stringProp> |
| 2955 | <stringProp name="Argument.value">*example.xml</stringProp> |
| 2956 | <stringProp name="Argument.metadata">=</stringProp> |
| 2957 | </elementProp> |
| 2958 | <elementProp name="" elementType="Argument"> |
| 2959 | <stringProp name="Argument.name"></stringProp> |
| 2960 | <stringProp name="Argument.value">-r</stringProp> |
| 2961 | <stringProp name="Argument.metadata">=</stringProp> |
| 2962 | </elementProp> |
| 2963 | <elementProp name="" elementType="Argument"> |
| 2964 | <stringProp name="Argument.name"></stringProp> |
| 2965 | <stringProp name="Argument.value">/qa-test-repo/TestsProperties/HEATFiles/SimpleHEATtoTOSCA</stringProp> |
| 2966 | <stringProp name="Argument.metadata">=</stringProp> |
| 2967 | </elementProp> |
| 2968 | <elementProp name="" elementType="Argument"> |
| 2969 | <stringProp name="Argument.name"></stringProp> |
| 2970 | <stringProp name="Argument.value">/tmp/${__TestPlanName}_${__P(VSP_P)}</stringProp> |
| 2971 | <stringProp name="Argument.metadata">=</stringProp> |
| 2972 | </elementProp> |
| 2973 | </collectionProp> |
| 2974 | </elementProp> |
| 2975 | <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 2976 | <collectionProp name="Arguments.arguments"/> |
| 2977 | </elementProp> |
| 2978 | <stringProp name="SystemSampler.directory"></stringProp> |
| 2979 | <stringProp name="TestPlan.comments">-x *example.xml</stringProp> |
| 2980 | </SystemSampler> |
| 2981 | <hashTree> |
| 2982 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 2983 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 2984 | <objProp> |
| 2985 | <name>saveConfig</name> |
| 2986 | <value class="SampleSaveConfiguration"> |
| 2987 | <time>true</time> |
| 2988 | <latency>true</latency> |
| 2989 | <timestamp>true</timestamp> |
| 2990 | <success>true</success> |
| 2991 | <label>true</label> |
| 2992 | <code>true</code> |
| 2993 | <message>true</message> |
| 2994 | <threadName>true</threadName> |
| 2995 | <dataType>true</dataType> |
| 2996 | <encoding>true</encoding> |
| 2997 | <assertions>true</assertions> |
| 2998 | <subresults>true</subresults> |
| 2999 | <responseData>true</responseData> |
| 3000 | <samplerData>true</samplerData> |
| 3001 | <xml>false</xml> |
| 3002 | <fieldNames>true</fieldNames> |
| 3003 | <responseHeaders>true</responseHeaders> |
| 3004 | <requestHeaders>true</requestHeaders> |
| 3005 | <responseDataOnError>false</responseDataOnError> |
| 3006 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 3007 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 3008 | <bytes>true</bytes> |
| 3009 | <url>true</url> |
| 3010 | <fileName>true</fileName> |
| 3011 | <hostname>true</hostname> |
| 3012 | <threadCounts>true</threadCounts> |
| 3013 | <sampleCount>true</sampleCount> |
| 3014 | <idleTime>true</idleTime> |
| 3015 | </value> |
| 3016 | </objProp> |
| 3017 | <stringProp name="filename"></stringProp> |
| 3018 | </ResultCollector> |
| 3019 | <hashTree/> |
| 3020 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="BeanShell PostProcessor" enabled="true"> |
| 3021 | <boolProp name="resetInterpreter">false</boolProp> |
| 3022 | <stringProp name="parameters"></stringProp> |
| 3023 | <stringProp name="filename"></stringProp> |
| 3024 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 3025 | |
| 3026 | props.put("diffOutput",ResponseString); |
| 3027 | |
| 3028 | </stringProp> |
| 3029 | </BeanShellPostProcessor> |
| 3030 | <hashTree/> |
| 3031 | </hashTree> |
| 3032 | <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Read Template TOSCA" enabled="false"> |
| 3033 | <boolProp name="SystemSampler.checkReturnCode">false</boolProp> |
| 3034 | <stringProp name="SystemSampler.expectedReturnCode">0</stringProp> |
| 3035 | <stringProp name="SystemSampler.command">cat</stringProp> |
| 3036 | <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 3037 | <collectionProp name="Arguments.arguments"> |
| 3038 | <elementProp name="" elementType="Argument"> |
| 3039 | <stringProp name="Argument.name"></stringProp> |
| 3040 | <stringProp name="Argument.value">MainServiceTemplate.yaml</stringProp> |
| 3041 | <stringProp name="Argument.metadata">=</stringProp> |
| 3042 | </elementProp> |
| 3043 | </collectionProp> |
| 3044 | </elementProp> |
| 3045 | <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 3046 | <collectionProp name="Arguments.arguments"/> |
| 3047 | </elementProp> |
| 3048 | <stringProp name="SystemSampler.directory">/qa-test-repo/TestsProperties/HEATFiles/SimpleHEATtoTOSCA/Definitions</stringProp> |
| 3049 | </SystemSampler> |
| 3050 | <hashTree> |
| 3051 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 3052 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 3053 | <objProp> |
| 3054 | <name>saveConfig</name> |
| 3055 | <value class="SampleSaveConfiguration"> |
| 3056 | <time>true</time> |
| 3057 | <latency>true</latency> |
| 3058 | <timestamp>true</timestamp> |
| 3059 | <success>true</success> |
| 3060 | <label>true</label> |
| 3061 | <code>true</code> |
| 3062 | <message>true</message> |
| 3063 | <threadName>true</threadName> |
| 3064 | <dataType>true</dataType> |
| 3065 | <encoding>true</encoding> |
| 3066 | <assertions>true</assertions> |
| 3067 | <subresults>true</subresults> |
| 3068 | <responseData>true</responseData> |
| 3069 | <samplerData>true</samplerData> |
| 3070 | <xml>false</xml> |
| 3071 | <fieldNames>true</fieldNames> |
| 3072 | <responseHeaders>true</responseHeaders> |
| 3073 | <requestHeaders>true</requestHeaders> |
| 3074 | <responseDataOnError>false</responseDataOnError> |
| 3075 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 3076 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 3077 | <bytes>true</bytes> |
| 3078 | <url>true</url> |
| 3079 | <fileName>true</fileName> |
| 3080 | <hostname>true</hostname> |
| 3081 | <threadCounts>true</threadCounts> |
| 3082 | <sampleCount>true</sampleCount> |
| 3083 | <idleTime>true</idleTime> |
| 3084 | </value> |
| 3085 | </objProp> |
| 3086 | <stringProp name="filename"></stringProp> |
| 3087 | </ResultCollector> |
| 3088 | <hashTree/> |
| 3089 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="BeanShell PostProcessor" enabled="true"> |
| 3090 | <boolProp name="resetInterpreter">false</boolProp> |
| 3091 | <stringProp name="parameters"></stringProp> |
| 3092 | <stringProp name="filename"></stringProp> |
| 3093 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 3094 | |
| 3095 | props.put("tosca1",ResponseString); |
| 3096 | |
| 3097 | </stringProp> |
| 3098 | </BeanShellPostProcessor> |
| 3099 | <hashTree/> |
| 3100 | </hashTree> |
| 3101 | <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Read Translated TOSCA" enabled="false"> |
| 3102 | <boolProp name="SystemSampler.checkReturnCode">false</boolProp> |
| 3103 | <stringProp name="SystemSampler.expectedReturnCode">0</stringProp> |
| 3104 | <stringProp name="SystemSampler.command">cat</stringProp> |
| 3105 | <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 3106 | <collectionProp name="Arguments.arguments"> |
| 3107 | <elementProp name="" elementType="Argument"> |
| 3108 | <stringProp name="Argument.name"></stringProp> |
| 3109 | <stringProp name="Argument.value">MainServiceTemplate.yaml</stringProp> |
| 3110 | <stringProp name="Argument.metadata">=</stringProp> |
| 3111 | </elementProp> |
| 3112 | </collectionProp> |
| 3113 | </elementProp> |
| 3114 | <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 3115 | <collectionProp name="Arguments.arguments"/> |
| 3116 | </elementProp> |
| 3117 | <stringProp name="SystemSampler.directory">/tmp/${__TestPlanName}_${__P(VSP_P)}/Definitions/</stringProp> |
| 3118 | </SystemSampler> |
| 3119 | <hashTree> |
| 3120 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 3121 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 3122 | <objProp> |
| 3123 | <name>saveConfig</name> |
| 3124 | <value class="SampleSaveConfiguration"> |
| 3125 | <time>true</time> |
| 3126 | <latency>true</latency> |
| 3127 | <timestamp>true</timestamp> |
| 3128 | <success>true</success> |
| 3129 | <label>true</label> |
| 3130 | <code>true</code> |
| 3131 | <message>true</message> |
| 3132 | <threadName>true</threadName> |
| 3133 | <dataType>true</dataType> |
| 3134 | <encoding>true</encoding> |
| 3135 | <assertions>true</assertions> |
| 3136 | <subresults>true</subresults> |
| 3137 | <responseData>true</responseData> |
| 3138 | <samplerData>true</samplerData> |
| 3139 | <xml>false</xml> |
| 3140 | <fieldNames>true</fieldNames> |
| 3141 | <responseHeaders>true</responseHeaders> |
| 3142 | <requestHeaders>true</requestHeaders> |
| 3143 | <responseDataOnError>false</responseDataOnError> |
| 3144 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 3145 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 3146 | <bytes>true</bytes> |
| 3147 | <url>true</url> |
| 3148 | <fileName>true</fileName> |
| 3149 | <hostname>true</hostname> |
| 3150 | <threadCounts>true</threadCounts> |
| 3151 | <sampleCount>true</sampleCount> |
| 3152 | <idleTime>true</idleTime> |
| 3153 | </value> |
| 3154 | </objProp> |
| 3155 | <stringProp name="filename"></stringProp> |
| 3156 | </ResultCollector> |
| 3157 | <hashTree/> |
| 3158 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="BeanShell PostProcessor" enabled="true"> |
| 3159 | <boolProp name="resetInterpreter">false</boolProp> |
| 3160 | <stringProp name="parameters"></stringProp> |
| 3161 | <stringProp name="filename"></stringProp> |
| 3162 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 3163 | |
| 3164 | props.put("tosca2",ResponseString);</stringProp> |
| 3165 | </BeanShellPostProcessor> |
| 3166 | <hashTree/> |
| 3167 | </hashTree> |
| 3168 | <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="Compare TOSCA files" enabled="false"> |
| 3169 | <stringProp name="BeanShellSampler.query"> |
| 3170 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 3171 | f = new FileOutputStream(test_tmp_folder, true); |
| 3172 | p = new PrintStream(f); |
| 3173 | |
| 3174 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 3175 | |
| 3176 | String file1 = props.get("tosca1"); |
| 3177 | String file2 = props.get("tosca2"); |
| 3178 | |
| 3179 | p.println("\n#######################"+" ${__samplerName} "+"#######################"); |
| 3180 | |
| 3181 | p.println("\n<<<<<<<<<<<<<<<<<<<<<<<"+" diff Output: "+">>>>>>>>>>>>>>>>>>>>>>\n"); |
| 3182 | if(props.get("diffOutput").equals("")){ |
| 3183 | p.println(mydate + " : No change in files"); |
| 3184 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 3185 | p.println(mydate + " : Files are equals!"); |
| 3186 | }else{ |
| 3187 | p.println(mydate + " : \n"+props.get("diffOutput")); |
| 3188 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 3189 | p.println(mydate + " : Files are NOT equals!!!"); |
| 3190 | } |
| 3191 | p.println("\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"); |
| 3192 | |
| 3193 | p.println("############################################################################\n"); |
| 3194 | |
| 3195 | p.close();f.close();</stringProp> |
| 3196 | <stringProp name="BeanShellSampler.filename"></stringProp> |
| 3197 | <stringProp name="BeanShellSampler.parameters"></stringProp> |
| 3198 | <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp> |
| 3199 | </BeanShellSampler> |
| 3200 | <hashTree/> |
| 3201 | </hashTree> |
| 3202 | <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Test Cleanup" enabled="true"> |
| 3203 | <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> |
| 3204 | <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true"> |
| 3205 | <boolProp name="LoopController.continue_forever">false</boolProp> |
| 3206 | <stringProp name="LoopController.loops">${MAIN_THREAD_GROUP_CNT}</stringProp> |
| 3207 | </elementProp> |
| 3208 | <stringProp name="ThreadGroup.num_threads">${NUM_OF_THREAD}</stringProp> |
| 3209 | <stringProp name="ThreadGroup.ramp_time">${TEST_DURATION}</stringProp> |
| 3210 | <longProp name="ThreadGroup.start_time">1422885662000</longProp> |
| 3211 | <longProp name="ThreadGroup.end_time">1422885662000</longProp> |
| 3212 | <boolProp name="ThreadGroup.scheduler">false</boolProp> |
| 3213 | <stringProp name="ThreadGroup.duration"></stringProp> |
| 3214 | <stringProp name="ThreadGroup.delay"></stringProp> |
| 3215 | </ThreadGroup> |
| 3216 | <hashTree> |
| 3217 | <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager Main" enabled="true"> |
| 3218 | <collectionProp name="HeaderManager.headers"> |
| 3219 | <elementProp name="" elementType="Header"> |
| 3220 | <stringProp name="Header.name">Accept</stringProp> |
| 3221 | <stringProp name="Header.value">application/json</stringProp> |
| 3222 | </elementProp> |
| 3223 | <elementProp name="" elementType="Header"> |
| 3224 | <stringProp name="Header.name">Content-Type</stringProp> |
| 3225 | <stringProp name="Header.value">application/json</stringProp> |
| 3226 | </elementProp> |
| 3227 | </collectionProp> |
| 3228 | </HeaderManager> |
| 3229 | <hashTree/> |
| 3230 | <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Delete tmp DIR" enabled="true"> |
| 3231 | <boolProp name="SystemSampler.checkReturnCode">false</boolProp> |
| 3232 | <stringProp name="SystemSampler.expectedReturnCode">0</stringProp> |
| 3233 | <stringProp name="SystemSampler.command">rm</stringProp> |
| 3234 | <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 3235 | <collectionProp name="Arguments.arguments"> |
| 3236 | <elementProp name="" elementType="Argument"> |
| 3237 | <stringProp name="Argument.name"></stringProp> |
| 3238 | <stringProp name="Argument.value">-rf</stringProp> |
| 3239 | <stringProp name="Argument.metadata">=</stringProp> |
| 3240 | </elementProp> |
| 3241 | <elementProp name="" elementType="Argument"> |
| 3242 | <stringProp name="Argument.name"></stringProp> |
| 3243 | <stringProp name="Argument.value">/tmp/${__TestPlanName}_${__P(VSP_P)}/</stringProp> |
| 3244 | <stringProp name="Argument.metadata">=</stringProp> |
| 3245 | </elementProp> |
| 3246 | </collectionProp> |
| 3247 | </elementProp> |
| 3248 | <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 3249 | <collectionProp name="Arguments.arguments"/> |
| 3250 | </elementProp> |
| 3251 | <stringProp name="SystemSampler.directory"></stringProp> |
| 3252 | </SystemSampler> |
| 3253 | <hashTree/> |
| 3254 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete VSP" enabled="false"> |
| 3255 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
| 3256 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
| 3257 | <collectionProp name="Arguments.arguments"> |
| 3258 | <elementProp name="" elementType="HTTPArgument"> |
| 3259 | <boolProp name="HTTPArgument.always_encode">false</boolProp> |
| 3260 | <stringProp name="Argument.value"></stringProp> |
| 3261 | <stringProp name="Argument.metadata">=</stringProp> |
| 3262 | </elementProp> |
| 3263 | </collectionProp> |
| 3264 | </elementProp> |
| 3265 | <stringProp name="HTTPSampler.domain">${__P(VM_controller)}</stringProp> |
| 3266 | <stringProp name="HTTPSampler.port">${port}</stringProp> |
| 3267 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 3268 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 3269 | <stringProp name="HTTPSampler.protocol">http</stringProp> |
| 3270 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 3271 | <stringProp name="HTTPSampler.path">${__P(ASDC_VSP)}/${__P(vspId)}</stringProp> |
| 3272 | <stringProp name="HTTPSampler.method">DELETE</stringProp> |
| 3273 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 3274 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 3275 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 3276 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 3277 | <stringProp name="HTTPSampler.implementation">HttpClient4</stringProp> |
| 3278 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
| 3279 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 3280 | </HTTPSamplerProxy> |
| 3281 | <hashTree> |
| 3282 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 3283 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 3284 | <objProp> |
| 3285 | <name>saveConfig</name> |
| 3286 | <value class="SampleSaveConfiguration"> |
| 3287 | <time>true</time> |
| 3288 | <latency>true</latency> |
| 3289 | <timestamp>true</timestamp> |
| 3290 | <success>true</success> |
| 3291 | <label>true</label> |
| 3292 | <code>true</code> |
| 3293 | <message>true</message> |
| 3294 | <threadName>true</threadName> |
| 3295 | <dataType>true</dataType> |
| 3296 | <encoding>false</encoding> |
| 3297 | <assertions>true</assertions> |
| 3298 | <subresults>true</subresults> |
| 3299 | <responseData>false</responseData> |
| 3300 | <samplerData>false</samplerData> |
| 3301 | <xml>false</xml> |
| 3302 | <fieldNames>false</fieldNames> |
| 3303 | <responseHeaders>false</responseHeaders> |
| 3304 | <requestHeaders>false</requestHeaders> |
| 3305 | <responseDataOnError>false</responseDataOnError> |
| 3306 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 3307 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 3308 | <bytes>true</bytes> |
| 3309 | <threadCounts>true</threadCounts> |
| 3310 | </value> |
| 3311 | </objProp> |
| 3312 | <stringProp name="filename"></stringProp> |
| 3313 | </ResultCollector> |
| 3314 | <hashTree/> |
| 3315 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Log" enabled="true"> |
| 3316 | <boolProp name="resetInterpreter">false</boolProp> |
| 3317 | <stringProp name="parameters"></stringProp> |
| 3318 | <stringProp name="filename"></stringProp> |
| 3319 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 3320 | String ResponseCode = prev.getResponseCode(); |
| 3321 | String ResponseMessage = prev.getResponseMessage(); |
| 3322 | |
| 3323 | String test_tmp_folder = "/tmp/TestResult/${TestName}"; |
| 3324 | f = new FileOutputStream(test_tmp_folder, true); |
| 3325 | p = new PrintStream(f); |
| 3326 | |
| 3327 | mydate = "${__time(dd-MM-yyyy hh:mm:ss)}"; |
| 3328 | |
| 3329 | p.println("\n#######################"+" Delete Temporary VSP "+"#######################"); |
| 3330 | |
| 3331 | if (ResponseCode.contains("200")) |
| 3332 | { |
| 3333 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: PASS"); |
| 3334 | p.println("Response Code : " + ResponseCode); |
| 3335 | p.println("Response Message : " + ResponseMessage); |
| 3336 | p.println("Response String : " + ResponseString); |
| 3337 | } |
| 3338 | else |
| 3339 | { |
| 3340 | p.println(mydate + " : Thread number ${__threadNum()} in step ${__samplerName}: FAIL"); |
| 3341 | p.println("Response Code : " + ResponseCode); |
| 3342 | p.println("Response Message : " + ResponseMessage + "\nERROR: Delete VSP REST failed."); |
| 3343 | p.println("Response String : " + ResponseString); |
| 3344 | } |
| 3345 | |
| 3346 | p.println("############################################################################\n"); |
| 3347 | |
| 3348 | p.close();f.close();</stringProp> |
| 3349 | </BeanShellPostProcessor> |
| 3350 | <hashTree/> |
| 3351 | <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> |
| 3352 | <stringProp name="ConstantTimer.delay">300</stringProp> |
| 3353 | </ConstantTimer> |
| 3354 | <hashTree/> |
| 3355 | <ResultAction guiclass="ResultActionGui" testclass="ResultAction" testname="Stop in case of error" enabled="true"> |
| 3356 | <intProp name="OnError.action">1</intProp> |
| 3357 | </ResultAction> |
| 3358 | <hashTree/> |
| 3359 | </hashTree> |
| 3360 | </hashTree> |
| 3361 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 3362 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 3363 | <objProp> |
| 3364 | <name>saveConfig</name> |
| 3365 | <value class="SampleSaveConfiguration"> |
| 3366 | <time>true</time> |
| 3367 | <latency>true</latency> |
| 3368 | <timestamp>true</timestamp> |
| 3369 | <success>true</success> |
| 3370 | <label>true</label> |
| 3371 | <code>true</code> |
| 3372 | <message>true</message> |
| 3373 | <threadName>true</threadName> |
| 3374 | <dataType>true</dataType> |
| 3375 | <encoding>true</encoding> |
| 3376 | <assertions>true</assertions> |
| 3377 | <subresults>true</subresults> |
| 3378 | <responseData>true</responseData> |
| 3379 | <samplerData>true</samplerData> |
| 3380 | <xml>false</xml> |
| 3381 | <fieldNames>true</fieldNames> |
| 3382 | <responseHeaders>true</responseHeaders> |
| 3383 | <requestHeaders>true</requestHeaders> |
| 3384 | <responseDataOnError>false</responseDataOnError> |
| 3385 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 3386 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 3387 | <bytes>true</bytes> |
| 3388 | <url>true</url> |
| 3389 | <fileName>true</fileName> |
| 3390 | <hostname>true</hostname> |
| 3391 | <threadCounts>true</threadCounts> |
| 3392 | <sampleCount>true</sampleCount> |
| 3393 | <idleTime>true</idleTime> |
| 3394 | </value> |
| 3395 | </objProp> |
| 3396 | <stringProp name="filename"></stringProp> |
| 3397 | </ResultCollector> |
| 3398 | <hashTree/> |
| 3399 | <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.ResponseCodesPerSecondGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="Response Codes per Second" enabled="true"> |
| 3400 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 3401 | <objProp> |
| 3402 | <name>saveConfig</name> |
| 3403 | <value class="SampleSaveConfiguration"> |
| 3404 | <time>true</time> |
| 3405 | <latency>true</latency> |
| 3406 | <timestamp>true</timestamp> |
| 3407 | <success>true</success> |
| 3408 | <label>true</label> |
| 3409 | <code>true</code> |
| 3410 | <message>true</message> |
| 3411 | <threadName>true</threadName> |
| 3412 | <dataType>true</dataType> |
| 3413 | <encoding>false</encoding> |
| 3414 | <assertions>true</assertions> |
| 3415 | <subresults>true</subresults> |
| 3416 | <responseData>false</responseData> |
| 3417 | <samplerData>false</samplerData> |
| 3418 | <xml>false</xml> |
| 3419 | <fieldNames>true</fieldNames> |
| 3420 | <responseHeaders>false</responseHeaders> |
| 3421 | <requestHeaders>false</requestHeaders> |
| 3422 | <responseDataOnError>false</responseDataOnError> |
| 3423 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 3424 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 3425 | <bytes>true</bytes> |
| 3426 | <threadCounts>true</threadCounts> |
| 3427 | </value> |
| 3428 | </objProp> |
| 3429 | <stringProp name="filename">/tmp/TestResult/ResponseCodesPerSecond.jtl</stringProp> |
| 3430 | <longProp name="interval_grouping">1000</longProp> |
| 3431 | <boolProp name="graph_aggregated">false</boolProp> |
| 3432 | <stringProp name="include_sample_labels"></stringProp> |
| 3433 | <stringProp name="exclude_sample_labels"></stringProp> |
| 3434 | <stringProp name="start_offset"></stringProp> |
| 3435 | <stringProp name="end_offset"></stringProp> |
| 3436 | <boolProp name="include_checkbox_state">false</boolProp> |
| 3437 | <boolProp name="exclude_checkbox_state">false</boolProp> |
| 3438 | </kg.apc.jmeter.vizualizers.CorrectedResultCollector> |
| 3439 | <hashTree/> |
| 3440 | <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.ResponseTimesDistributionGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="Response Times Distribution" enabled="true"> |
| 3441 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 3442 | <objProp> |
| 3443 | <name>saveConfig</name> |
| 3444 | <value class="SampleSaveConfiguration"> |
| 3445 | <time>true</time> |
| 3446 | <latency>true</latency> |
| 3447 | <timestamp>true</timestamp> |
| 3448 | <success>true</success> |
| 3449 | <label>true</label> |
| 3450 | <code>true</code> |
| 3451 | <message>true</message> |
| 3452 | <threadName>true</threadName> |
| 3453 | <dataType>true</dataType> |
| 3454 | <encoding>false</encoding> |
| 3455 | <assertions>true</assertions> |
| 3456 | <subresults>true</subresults> |
| 3457 | <responseData>false</responseData> |
| 3458 | <samplerData>false</samplerData> |
| 3459 | <xml>false</xml> |
| 3460 | <fieldNames>true</fieldNames> |
| 3461 | <responseHeaders>false</responseHeaders> |
| 3462 | <requestHeaders>false</requestHeaders> |
| 3463 | <responseDataOnError>false</responseDataOnError> |
| 3464 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 3465 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 3466 | <bytes>true</bytes> |
| 3467 | <threadCounts>true</threadCounts> |
| 3468 | </value> |
| 3469 | </objProp> |
| 3470 | <stringProp name="filename">/tmp/TestResult/ResponseTimesDistribution.jtl</stringProp> |
| 3471 | <longProp name="interval_grouping">100</longProp> |
| 3472 | <boolProp name="graph_aggregated">false</boolProp> |
| 3473 | <stringProp name="include_sample_labels"></stringProp> |
| 3474 | <stringProp name="exclude_sample_labels"></stringProp> |
| 3475 | <stringProp name="start_offset"></stringProp> |
| 3476 | <stringProp name="end_offset"></stringProp> |
| 3477 | <boolProp name="include_checkbox_state">false</boolProp> |
| 3478 | <boolProp name="exclude_checkbox_state">false</boolProp> |
| 3479 | </kg.apc.jmeter.vizualizers.CorrectedResultCollector> |
| 3480 | <hashTree/> |
| 3481 | <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.ResponseTimesOverTimeGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="Response Times Over Time" enabled="true"> |
| 3482 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 3483 | <objProp> |
| 3484 | <name>saveConfig</name> |
| 3485 | <value class="SampleSaveConfiguration"> |
| 3486 | <time>true</time> |
| 3487 | <latency>true</latency> |
| 3488 | <timestamp>true</timestamp> |
| 3489 | <success>true</success> |
| 3490 | <label>true</label> |
| 3491 | <code>true</code> |
| 3492 | <message>true</message> |
| 3493 | <threadName>true</threadName> |
| 3494 | <dataType>true</dataType> |
| 3495 | <encoding>false</encoding> |
| 3496 | <assertions>true</assertions> |
| 3497 | <subresults>true</subresults> |
| 3498 | <responseData>false</responseData> |
| 3499 | <samplerData>false</samplerData> |
| 3500 | <xml>false</xml> |
| 3501 | <fieldNames>true</fieldNames> |
| 3502 | <responseHeaders>false</responseHeaders> |
| 3503 | <requestHeaders>false</requestHeaders> |
| 3504 | <responseDataOnError>false</responseDataOnError> |
| 3505 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 3506 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 3507 | <bytes>true</bytes> |
| 3508 | <threadCounts>true</threadCounts> |
| 3509 | </value> |
| 3510 | </objProp> |
| 3511 | <stringProp name="filename">/tmp/TestResult/ResponseTimesOverTime.jtl</stringProp> |
| 3512 | <longProp name="interval_grouping">500</longProp> |
| 3513 | <boolProp name="graph_aggregated">false</boolProp> |
| 3514 | <stringProp name="include_sample_labels"></stringProp> |
| 3515 | <stringProp name="exclude_sample_labels"></stringProp> |
| 3516 | <stringProp name="start_offset"></stringProp> |
| 3517 | <stringProp name="end_offset"></stringProp> |
| 3518 | <boolProp name="include_checkbox_state">false</boolProp> |
| 3519 | <boolProp name="exclude_checkbox_state">false</boolProp> |
| 3520 | </kg.apc.jmeter.vizualizers.CorrectedResultCollector> |
| 3521 | <hashTree/> |
| 3522 | <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.ResponseTimesPercentilesGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="Response Times Percentiles" enabled="true"> |
| 3523 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 3524 | <objProp> |
| 3525 | <name>saveConfig</name> |
| 3526 | <value class="SampleSaveConfiguration"> |
| 3527 | <time>true</time> |
| 3528 | <latency>true</latency> |
| 3529 | <timestamp>true</timestamp> |
| 3530 | <success>true</success> |
| 3531 | <label>true</label> |
| 3532 | <code>true</code> |
| 3533 | <message>true</message> |
| 3534 | <threadName>true</threadName> |
| 3535 | <dataType>true</dataType> |
| 3536 | <encoding>false</encoding> |
| 3537 | <assertions>true</assertions> |
| 3538 | <subresults>true</subresults> |
| 3539 | <responseData>false</responseData> |
| 3540 | <samplerData>false</samplerData> |
| 3541 | <xml>false</xml> |
| 3542 | <fieldNames>true</fieldNames> |
| 3543 | <responseHeaders>false</responseHeaders> |
| 3544 | <requestHeaders>false</requestHeaders> |
| 3545 | <responseDataOnError>false</responseDataOnError> |
| 3546 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 3547 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 3548 | <bytes>true</bytes> |
| 3549 | <threadCounts>true</threadCounts> |
| 3550 | </value> |
| 3551 | </objProp> |
| 3552 | <stringProp name="filename">/tmp/TestResult/ResponseTimesPercentiles.jtl</stringProp> |
| 3553 | <longProp name="interval_grouping">500</longProp> |
| 3554 | <boolProp name="graph_aggregated">false</boolProp> |
| 3555 | <stringProp name="include_sample_labels"></stringProp> |
| 3556 | <stringProp name="exclude_sample_labels"></stringProp> |
| 3557 | <stringProp name="start_offset"></stringProp> |
| 3558 | <stringProp name="end_offset"></stringProp> |
| 3559 | <boolProp name="include_checkbox_state">false</boolProp> |
| 3560 | <boolProp name="exclude_checkbox_state">false</boolProp> |
| 3561 | </kg.apc.jmeter.vizualizers.CorrectedResultCollector> |
| 3562 | <hashTree/> |
| 3563 | <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.HitsPerSecondGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="Hits per Second" enabled="true"> |
| 3564 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 3565 | <objProp> |
| 3566 | <name>saveConfig</name> |
| 3567 | <value class="SampleSaveConfiguration"> |
| 3568 | <time>true</time> |
| 3569 | <latency>true</latency> |
| 3570 | <timestamp>true</timestamp> |
| 3571 | <success>true</success> |
| 3572 | <label>true</label> |
| 3573 | <code>true</code> |
| 3574 | <message>true</message> |
| 3575 | <threadName>true</threadName> |
| 3576 | <dataType>true</dataType> |
| 3577 | <encoding>false</encoding> |
| 3578 | <assertions>true</assertions> |
| 3579 | <subresults>true</subresults> |
| 3580 | <responseData>false</responseData> |
| 3581 | <samplerData>false</samplerData> |
| 3582 | <xml>false</xml> |
| 3583 | <fieldNames>true</fieldNames> |
| 3584 | <responseHeaders>false</responseHeaders> |
| 3585 | <requestHeaders>false</requestHeaders> |
| 3586 | <responseDataOnError>false</responseDataOnError> |
| 3587 | <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> |
| 3588 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 3589 | <bytes>true</bytes> |
| 3590 | <threadCounts>true</threadCounts> |
| 3591 | </value> |
| 3592 | </objProp> |
| 3593 | <stringProp name="filename">/tmp/TestResult/HitsPerSecond.jtl</stringProp> |
| 3594 | <longProp name="interval_grouping">1000</longProp> |
| 3595 | <boolProp name="graph_aggregated">false</boolProp> |
| 3596 | <stringProp name="include_sample_labels"></stringProp> |
| 3597 | <stringProp name="exclude_sample_labels"></stringProp> |
| 3598 | <stringProp name="start_offset"></stringProp> |
| 3599 | <stringProp name="end_offset"></stringProp> |
| 3600 | <boolProp name="include_checkbox_state">false</boolProp> |
| 3601 | <boolProp name="exclude_checkbox_state">false</boolProp> |
| 3602 | </kg.apc.jmeter.vizualizers.CorrectedResultCollector> |
| 3603 | <hashTree/> |
| 3604 | <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true"> |
| 3605 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 3606 | <objProp> |
| 3607 | <name>saveConfig</name> |
| 3608 | <value class="SampleSaveConfiguration"> |
| 3609 | <time>true</time> |
| 3610 | <latency>true</latency> |
| 3611 | <timestamp>true</timestamp> |
| 3612 | <success>true</success> |
| 3613 | <label>true</label> |
| 3614 | <code>true</code> |
| 3615 | <message>true</message> |
| 3616 | <threadName>true</threadName> |
| 3617 | <dataType>true</dataType> |
| 3618 | <encoding>true</encoding> |
| 3619 | <assertions>true</assertions> |
| 3620 | <subresults>true</subresults> |
| 3621 | <responseData>true</responseData> |
| 3622 | <samplerData>true</samplerData> |
| 3623 | <xml>true</xml> |
| 3624 | <fieldNames>true</fieldNames> |
| 3625 | <responseHeaders>true</responseHeaders> |
| 3626 | <requestHeaders>true</requestHeaders> |
| 3627 | <responseDataOnError>false</responseDataOnError> |
| 3628 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 3629 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 3630 | <bytes>true</bytes> |
| 3631 | <url>true</url> |
| 3632 | <fileName>true</fileName> |
| 3633 | <hostname>true</hostname> |
| 3634 | <threadCounts>true</threadCounts> |
| 3635 | <sampleCount>true</sampleCount> |
| 3636 | <idleTime>true</idleTime> |
| 3637 | </value> |
| 3638 | </objProp> |
| 3639 | <stringProp name="filename">/tmp/TestResult/ResultsTable.xml</stringProp> |
| 3640 | </ResultCollector> |
| 3641 | <hashTree/> |
| 3642 | </hashTree> |
| 3643 | <WorkBench guiclass="WorkBenchGui" testclass="WorkBench" testname="WorkBench" enabled="true"> |
| 3644 | <boolProp name="WorkBench.save">true</boolProp> |
| 3645 | </WorkBench> |
| 3646 | <hashTree> |
| 3647 | <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="Get Response" enabled="false"> |
| 3648 | <stringProp name="filename"></stringProp> |
| 3649 | <stringProp name="parameters"></stringProp> |
| 3650 | <boolProp name="resetInterpreter">false</boolProp> |
| 3651 | <stringProp name="script">String ResponseString = prev.getResponseDataAsString(); |
| 3652 | String ResponseCode = prev.getResponseCode(); |
| 3653 | String ResponseMessage = prev.getResponseMessage(); |
| 3654 | |
| 3655 | |
| 3656 | vars.put("ResponseCode",ResponseCode); |
| 3657 | vars.put("ResponseString",ResponseString); |
| 3658 | vars.put("ResponseMessage",ResponseMessage);</stringProp> |
| 3659 | </BeanShellPostProcessor> |
| 3660 | <hashTree/> |
| 3661 | </hashTree> |
| 3662 | </hashTree> |
| 3663 | </jmeterTestPlan> |