|
在测试计划中, 新用户注册功能可能会要求系统能够承受1000 人同时提交!
为此,我想在此插入集合,
部分代码如下:
web_submit_data("regist.aspx_2",
"Action=http://member.anyp.com/regist.aspx?id=1010&back=http%3a%2f%2ftest1.anyp.com%2fshop%2findex.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://member.anyp.com/regist.aspx?id=1010&back=http%3a%2f%2ftest1.anyp.com%2fshop%2findex.aspx",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
"Name=txtUserAcc", "Value=anyp123", ENDITEM,
"Name=txtUserPass", "Value=123456", ENDITEM,
"Name=Password1", "Value=123456", ENDITEM,
"Name=txtUserName", "Value=jerry", ENDITEM,
"Name=Sex", "Value=radMan", ENDITEM,
"Name=drpCountry", "Value=1", ENDITEM,
"Name=drpProvince", "Value=6", ENDITEM,
"Name=drpCity", "Value=45", ENDITEM,
"Name=txtEmail", "Value=wanghauyuoo@21cn.com", ENDITEM,
"Name=txtCode", "Value=4212", ENDITEM,
"Name=btnSumit", "Value=提交注册", ENDITEM,
EXTRARES,
"Url=/public/validator.js", "Referer=http://member.anyp.com/RegistSucc.aspx?id=1010", ENDITEM,
"Url=/public/ajax.js", "Referer=http://member.anyp.com/RegistSucc.aspx?id=1010", ENDITEM,
LAST);
return 0;
怎样插入集合?如何写代码?
对于测试脚本里如何设置场景? 如何插入事务点?如何插入集合点?简简操作感觉很难实现,怎样更好的用代码实现呢?各位有什么心得给小弟学习学习吗?有没有一些有事务,有集合的脚本给小弟看看.完善测试脚本有点难. |
|