cockpit/testsets/Promise.xml in cpee-1.5.15 vs cockpit/testsets/Promise.xml in cpee-1.5.16
- old
+ new
@@ -1,6 +1,5 @@
-<?xml version="1.0"?>
<testset>
<dataelements/>
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
<endpoints>
<timeout xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/timeout</timeout>
@@ -30,11 +29,13 @@
<parameters>
<label>"Generate Customer"</label>
<method>:post</method>
<arguments/>
</parameters>
- <finalize>data.knr=result[0].value;data.status="normal";data.zaehlerid=result[1].value</finalize>
+ <code>
+ <finalize>data.knr=result[0].value;data.status="normal";data.zaehlerid=result[1].value</finalize>
+ </code>
</call>
<call id="a10" endpoint="sreminder1" svg-label="Sendung erste Mahnung">
<parameters>
<label>"Sent first Reminder"</label>
<method>:post</method>
@@ -84,11 +85,13 @@
<method>:put</method>
<arguments>
<status>data.status</status>
</arguments>
</parameters>
- <finalize>data.status=result[0].value;data.zaehler_status='normal'</finalize>
+ <code>
+ <finalize>data.status=result[0].value;data.zaehler_status='normal'</finalize>
+ </code>
</call>
<parallel wait="-1" svg-label="">
<parallel_branch svg-label="">
<call id="a4" endpoint="activation" svg-label="Aktivierung Register fuer Guthaben und Anzeige am Display (Prepayment)">
<parameters>
@@ -110,29 +113,35 @@
<arguments>
<zaehlerid>data.zaehlerid</zaehlerid>
<status>data.zaehler_status</status>
</arguments>
</parameters>
- <finalize>data.zaehler_status=result[0].value</finalize>
+ <code>
+ <finalize>data.zaehler_status=result[0].value</finalize>
+ </code>
</call>
</parallel_branch>
</parallel>
<call id="a6" endpoint="update" svg-label="Aktualisierung Guthaben">
<parameters>
<label>"Create credit"</label>
<method>:post</method>
<arguments/>
</parameters>
- <finalize>data.wartefrist="ok";data.guthaben=result[0].value.to_i</finalize>
+ <code>
+ <finalize>data.wartefrist="ok";data.guthaben=result[0].value.to_i</finalize>
+ </code>
</call>
<call id="a3" endpoint="timeout3" svg-label="Aufladen">
<parameters>
<label>"Upate Credit"</label>
<method>:post</method>
<arguments/>
</parameters>
- <finalize>p data.guthaben</finalize>
+ <code>
+ <finalize>p data.guthaben</finalize>
+ </code>
</call>
<loop mode="pre_test" condition="data.wartefrist!='verstrichen'" svg-label="">
<loop mode="pre_test" condition="data.guthaben>0" svg-label="">
<call id="a5" endpoint="consume" svg-label="Verbrauchen">
<parameters>
@@ -140,43 +149,51 @@
<method>:post</method>
<arguments>
<knr>data.knr</knr>
</arguments>
</parameters>
- <finalize>data.guthaben=data.guthaben-result[0].value.to_i</finalize>
+ <code>
+ <finalize>data.guthaben=data.guthaben-result[0].value.to_i</finalize>
+ </code>
</call>
</loop>
<call id="a13" endpoint="decide" svg-label="Gesetzl. Frist">
<parameters>
<label>"Legal waiting time"</label>
<method>:post</method>
<arguments>
<knr>data.knr</knr>
</arguments>
</parameters>
- <finalize>data.wartefrist="verstrichen" if result[0].name == 'wartefrist';data.guthaben=result[0].value.to_i if result[0].name == "balance"</finalize>
+ <code>
+ <finalize>data.wartefrist="verstrichen" if result[0].name == 'wartefrist';data.guthaben=result[0].value.to_i if result[0].name == "balance"</finalize>
+ </code>
</call>
</loop>
<call id="a17" endpoint="timeout" svg-label="Abschaltung">
<parameters>
<label>"Trigger switching off"</label>
<method>:post</method>
<arguments>
<knr>data.knr</knr>
</arguments>
</parameters>
- <finalize>data.zaehler_status='off'</finalize>
+ <code>
+ <finalize>data.zaehler_status='off'</finalize>
+ </code>
</call>
<call id="a8" endpoint="credit_worthy" svg-label="Kreditwuerdig">
<parameters>
<label>"Creditworthy"</label>
<method>:post</method>
<arguments>
<knr>data.knr</knr>
</arguments>
</parameters>
- <finalize>data.kreditf=result[0].value;data.kredit_wanted="true"</finalize>
+ <code>
+ <finalize>data.kreditf=result[0].value;data.kredit_wanted="true"</finalize>
+ </code>
</call>
<choose mode="exclusive" svg-label="">
<alternative condition="data.kreditf=='true'" svg-label="">
<call id="a12" endpoint="timeout" svg-label="activate parametrizable credit function and credit offer">
<parameters>
@@ -195,22 +212,26 @@
<method>:post</method>
<arguments>
<knr>knr=data.knr</knr>
</arguments>
</parameters>
- <finalize>data.kredit=result[0].value.to_i</finalize>
+ <code>
+ <finalize>data.kredit=result[0].value.to_i</finalize>
+ </code>
</call>
<loop mode="pre_test" condition="data.kredit>0" svg-label="">
<call id="a19" endpoint="credit_consume" svg-label="Consume credit">
<parameters>
<label>"Consume credit"</label>
<method>:post</method>
<arguments>
<knr>knr=data.knr</knr>
</arguments>
</parameters>
- <finalize>data.kredit=data.kredit-result[0].value.to_i</finalize>
+ <code>
+ <finalize>data.kredit=data.kredit-result[0].value.to_i</finalize>
+ </code>
</call>
</loop>
</alternative>
<otherwise svg-label=""/>
</choose>
@@ -245,10 +266,10 @@
<description type="copy"/>
<dataelements type="none"/>
<endpoints type="none"/>
</transformation>
<attributes>
- <theme xmlns="http://riddl.org/ns/common-patterns/properties/1.0">default</theme>
+ <theme xmlns="http://riddl.org/ns/common-patterns/properties/1.0">preset</theme>
<info xmlns="http://riddl.org/ns/common-patterns/properties/1.0">ss</info>
<modeltype xmlns="http://riddl.org/ns/common-patterns/properties/1.0">CPEE</modeltype>
</attributes>
-</testset>
+</testset>
\ No newline at end of file