TSUNG读取CSV文档
Xml代码 收藏代码
Xml代码 收藏代码
Xml代码 收藏代码
从csv文件中获取用户名和密码
Configure the CSV file:
********************************************************************************************************************
即上面的http url,必须按照url encoding。如'&'字符必须写成'&'等。
如'&'字符必须写成'&'等。
@转换成 %2540
%2f是'/ '的URL编码
********************************************************************************************************************
*********************************************************************************************************************
TSUNG 进行脚本的录制 tsung-recorder start
tsung-recorder stop
tsung 进行脚本的运行 tsung-f /root/.tsung/abc.xml start
tsung 进行数据的图形转换。 /usr/local/tsung/lib/tsung/bin/tsung_stats.pl
使用含特殊字符的 登录包信息
POST /LoginRegister/LoginWithPassword HTTP/1.1
Accept: */*
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: https://www.360docs.net/doc/2e3295119.html,:8383/
Accept-Language: zh-CN
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)
Host: https://www.360docs.net/doc/2e3295119.html,:8383
Content-Length: 120
DNT: 1
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: Hm_lvt_0e33f9362d15ba090bf8b44de800a5fd=1442219447,1442280403,1444807363; YP_SID=e885db7c9ccd474b93b2e2a81f0298b1; YP_UID=LyP8%2fi74pc3yhaYUM1UGmw%3d%3d; https://www.360docs.net/doc/2e3295119.html,_SessionId=mrttzgjgfvptirumeyov3llk
userName=JOY222222%https://www.360docs.net/doc/2e3295119.html,&password=111111&isAutoLogin=false&client=%7B%22screenX%22%3A1920%2C%22screenY%22%3A1080%7D
session 段中加入
除了从文件读取,也可以随机产生
下面是随机产生的数据。
iter or random
读取的顺序。
delimiter can be any string and order can be iter or random
a dynamic variable canbe a random number
for
repeat name 循环名 max_repeat 循环次数
最后一个标签是