51Testing软件测试论坛
标题:
比较麻烦的关联问题
[打印本页]
作者:
huanggua1223
时间:
2012-8-24 18:13
标题:
比较麻烦的关联问题
场景是这样的:我想要500用户同时登录到系统,(用户做了参数化如:u1~u500)。都登录后每个用户同时创建一个表,并提交。表中的数据只写标题但是不一样(标题:如1~500)。我现在想500个用户对应提交500条不一样数据。请问怎么实现那???令一个问题脚本中出现汉字的地方显示的是乱码,他会影响做压力测试的时候吗?怎么改成正常的汉字那?
用户登录的脚本:
web_submit_data("userLoginAuthentication.login",
"Action=http://192.168.1.8:9081/hz6/userLoginAuthentication.login",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.1.8:9081/hz6/",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=verifyType", "Value=0", ENDITEM,
"Name=loginName", "Value={UserName}", ENDITEM,
"Name=ssoPassword", "Value=146584EFCE09AC17", ENDITEM,
"Name=AFh1b844eb811f9NYV1b8460b1", "Value={Password}", ENDITEM,
"Name=loginModel", "Value=user", ENDITEM,
"Name=appname", "Value=", ENDITEM,
LAST);
提交表单的脚本:
web_submit_data("xmlwork.action.do",
"Action=http://192.168.1.8:9081/hz6/xmlwork.action.do",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid=HZ28818839523f8e01395732af64496a",
"Snapshot=t30.inf",
"Mode=HTML",
ITEMDATA,
"Name=sxComments", "Value=", ENDITEM,
"Name=Comments", "Value=", ENDITEM,
"
Name=HZ28818638559fca013855f05cbd05d3_TITLE", "Value=1", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_CREATED", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_MODIFIED", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_CREATOR", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_MODIFICATOR", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_RECYCLE", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_WEIBEN", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_ZHENGSHU", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_XIAOSHU", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_RIQI", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_DXDXKNAME", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_ZIDIANVALUE", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_ZIDIANVALUE", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_YONGHUNAME", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_YONGHUNAME", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_YONGHUNAME_ID", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_YONGHUNAME_EN", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_TUPIAN", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_QIANMING", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_DAWENBEN", "Value=<br />", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_YIJIAN", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_BUMENNAME", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_BUMENNAME", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_BUMENNAME_ID", "Value=", ENDITEM,
"Name=FORMID", "Value=HZ28818638559fca013855f05cbd05d3", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_ID", "Value=HZ28818839523f8e0139573b588e4a70", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_TABLENAME", "Value=TZ_DESIGNER_TEST", ENDITEM,
"Name=mapread", "Value=", ENDITEM,
"Name=mapedit", "Value=ID|Title|Created|Modified|Creator|Modificator|RECYCLE|WEIBEN|ZHENGSHU|XIAOSHU|RIQI|DXDXKNAME|ZIDIANVALUE|XLKID|YONGHUNAME|TUPIAN|QIANMING|DAWENBEN|YIJIAN|BUMENNAME", ENDITEM,
"Name=maphidden", "Value=", ENDITEM,
"Name=mapcheck", "Value=", ENDITEM,
"Name=flowIdentifier", "Value=", ENDITEM,
"Name=dataIdentifier", "Value=", ENDITEM,
"Name=UserID", "Value=admin", ENDITEM,
"Name=UserName", "Value=绠$悊鍛\x98", ENDITEM,
"Name=DeptName", "Value=鎱ф閫氳蒋", ENDITEM,
"Name=WorkID", "Value=HZ28818839523f8e0139573b588e4a6e", ENDITEM,
"Name=NodeID", "Value=Start", ENDITEM,
"Name=TrackID", "Value=HZ28818839523f8e0139573b588e4a6f", ENDITEM,
"Name=NodeName", "Value=寮\x80濮\x8B", ENDITEM,
"Name=actionFlag", "Value=1100000000000000", ENDITEM,
"Name=selectAuthor", "Value=U_admin", ENDITEM,
"Name=secondAuthor", "Value=", ENDITEM,
"Name=nextNodeID", "Value=Line1~Node2", ENDITEM,
"Name=msgSendFlag", "Value=Todo", ENDITEM,
"Name=ActionName", "Value=submit", ENDITEM,
"Name=allowUnitNext", "Value=", ENDITEM,
"Name=cancelFlag", "Value=2", ENDITEM,
"Name=urlapp", "Value=/horizon/workflow/xmlwork.index.jsp?workid=|workid|", ENDITEM,
"Name=selectFlag", "Value=1", ENDITEM,
"Name=submitflag", "Value=0", ENDITEM,
"Name=curNodeAuthorSendFlag", "Value=Todo", ENDITEM,
"Name=curNodeReaderSendFlag", "Value=Read", ENDITEM,
"Name=selectFlowID", "Value=", ENDITEM,
"Name=FormAction", "Value=/hz6/xmlwork.action.do", ENDITEM,
"Name=selectAuthorCN", "Value=绠$悊鍛\x98", ENDITEM,
"Name=tmpAuthor", "Value=", ENDITEM,
"Name=preFlag", "Value=0", ENDITEM,
"Name=ActionClass", "Value=", ENDITEM,
"Name=tmpSaveInfo", "Value=", ENDITEM,
LAST);
红色字为需要输入的标题。初始值为1.
作者:
云层
时间:
2012-8-25 08:57
写个参数化就行了,和关联有啥关系
作者:
yang1061
时间:
2012-8-25 20:30
录制代码中汉字出现乱码,一般情况下不会影响性能测试的。。。
作者:
huanggua1223
时间:
2012-8-26 15:16
写了参数化的话,能够u1用户是对应的提交1这个数据吗 u500提交500的数据
作者:
huanggua1223
时间:
2012-8-28 12:40
写参数化了,回放的时候数据库中不能插入数据。
作者:
chenkunlong
时间:
2012-8-29 10:04
看看
作者:
huanggua1223
时间:
2012-9-2 10:32
是参数化的设置问题。选择下一行设置unipue,,后面设置时once。但是为什么就不知道了
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2