This repository has been archived by the owner on Sep 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsung_example.xml
95 lines (80 loc) · 3.48 KB
/
tsung_example.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
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
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/local/share/tsung/tsung-1.0.dtd" [] >
<tsung loglevel="notice">
<clients>
<client host="localhost" maxusers="32768" use_controller_vm="true" />
</clients>
<servers>
<server host="localhost" port="3000" type="tcp"></server>
<!-- <server host="samridhi.eba-mpffqwyy.us-west-2.elasticbeanstalk.com" port="80" type="tcp"></server> -->
<!-- <server host="nikunjbaid1.eba-mpffqwyy.us-west-2.elasticbeanstalk.com" port="80" type="tcp"></server> -->
</servers>
<load>
<arrivalphase phase="1" duration="5" unit="second">
<users arrivalrate="1" unit="second"></users>
</arrivalphase>
<!-- <arrivalphase phase="2" duration="5" unit="second">
<users arrivalrate="2" unit="second"></users>
</arrivalphase> -->
<!-- <arrivalphase phase="3" duration="5" unit="second">
<users arrivalrate="4" unit="second"></users>
</arrivalphase> -->
<!-- <arrivalphase phase="4" duration="5" unit="second">
<users arrivalrate="8" unit="second"></users>
</arrivalphase>
<arrivalphase phase="5" duration="5" unit="second">
<users arrivalrate="16" unit="second"></users>
</arrivalphase> -->
<!-- <arrivalphase phase="6" duration="5" unit="second">
<users arrivalrate="32" unit="second"></users>
</arrivalphase>
<arrivalphase phase="7" duration="5" unit="second">
<users arrivalrate="64" unit="second"></users>
</arrivalphase>
<arrivalphase phase="8" duration="5" unit="second">
<users arrivalrate="128" unit="second"></users>
</arrivalphase>
<arrivalphase phase="9" duration="5" unit="second">
<users arrivalrate="256" unit="second"></users>
</arrivalphase>
<arrivalphase phase="10" duration="5" unit="second">
<users arrivalrate="512" unit="second"></users>
</arrivalphase> -->
</load>
<options>
<!-- Set connection timeout to 2 seconds -->
<option name="global_ack_timeout" value="300000"></option>
</options>
<sessions>
<session name="user_tweets" type="ts_http" weight="1">
<transaction name="login">
<request>
<dyn_variable name="authenticity_token"></dyn_variable>
<http method="GET" url="/users/sign_in"></http>
</request>
<thinktime value='1' random='true'/>
<setdynvars code='fun({Pid,DynVars})->{ok,Val}=ts_dynvars:lookup(authenticity_token,DynVars),re:replace(Val,"[+]","%2B",[global,{return,list}]) end.' sourcetype="eval"> <var name="authenticity_token" /> </setdynvars>
<request subst="true">
<http url="/users/sign_in" version="1.1" method="POST"
contents="user[email][email protected]&authenticity_token=%%_authenticity_token%%&
user[password]=11111122&commit=Log+in"
content_type="application/x-www-form-urlencoded">
</http>
</request>
<request subst="true">
<http url="/tweets" version="1.1" method="GET"
contents="authenticity_token=%%_authenticity_token%%"
content_type="application/x-www-form-urlencoded">
</http>
</request>
</transaction>
</session>
</sessions>
<!-- <sessions>
<session name="example" type="ts_http" weight="1">
<request><http method="GET" url="/tweets"></http></request>
<request><http method="GET" url="/tweets"></http></request> -->
<!-- <request><http method="GET" url="/project/"></http></request> -->
<!-- </session>
</sessions> -->
</tsung>