-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsung-session.xml
36 lines (31 loc) · 1.15 KB
/
tsung-session.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd" [] >
<tsung loglevel="info" dumptraffic="false" version="1.0">
<clients>
<client host="localhost" use_controller_vm="true"/>
</clients>
<servers>
<server host="192.168.1.1" port="80" type="tcp"></server>
</servers>
<load loop="2">
<arrivalphase phase="1" duration="10" unit="minute">
<users maxnumber="1000" interarrival="5" unit="second"></users>
</arrivalphase>
</load>
<options>
<option name="file_server" id='userdb' value="/home/ubuntu/tsung-data.csv"/>
</options>
<sessions>
<session name="foo" probability="100" type="ts_http">
<for from="1" to="100" var="post_number">
<setdynvars sourcetype="file" fileid="userdb" delimiter=";" order="iter">
<var name="message" />
</setdynvars>
<request subst="true"><http url="http://192.0.2.0/" method="POST" contents="loaduser%%_tsung_userid%%: %%_message%%">
<http_header name="Content-Type" value="text/plain" />
</http></request>
<thinktime min="15" max="30" random="true"></thinktime>
</for>
</session>
</sessions>
</tsung>