Name: cockpit/testsets/Performance Test 1.xml 
1:
<?xml version="1.0"?>
2:
<!--
3:
  Apache License, Version 2.0
4:
  
5:
  Copyright (c) 2013 Juergen Mangler
6:
  
7:
  Licensed under the Apache License, Version 2.0 (the "License");
8:
  you may not use this file except in compliance with the License.
9:
  You may obtain a copy of the License at
10:
  
11:
      http://www.apache.org/licenses/LICENSE-2.0
12:
  
13:
  Unless required by applicable law or agreed to in writing, software
14:
  distributed under the License is distributed on an "AS IS" BASIS,
15:
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16:
  See the License for the specific language governing permissions and
17:
  limitations under the License.
18:
-->
19:
 
20:
<testset>
21:
  <positions/>
22:
  <handlerwrapper>SOAPHandlerWrapper</handlerwrapper>
23:
  <dataelements><!--{{{-->
24:
    <timing>0</timing>
25:
    <counter>0</counter>
26:
    <data></data>
27:
  </dataelements><!--}}}-->
28:
  <handlers>
29:
    <handler url="xmpp://[email protected]">
30:
      <events topic='properties/state'>change</events>
31:
      <events topic='properties/datalements'>change</events>
32:
      <events topic='properties/position'>change</events>
33:
      <events topic='running'>activity_calling,activity_failed,activity_manipulating,activity_done</events>
34:
    </handler>
35:
    <handler url="xmpp://[email protected]">
36:
      <events topic='properties/state'>change</events>
37:
      <events topic='properties/position'>change</events>
38:
      <events topic='running'>activity_calling,activity_failed,activity_manipulating,activity_done</events>
39:
    </handler>
40:
    <handler url="xmpp://[email protected]">
41:
      <events topic='simulating'>step</events>
42:
    </handler>
43:
  </handlers><!--}}}-->
44:
  <endpoints><!--{{{-->
45:
    <perf>http://donatello.pri.univie.ac.at/tools/perfData.wsdl</perf>
46:
  </endpoints>  <!--}}}-->
47:
  <description>
48:
    <description xmlns="http://cpee.org/ns/description/1.0"><!--{{{-->
49:
      <manipulate id="a1">data.timing = Time.now.to_f</manipulate>
50:
      <loop pre_test='data.counter < 1000'>
51:
        <call id="a2" endpoint="perf">
52:
          <parameters>
53:
            <method>getPerfData</method>
54:
            <parameters/>
55:
          </parameters>
56:
          <manipulate output="result">  data.data = result
57:
  data.counter += 1</manipulate>
58:
        </call>
59:
      </loop>
60:
      <manipulate id="a3">data.timing = "#{(Time.now.to_f - data.timing)} seconds"</manipulate>
61:
    </description><!--}}}-->
62:
  </description>
63:
  <transformation>
64:
    <description type='copy'/>
65:
    <dataelements type='rest'/>
66:
    <endpoints type='rest'/>
67:
  </transformation>
68:
</testset>