123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <testset xmlns="http://cpee.org/ns/properties/2.0">
- <dataelements>
- <station>2</station>
- <productcode>Te.st.1</productcode>
- <tablets>{"1":"emontagea","2":"emontageb","3":"emontagec","8":"emontaged"}</tablets>
- <finished>false</finished>
- </dataelements>
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
- <endpoints>
- <put>https-put://centurio.work/wiz/</put>
- <get>https://centurio.work/customers/evva/was/server/</get>
- <path>https://centurio.work/customers/evva/was/server/</path>
- </endpoints>
- <description>
- <description xmlns="http://cpee.org/ns/description/1.0">
- <call id="a1" endpoint="get">
- <parameters>
- <label>Get Images</label>
- <method>:get</method>
- <arguments/>
- <stream>
- <sensors/>
- <aggregators/>
- <costs/>
- </stream>
- </parameters>
- <code>
- <prepare>endpoints.get = File.join(endpoints.path,data.station.to_s,"search/imagesWIZ?pattern=" + data.productcode.gsub(/\//,'_'))</prepare>
- <finalize output="result">data.num = 1
- data.images = result</finalize>
- <update output="result"/>
- <rescue output="result"/>
- </code>
- <annotations>
- <_timing>
- <_timing_wait/>
- <_timing_threshold/>
- <_timing_min/>
- <_timing_max/>
- <_timing_avg/>
- </_timing>
- <_notes>
- <_notes_general/>
- </_notes>
- </annotations>
- </call>
- <loop mode="pre_test" condition="!data.finished">
- <call id="a3" endpoint="get">
- <parameters>
- <label>Get Images2</label>
- <method>:get</method>
- <arguments/>
- <stream>
- <sensors/>
- <aggregators/>
- <costs/>
- </stream>
- </parameters>
- <code>
- <prepare>endpoints.get = File.join(endpoints.path,data.station.to_s,"search/imagesWIZ?pattern=" + data.productcode.gsub(/\//,'_'))</prepare>
- <finalize output="result">data.images = result</finalize>
- <update output="result"/>
- <rescue output="result"/>
- </code>
- <annotations>
- <_timing>
- <_timing_wait/>
- <_timing_threshold/>
- <_timing_min/>
- <_timing_max/>
- <_timing_avg/>
- </_timing>
- <_notes>
- <_notes_general/>
- </_notes>
- </annotations>
- </call>
- <_probability>
- <_probability_min/>
- <_probability_max/>
- <_probability_avg/>
- </_probability>
- <call id="a2" endpoint="put">
- <parameters>
- <label>Set Image</label>
- <method>:put</method>
- <arguments>
- <num>!data.num</num>
- <total>!data.images.length</total>
- <style_url>https://centurio.work/customers/evva/wiz/style.css</style_url>
- <image_url>!File.join(endpoints.get,data.station.to_s,"search/imagesWIZ",(data.num-1).to_s, "?pattern=" + data.productcode.gsub(/\//,'_') + "&*ProductCode=" + data.productcode.gsub(/\//,'_'))</image_url>
- <errors_url>!File.join(endpoints.get,data.station.to_s,"search/errorsWIZ","?pattern=" + data.productcode.gsub(/\//,'_') + "&*ProductCode=" + data.productcode.gsub(/\//,'_'))</errors_url>
- </arguments>
- <stream>
- <sensors/>
- <aggregators/>
- <costs/>
- </stream>
- </parameters>
- <code>
- <prepare>endpoints.put = File.join(endpoints.put,"Johannes" + '/')</prepare>
- <finalize output="result">case result['operation']
- when 'next'
- data.num += 1
- when 'prev'
- data.num -= 1
- when 'jump'
- if result['target'].to_i == -1
- data.num = data.images.length
- else
- data.num = result['target'].to_i
- end
- when 'error'
- data.reason = result['reason']
- data.finished = true
- when 'finish'
- data.finished = true
- end</finalize>
- <update output="result"/>
- <rescue output="result"/>
- </code>
- <annotations>
- <_timing>
- <_timing_wait/>
- <_timing_threshold/>
- <_timing_min/>
- <_timing_max/>
- <_timing_avg/>
- </_timing>
- <_notes>
- <_notes_general/>
- </_notes>
- </annotations>
- </call>
- </loop>
- </description>
- </description>
- <transformation>
- <description type="copy"/>
- <dataelements type="none"/>
- <endpoints type="none"/>
- </transformation>
- <attributes>
- <info>EVVA E-Montage UI</info>
- <modeltype>CPEE</modeltype>
- <theme>preset</theme>
- <customer>pilotfabrik</customer>
- <status>development</status>
- </attributes>
- </testset>
|