Permalink
Browse files

Tsung tests

  • Loading branch information...
1 parent 24fe5a5 commit 9822aa958c0bf6c3285b83fca496e2212333a37f @alipiec alipiec committed Jul 22, 2011
Showing with 413 additions and 0 deletions.
  1. +57 −0 tsung/login.xml
  2. +58 −0 tsung/login_a.xml
  3. +58 −0 tsung/login_b.xml
  4. +80 −0 tsung/message.xml
  5. +80 −0 tsung/message_a.xml
  6. +80 −0 tsung/message_b.xml
View
@@ -0,0 +1,57 @@
+<?xml version="1.0"?>
+<!DOCTYPE tsung SYSTEM "/home/wirenth/.tsung/tsung-1.0.dtd">
+<tsung loglevel="notice" version="1.0" dumptraffic="false">
+
+ <clients>
+ <client host="localhost" use_controller_vm="true" maxusers="500"/>
+ </clients>
+
+ <servers>
+ <server host="10.152.0.111" port="5222" type="tcp"></server>
+ </servers>
+
+ <load>
+ <arrivalphase phase="1" duration="90" unit="minute">
+ <users interarrival="0.01" unit="second"></users>
+ </arrivalphase>
+ </load>
+
+ <options>
+ <option type="ts_jabber" name="global_number" value="50000"></option>
+ <option type="ts_jabber" name="userid_max" value="50000"></option>
+ <option type="ts_jabber" name="domain" value="localhost"></option>
+ <option type="ts_jabber" name="username" value="user"></option>
+ <option type="ts_jabber" name="passwd" value="pass"></option>
+ </options>
+
+ <sessions>
+ <session name="inactive-user" probability="100" type="ts_jabber">
+
+ <request subst="true">
+ <jabber type="connect" ack="no_ack" />
+ </request>
+
+ <thinktime value="1" />
+
+ <request subst="true">
+ <jabber type="auth_get" ack="no_ack" />
+ </request>
+
+ <thinktime value="1" />
+
+ <request subst="true">
+ <jabber type="auth_set_plain" ack="no_ack" />
+ </request>
+
+ <thinktime value="1" />
+
+ <request subst="true">
+ <jabber type="presence:initial" ack="no_ack"/>
+ </request>
+
+ <thinktime value="10000000" />
+
+ </session>
+
+ </sessions>
+</tsung>
View
@@ -0,0 +1,58 @@
+<?xml version="1.0"?>
+<!DOCTYPE tsung SYSTEM "/home/aleksandra.lipiec/tsung_dist/share/tsung/tsung-1.0.dtd">
+<tsung loglevel="error" version="1.0" dumptraffic="false">
+
+ <clients>
+ <client host="localhost" use_controller_vm="true" maxusers="60000">
+ <ip value="10.152.1.11" />
+ </client>
+ </clients>
+
+ <servers>
+ <server host="10.152.0.111" port="5222" type="tcp"></server>
+ </servers>
+
+ <load>
+ <arrivalphase phase="1" duration="90" unit="minute">
+ <users interarrival="0.02" unit="second"></users>
+ </arrivalphase>
+ </load>
+
+ <options>
+ <option type="ts_jabber" name="global_number" value="200000"></option>
+ <option type="ts_jabber" name="userid_max" value="200000"></option>
+ <option type="ts_jabber" name="domain" value="localhost"></option>
+ <option type="ts_jabber" name="username" value="auser"></option>
+ <option type="ts_jabber" name="passwd" value="pass"></option>
+ </options>
+
+ <sessions>
+ <session name="inactive-user" probability="100" type="ts_jabber">
+
+ <thinktime min="1" max="2" random="true"/>
+
+ <!-- connect and logon -->
+ <!-- regexp captures stream ID returned by server -->
+
+ <request>
+ <dyn_variable name="sid" regexp="id='\(.*\)' from"/>
+ <jabber type="connect" ack="local"/>
+ </request>
+
+ <transaction name="auth_digest">
+
+ <request> <jabber type="auth_get" ack="local"/> </request>
+ <request subst="true"> <jabber type="auth_set_digest" ack="local"/> </request>
+ </transaction>
+ <thinktime value="1" />
+
+ <request subst='true'>
+ <jabber type="presence:initial" ack="no_ack"/>
+ </request>
+
+ <thinktime value="1000000" />
+
+ </session>
+
+ </sessions>
+</tsung>
View
@@ -0,0 +1,58 @@
+<?xml version="1.0"?>
+<!DOCTYPE tsung SYSTEM "/home/aleksandra.lipiec/tsung_dist/share/tsung/tsung-1.0.dtd">
+<tsung loglevel="error" version="1.0" dumptraffic="false">
+
+ <clients>
+ <client host="localhost" use_controller_vm="true" maxusers="60000">
+ <ip value="10.152.1.12" />
+ </client>
+ </clients>
+
+ <servers>
+ <server host="10.152.0.111" port="5222" type="tcp"></server>
+ </servers>
+
+ <load>
+ <arrivalphase phase="1" duration="90" unit="minute">
+ <users interarrival="0.02" unit="second"></users>
+ </arrivalphase>
+ </load>
+
+ <options>
+ <option type="ts_jabber" name="global_number" value="200000"></option>
+ <option type="ts_jabber" name="userid_max" value="200000"></option>
+ <option type="ts_jabber" name="domain" value="localhost"></option>
+ <option type="ts_jabber" name="username" value="buser"></option>
+ <option type="ts_jabber" name="passwd" value="pass"></option>
+ </options>
+
+ <sessions>
+ <session name="inactive-user" probability="100" type="ts_jabber">
+
+ <thinktime min="1" max="2" random="true"/>
+
+ <!-- connect and logon -->
+ <!-- regexp captures stream ID returned by server -->
+
+ <request>
+ <dyn_variable name="sid" regexp="id='\(.*\)' from"/>
+ <jabber type="connect" ack="local"/>
+ </request>
+
+ <transaction name="auth_digest">
+
+ <request> <jabber type="auth_get" ack="local"/> </request>
+ <request subst="true"> <jabber type="auth_set_digest" ack="local"/> </request>
+ </transaction>
+ <thinktime value="1" />
+
+ <request subst='true'>
+ <jabber type="presence:initial" ack="no_ack"/>
+ </request>
+
+ <thinktime value="1000000" />
+
+ </session>
+
+ </sessions>
+</tsung>
View
@@ -0,0 +1,80 @@
+<?xml version="1.0"?>
+<!DOCTYPE tsung SYSTEM "/home/aleksandra.lipiec/tsung_dist/share/tsung/tsung-1.0.dtd">
+<tsung loglevel="error" version="1.0" dumptraffic="false">
+
+ <clients>
+ <client host="localhost" use_controller_vm="true" maxusers="60000"/>
+ </clients>
+
+ <servers>
+ <server host="10.152.0.111" port="5222" type="tcp"></server>
+ </servers>
+
+ <load>
+ <arrivalphase phase="1" duration="90" unit="minute">
+ <users interarrival="0.01" unit="second"></users>
+ </arrivalphase>
+ </load>
+
+ <options>
+ <option type="ts_jabber" name="global_number" value="50000"></option>
+ <option type="ts_jabber" name="userid_max" value="50000"></option>
+ <option type="ts_jabber" name="domain" value="localhost"></option>
+ <option type="ts_jabber" name="username" value="user"></option>
+ <option type="ts_jabber" name="passwd" value="pass"></option>
+ </options>
+
+ <sessions>
+ <session name="inactive-user" probability="100" type="ts_jabber">
+
+ <request subst="true">
+ <jabber type="connect" ack="no_ack" />
+ </request>
+
+ <thinktime value="1" />
+
+ <request subst="true">
+ <jabber type="auth_get" ack="no_ack" />
+ </request>
+
+ <thinktime value="1" />
+
+ <request subst="true">
+ <jabber type="auth_set_plain" ack="no_ack" />
+ </request>
+
+ <thinktime value="1" />
+
+ <request subst="true">
+ <jabber type="presence:initial" ack="no_ack"/>
+ </request>
+
+ <thinktime value="20" />
+
+ <for from="1" to="1000" incr="1" var="i">
+
+ <for from="1" to="12" incr="1" var="j">
+ <request subst="true">
+ <jabber type="chat" ack="no_ack" size="50" destination="online"/>
+ </request>
+ <thinktime value="10"/>
+ </for>
+
+ <request subst="true">
+ <jabber type="presence:final" ack="no_ack"/>
+ </request>
+
+ <thinktime value="20" />
+
+ <request subst="true">
+ <jabber type="presence:initial" ack="no_ack"/>
+ </request>
+
+ </for>
+
+ <request> <jabber type="close" ack="local"/> </request>
+
+ </session>
+
+ </sessions>
+</tsung>
View
@@ -0,0 +1,80 @@
+<?xml version="1.0"?>
+<!DOCTYPE tsung SYSTEM "/home/aleksandra.lipiec/tsung_dist/share/tsung/tsung-1.0.dtd">
+<tsung loglevel="error" version="1.0" dumptraffic="false">
+
+ <clients>
+ <client host="localhost" use_controller_vm="true" maxusers="60000"/>
+ </clients>
+
+ <servers>
+ <server host="10.152.0.111" port="5222" type="tcp"></server>
+ </servers>
+
+ <load>
+ <arrivalphase phase="1" duration="90" unit="minute">
+ <users interarrival="0.02" unit="second"></users>
+ </arrivalphase>
+ </load>
+
+ <options>
+ <option type="ts_jabber" name="global_number" value="50000"></option>
+ <option type="ts_jabber" name="userid_max" value="50000"></option>
+ <option type="ts_jabber" name="domain" value="localhost"></option>
+ <option type="ts_jabber" name="username" value="auser"></option>
+ <option type="ts_jabber" name="passwd" value="pass"></option>
+ </options>
+
+ <sessions>
+ <session name="inactive-user" probability="100" type="ts_jabber">
+
+ <request subst="true">
+ <jabber type="connect" ack="no_ack" />
+ </request>
+
+ <thinktime value="1" />
+
+ <request subst="true">
+ <jabber type="auth_get" ack="no_ack" />
+ </request>
+
+ <thinktime value="1" />
+
+ <request subst="true">
+ <jabber type="auth_set_plain" ack="no_ack" />
+ </request>
+
+ <thinktime value="1" />
+
+ <request subst="true">
+ <jabber type="presence:initial" ack="no_ack"/>
+ </request>
+
+ <thinktime value="20" />
+
+ <for from="1" to="1000" incr="1" var="i">
+
+ <for from="1" to="12" incr="1" var="j">
+ <request subst="true">
+ <jabber type="chat" ack="no_ack" size="50" destination="online"/>
+ </request>
+ <thinktime value="10"/>
+ </for>
+
+ <request subst="true">
+ <jabber type="presence:final" ack="no_ack"/>
+ </request>
+
+ <thinktime value="20" />
+
+ <request subst="true">
+ <jabber type="presence:initial" ack="no_ack"/>
+ </request>
+
+ </for>
+
+ <request> <jabber type="close" ack="local"/> </request>
+
+ </session>
+
+ </sessions>
+</tsung>
Oops, something went wrong.

0 comments on commit 9822aa9

Please sign in to comment.