Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v1.3.0
Fetching contributors…

Cannot retrieve contributors at this time

file 245 lines (206 sloc) 6.885 kb
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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
<?xml version="1.0" encoding="utf-8" ?>
<!ELEMENT tsung (information?, clients, servers, monitoring?, load, options?, sessions)>

<!ELEMENT information (name|description|username|organisation)*>


<!ELEMENT name (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT username (#PCDATA)>
<!ELEMENT organisation (#PCDATA)>

<!ATTLIST tsung
     dumptraffic (true | false | light) "false"
     backend (text | rrdtool | fullstats) "text"
     loglevel (emergency|critical|error|warning|notice|info|debug) "notice"
     version NMTOKEN #IMPLIED>

<!ELEMENT servers (server+)>
<!ELEMENT server EMPTY>
<!ATTLIST server
     host NMTOKEN #REQUIRED
     port NMTOKEN #REQUIRED
     type (ssl | tcp | udp) #REQUIRED>

<!ELEMENT clients (client+)>
<!ELEMENT client (ip*) >
<!ATTLIST client
     cpu NMTOKEN "1"
     type (machine | batch) "machine"
     host NMTOKEN #IMPLIED
     batch (torque | pbs | lsf | oar) #IMPLIED
     maxusers NMTOKEN "800"
     use_controller_vm (true | false) "false"
     weight NMTOKEN "1">

<!ELEMENT ip EMPTY>
<!ATTLIST ip value NMTOKEN #REQUIRED>

<!ELEMENT monitoring ( monitor+ )>
<!ELEMENT monitor ( snmp? )>
<!ATTLIST monitor
     host NMTOKEN #REQUIRED
     batch (true | false) "false"
     type (snmp | erlang) "erlang">

<!ELEMENT snmp EMPTY>
<!ATTLIST snmp
     version (v1 | v2) "v1"
     community NMTOKEN "public"
     port NMTOKEN "161">

<!ELEMENT load (arrivalphase+)>
<!ATTLIST load
     loop NMTOKEN "0"
     >

<!ELEMENT arrivalphase (users)>
<!ATTLIST arrivalphase
     duration NMTOKEN #REQUIRED
     phase NMTOKEN #REQUIRED
     unit (hour | minute | second | millisecond) #REQUIRED>

<!ELEMENT users EMPTY>
<!ATTLIST users
     interarrival NMTOKEN #REQUIRED
     unit (hour | minute | second) #REQUIRED
     maxnumber NMTOKEN #IMPLIED>

<!ELEMENT options (option*)>
<!ELEMENT option (user_agent*)>
<!ATTLIST option
    name NMTOKEN #REQUIRED
    override (true | false) #IMPLIED
    random (true | false) #IMPLIED
    id NMTOKEN #IMPLIED
    type (ts_http | ts_jabber | ts_pgsql) #IMPLIED
    value CDATA #IMPLIED>

<!ELEMENT sessions (session+)>
<!ELEMENT session ( request | thinktime | transaction | setdynvars | for |
repeat)*>
<!ATTLIST session
    name CDATA #REQUIRED
    bidi CDATA #IMPLIED
    persistent (true | false) #IMPLIED
    probability NMTOKEN #REQUIRED
    type (ts_jabber | ts_http | ts_raw | ts_pgsql | ts_ldap | ts_webdav |ts_mysql ) #REQUIRED>

<!ELEMENT request ( match*, dyn_variable*, ( http | jabber | raw | pgsql | ldap | mysql ) )>
<!ATTLIST request
    subst (true|false) "false"
    >

<!ELEMENT match (#PCDATA)>
<!ATTLIST match
    do (continue|loop|abort|restart) "continue"
    when (match|nomatch) "match"
    loop_back NMTOKEN "0"
    max_loop NMTOKEN "20"
    max_restart NMTOKEN "3"
    sleep_loop NMTOKEN "5"
    >

<!ELEMENT thinktime EMPTY>
<!ATTLIST thinktime
    random (true|false) "false"
    value NMTOKEN #IMPLIED
    min NMTOKEN #IMPLIED
    max NMTOKEN #IMPLIED
    >

<!ELEMENT user_agent (#PCDATA)*>
<!ATTLIST user_agent
    probability NMTOKEN #REQUIRED
    >

<!ELEMENT transaction (request | setdynvars | thinktime | for | repeat)+>
<!ATTLIST transaction name NMTOKEN #REQUIRED>

<!ELEMENT http ( www_authenticate?, soap?, http_header*)>
<!ATTLIST http
    contents CDATA #IMPLIED
    contents_from_file CDATA #IMPLIED
    content_type CDATA #IMPLIED
    if_modified_since CDATA #IMPLIED
    method (GET | POST | PUT | DELETE | HEAD | PROPFIND | PROPPATCH | COPY | MOVE | LOCK | UNLOCK | MKCOL | OPTIONS | REPORT | VERSION-CONTROL ) "GET"
    url CDATA #REQUIRED
    version (1.0 | 1.1) "1.1" >

<!ELEMENT soap EMPTY >
<!ATTLIST soap action CDATA #REQUIRED >

<!ELEMENT dyn_variable EMPTY >
<!ATTLIST dyn_variable
    name CDATA #REQUIRED
    xpath CDATA #IMPLIED
    regexp CDATA #IMPLIED >

<!ELEMENT http_header EMPTY >
<!ATTLIST http_header
    name CDATA #REQUIRED
    encoding CDATA #IMPLIED
    value CDATA #IMPLIED >

<!ELEMENT www_authenticate EMPTY >
<!ATTLIST www_authenticate
    passwd CDATA #REQUIRED
    userid CDATA #REQUIRED >

<!ELEMENT jabber EMPTY >
<!ATTLIST jabber
    ack (global | local | no_ack) #REQUIRED
    destination (online | offline | random | unique | previous) "random"
    id NMTOKEN #IMPLIED
    size NMTOKEN "0"
    data CDATA #IMPLIED
    type NMTOKEN #REQUIRED
    show (away|chat|dnd|xa) "chat"
    status CDATA "Available">

<!ELEMENT pgsql (#PCDATA) >
<!ATTLIST pgsql
    password CDATA #IMPLIED
    database CDATA #IMPLIED
    username CDATA #IMPLIED
    type (connect | authenticate | sql | close) #REQUIRED >

<!ELEMENT mysql (#PCDATA) >
<!ATTLIST mysql
    password CDATA #IMPLIED
    database CDATA #IMPLIED
    username CDATA #IMPLIED
    type (connect | authenticate | sql | close) #REQUIRED >

<!ELEMENT raw EMPTY >
<!ATTLIST raw
    ack (global | local | no_ack) #REQUIRED
    data CDATA #REQUIRED>

<!ELEMENT ldap (attr* | modification*) >
<!ATTLIST ldap
    password CDATA #IMPLIED
    user CDATA #IMPLIED
    type (bind | unbind | search | start_tls | add | modify ) #REQUIRED
    result_var CDATA #IMPLIED
    filter CDATA #IMPLIED
    base CDATA #IMPLIED
    scope (singleLevel | baseObject | wholeSubtree) #IMPLIED
cacertfile CDATA #IMPLIED
keyfile CDATA #IMPLIED
certfile CDATA #IMPLIED
dn CDATA #IMPLIED
>

<!ELEMENT modification (attr*) >
<!ATTLIST modification
type CDATA #REQUIRED>


<!ELEMENT attr (value+) >
<!ATTLIST attr
type CDATA #REQUIRED>

<!ELEMENT value (#PCDATA) >


<!ELEMENT setdynvars (var*) >
<!ATTLIST setdynvars
    sourcetype (random_string | urandom_string | random_number | file | erlang ) #REQUIRED
    callback CDATA #IMPLIED
fileid CDATA #IMPLIED
    order (iter | random ) #IMPLIED
delimiter CDATA #IMPLIED
length CDATA #IMPLIED
start CDATA #IMPLIED
end CDATA #IMPLIED
>
<!ELEMENT var (#PCDATA) >
<!ATTLIST var
name CDATA #REQUIRED>

<!ELEMENT for (request | thinktime | transaction | setdynvars | for | repeat)+>
<!ATTLIST for
    var CDATA #REQUIRED
    from NMTOKEN #REQUIRED
    to NMTOKEN #REQUIRED
    incr NMTOKEN "1">

<!ELEMENT repeat (request | thinktime | transaction | setdynvars | for | repeat
| while | until)+>
<!ATTLIST repeat
    name NMTOKEN #REQUIRED
    max_repeat NMTOKEN "20">

<!ELEMENT while EMPTY>
<!ATTLIST while
    var CDATA #REQUIRED
    eq CDATA #IMPLIED
    neq CDATA #IMPLIED >

<!ELEMENT until EMPTY>
<!ATTLIST until
    var CDATA #REQUIRED
    eq CDATA #IMPLIED
    neq CDATA #IMPLIED >
Something went wrong with that request. Please try again.