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