cockpit/testsets/Mangler 2.xml in cpee-1.5.15 vs cockpit/testsets/Mangler 2.xml in cpee-1.5.16

- old
+ new

@@ -1,6 +1,5 @@ -<?xml version="1.0"?> <testset> <positions/> <handlerwrapper>DefaultHandlerWrapper</handlerwrapper> <dataelements> <persons>3</persons> @@ -25,59 +24,67 @@ <from>data.from</from> <to>data.to</to> <persons>data.persons</persons> </arguments> </parameters> - <finalize output="result">data.airline = result.value('id') + <code> + <finalize output="result">data.airline = result.value('id') data.costs += result.value('costs').to_f</finalize> + </code> </call> <parallel> - <loop mode="pre_test" condition="data.persons > 0"> + <loop mode="pre_test" condition="data.persons &gt; 0"> <parallel_branch pass="data.persons" local="p"> <call id="a2" endpoint="bookHotel"> <parameters> <method>:post</method> <arguments> <to>data.to</to> </arguments> </parameters> - <finalize output="result">data.hotels &lt;&lt; result.value('id') + <code> + <finalize output="result">data.hotels &lt;&lt; result.value('id') data.costs += result.value('costs').to_f</finalize> + </code> </call> </parallel_branch> <manipulate id="a3">data.persons -= 1</manipulate> </loop> - <loop mode="pre_test" condition="data.persons > 0"> + <loop mode="pre_test" condition="data.persons &gt; 0"> <parallel_branch pass="data.persons" local="p"> <call id="a4" endpoint="bookHotel"> <parameters> <method>:post</method> <arguments> <to>data.to</to> </arguments> </parameters> - <finalize output="result">data.hotels &lt;&lt; result.value('id') + <code> + <finalize output="result">data.hotels &lt;&lt; result.value('id') data.costs += result.value('costs').to_f</finalize> + </code> </call> </parallel_branch> <parallel_branch pass="data.persons" local="p"> <call id="a5" endpoint="bookHotel"> <parameters> <method>:post</method> <arguments> <to>data.to</to> </arguments> </parameters> - <finalize output="result">data.hotels &lt;&lt; result.value('id') + <code> + <finalize output="result">data.hotels &lt;&lt; result.value('id') data.costs += result.value('costs').to_f</finalize> + </code> </call> </parallel_branch> <manipulate id="a6">data.persons -= 1</manipulate> </loop> </parallel> <choose> - <alternative condition="data.costs > 700"> + <alternative condition="data.costs &gt; 700"> <call id="a7" endpoint="approve"> <parameters> <method>:post</method> <arguments> <costs>data.costs</costs> @@ -87,10 +94,10 @@ </alternative> </choose> </description> </description> <transformation> - <description type='copy'/> - <dataelements type='rest'/> - <endpoints type='rest'/> + <description type="copy"/> + <dataelements type="rest"/> + <endpoints type="rest"/> </transformation> -</testset> +</testset> \ No newline at end of file