cockpit/testsets/Coopis Testset.xml in cpee-1.3.119 vs cockpit/testsets/Coopis Testset.xml in cpee-1.3.120

- old
+ new

@@ -14,53 +14,55 @@ <endpoints> <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir> <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel> <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve> </endpoints> - <description xmlns="http://cpee.org/ns/description/1.0"> - <call id="a1" endpoint="bookAir"> - <parameters> - <method>post</method> + <description> + <description xmlns="http://cpee.org/ns/description/1.0"> + <call id="a1" endpoint="bookAir"> <parameters> - <from>data.from</from> - <to>data.to</to> - <persons>data.persons</persons> + <method>post</method> + <parameters> + <from>data.from</from> + <to>data.to</to> + <persons>data.persons</persons> + </parameters> </parameters> - </parameters> - <manipulate output="result"> data.airline = result.value('id') - data.costs += result.value('costs').to_f - status.update 1, 'Hotel'</manipulate> - </call> - <parallel> - <loop pre_test="data.persons > 0"> - <parallel_branch pass="data.persons" local="p"> - <call id="a2" endpoint="bookHotel"> + <manipulate output="result"> data.airline = result.value('id') + data.costs += result.value('costs').to_f + status.update 1, 'Hotel'</manipulate> + </call> + <parallel> + <loop pre_test="data.persons > 0"> + <parallel_branch pass="data.persons" local="p"> + <call id="a2" endpoint="bookHotel"> + <parameters> + <method>post</method> + <parameters> + <to>data.to</to> + </parameters> + </parameters> + <manipulate output="result"> data.hotels &lt;&lt; result.value('id') + data.costs += result.value('costs').to_f</manipulate> + </call> + </parallel_branch> + <manipulate id="a3"> data.persons -= 1</manipulate> + </loop> + </parallel> + <choose> + <alternative condition="data.costs > 700"> + <call id="a4" endpoint="approve"> <parameters> <method>post</method> <parameters> - <to>data.to</to> + <costs>data.costs</costs> </parameters> </parameters> - <manipulate output="result"> data.hotels &lt;&lt; result.value('id') - data.costs += result.value('costs').to_f</manipulate> - </call> - </parallel_branch> - <manipulate id="a3"> data.persons -= 1</manipulate> - </loop> - </parallel> - <choose> - <alternative condition="data.costs > 700"> - <call id="a4" endpoint="approve"> - <parameters> - <method>post</method> - <parameters> - <costs>data.costs</costs> - </parameters> - </parameters> - </call> - </alternative> - </choose> - </description> + </call> + </alternative> + </choose> + </description> + </description> <transformation> <description type='copy'/> <dataelements type='rest'/> <endpoints type='rest'/> </transformation>