Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 76 lines (56 sloc) 2.755 kB
777b89d @nniclausse use Unix-style line termination
nniclausse authored
1 <?xml version="1.0"?>
2 <!DOCTYPE tsung SYSTEM "@prefix@/share/@PACKAGE_NAME@/@DTD@">
3 <tsung loglevel="notice" dumptraffic="false" version="1.0">
4
5 <clients>
6 <client host="localhost" use_controller_vm="true">
7 </client>
8 </clients>
9
10 <servers>
11 <server host='127.0.0.1' port='5222' type='tcp'/>
12 </servers>
13
14 <load>
15 <arrivalphase phase="1" duration="5" unit="minute">
16 <users interarrival="0.1" unit="second"></users>
17 </arrivalphase>
18 </load>
19
20 <options>
21 <option type="ts_jabber" name="global_number" value="5"></option>
22 <option type="ts_jabber" name="userid_max" value="20000"></option>
23 <option type="ts_jabber" name="domain" value="erlang-projects.org"></option>
24 <option type="ts_jabber" name="username" value="tsung"></option>
25 <option type="ts_jabber" name="passwd" value="tsung"></option>
26 </options>
27
28 <sessions>
29 <!-- set bidi to true -->
30 <session bidi="true" probability="100" name="jabber-example" type="ts_jabber">
31
32 <request> <jabber type="connect" ack="local"></jabber> </request>
33 <transaction name="authenticate">
34 <request> <jabber type="auth_get" ack="local"></jabber> </request>
35 <request> <jabber type="auth_set_plain" ack="local"></jabber> </request>
36 </transaction>
37
38 <thinktime value="2"></thinktime>
39
40 <request> <jabber type="iq:roster:get" ack="local"/> </request>
41
42 <thinktime value="2"></thinktime>
43
44 <request> <jabber type="presence:initial" ack="no_ack"/> </request>
45
46 <thinktime value="60"></thinktime>
47
48 <!-- add five online users in the roster -->
49 <transaction name="rosteradd">
50 <request> <jabber type="iq:roster:add" ack="no_ack" destination="online"></jabber> </request>
51 <request> <jabber type="presence:subscribe" ack="no_ack"/> </request>
52
53 <request> <jabber type="iq:roster:add" ack="no_ack" destination="online"></jabber> </request>
54 <request> <jabber type="presence:subscribe" ack="no_ack"/> </request>
55
56 <request> <jabber type="iq:roster:add" ack="no_ack" destination="online"></jabber> </request>
57 <request> <jabber type="presence:subscribe" ack="no_ack"/> </request>
58
59 <request> <jabber type="iq:roster:add" ack="no_ack" destination="online"></jabber> </request>
60 <request> <jabber type="presence:subscribe" ack="no_ack"/> </request>
61
62 <request> <jabber type="iq:roster:add" ack="no_ack" destination="online"></jabber> </request>
63 <request> <jabber type="presence:subscribe" ack="no_ack"/> </request>
64 </transaction>
65
66 <!-- wait a long time to let others session to add me in their roster-->
67 <thinktime value="600"></thinktime>
68
69 <request> <jabber type="presence:final" ack="no_ack"/> </request>
70 <thinktime value="1"></thinktime>
71 <request> <jabber type="close" ack="local"></jabber> </request>
72
73 </session>
74 </sessions>
75 </tsung>
Something went wrong with that request. Please try again.