Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 58 lines (45 sloc) 2.208 kb
931108d @nniclausse add simple example for http
nniclausse authored
1 <?xml version="1.0"?>
5345a3b @nniclausse rename idx-tsunami to tsung step 3
nniclausse authored
2 <!DOCTYPE tsung SYSTEM "@prefix@/share/@PACKAGE_NAME@/@DTD@">
3 <tsung loglevel="notice" version="1.0">
931108d @nniclausse add simple example for http
nniclausse authored
4
5 <!-- Client side setup -->
6 <clients>
c44b8db @nniclausse merge minor fixes from release 1.2.0
nniclausse authored
7 <client host="localhost" use_controller_vm="true"/>
931108d @nniclausse add simple example for http
nniclausse authored
8 </clients>
9
10 <!-- Server side setup -->
f3816a5 @nniclausse add support for multiples servers. Use RoundRobin to choose the server a...
nniclausse authored
11 <servers>
931108d @nniclausse add simple example for http
nniclausse authored
12 <server host="myserver" port="80" type="tcp"></server>
f3816a5 @nniclausse add support for multiples servers. Use RoundRobin to choose the server a...
nniclausse authored
13 </servers>
931108d @nniclausse add simple example for http
nniclausse authored
14
15 <!-- to start os monitoring (cpu, network, memory). Use an erlang
16 agent on the remote machine or SNMP. erlang is the default -->
17 <monitoring>
18 <monitor host="myserver" type="snmp"></monitor>
19 </monitoring>
20
7155210 @nniclausse major update to DTD : add sessions, load, options, information; rename '...
nniclausse authored
21 <load>
931108d @nniclausse add simple example for http
nniclausse authored
22 <!-- several arrival phases can be set: for each phase, you can set
23 the mean inter-arrival time between new clients and the phase
24 duration -->
7155210 @nniclausse major update to DTD : add sessions, load, options, information; rename '...
nniclausse authored
25 <arrivalphase phase="1" duration="10" unit="minute">
26 <users interarrival="2" unit="second"></users>
27 </arrivalphase>
28 </load>
29
30 <options>
31 <option type="ts_http" name="user_agent">
32 <user_agent probability="80">Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Galeon/1.3.21</user_agent>
33 <user_agent probability="20">Mozilla/5.0 (Windows; U; Windows NT 5.2; fr-FR; rv:1.7.8) Gecko/20050511 Firefox/1.0.4</user_agent>
34 </option>
35 </options>
36
37 <!-- start a session for a http user. the probability is the
931108d @nniclausse add simple example for http
nniclausse authored
38 frequency of this type os session. The sum of all session's
7155210 @nniclausse major update to DTD : add sessions, load, options, information; rename '...
nniclausse authored
39 probabilities must be 100 -->
931108d @nniclausse add simple example for http
nniclausse authored
40
7155210 @nniclausse major update to DTD : add sessions, load, options, information; rename '...
nniclausse authored
41 <sessions>
42 <session name="http-example" probability="100" type="ts_http">
931108d @nniclausse add simple example for http
nniclausse authored
43
44 <!-- full url with server name, this overrides the "server" config value -->
45
46 <request> <http url="/" method="GET" version="1.1"></http> </request>
47 <request> <http url="/images/accueil1.gif" method="GET" version="1.1" if_modified_since="Fri, 14 Nov 2003 02:43:31 GMT"></http> </request>
48 <request> <http url="/images/accueil2.gif" method="GET" version="1.1" if_modified_since="Fri, 14 Nov 2003 02:43:31 GMT"></http> </request>
49 <request> <http url="/images/accueil3.gif" method="GET" version="1.1" if_modified_since="Fri, 14 Nov 2003 02:43:31 GMT"></http> </request>
50
51 <thinktime value="20" random="true"></thinktime>
52
53 <request> <http url="/index.en.html" method="GET" version="1.1" ></http> </request>
54
55 </session>
7155210 @nniclausse major update to DTD : add sessions, load, options, information; rename '...
nniclausse authored
56 </sessions>
5345a3b @nniclausse rename idx-tsunami to tsung step 3
nniclausse authored
57 </tsung>
Something went wrong with that request. Please try again.