loadrunner中关联多个值怎么处理?
在性能测试时出现分数id多个出现左右边界一样的值,想用关联来做,怎么做? 在web_reg_save_param参数中ord选为all,在运行时怎么指定不同的值? 取出来的值是一个数组,你可以调用数组中的某一个值 原帖由 msnshow 于 2009-11-17 13:47 发表 http://bbs.51testing.com/images/common/back.gif取出来的值是一个数组,你可以调用数组中的某一个值
这个值的数组能把它作为参数化吗? 关联和参数化的概念你有点混淆了!
这个版块有一个帖子专门解释关联和参数化区别的,你搜搜看吧。 :L web_reg_save_param("score_id",
"LB=score_id=\"",
"RB=\" provider_id=\"",
"ORD=ALL",
LAST);
web_submit_data("save.so",
"Action=http://10.85.23.72:8002/WebContent//ldappraiser/save.so?jsession=hsJ1K3CPb53pRv2RnBf8MrYpZ9G4xy4rGyXDDTbmR2hDvnvZsT42!890700216!1257751215625",
"Method=POST",
"RecContentType=text/html",
"Referer=",
"Snapshot=t16.inf",
"Mode=HTML",
ITEMDATA,
"Name=xml", "Value=<?xml version=\"1.0\" encoding=\"UTF-8\"?><appraisement><product product_id=\"900000000000038033\"><scores><score score=\"10.0\" score_id=\"900000000000003325\"/><score score=\"3.0\" score_id=\"900000000000003336\"/><score score=\"5.0\" score_id=\"900000000000003363\"/><score score=\"5.0\" score_id=\"900000000000003347\"/><score score=\"3.0\" score_id=\"900000000000003352\"/><score score=\"5.0\" score_id=\"900000000000003360\"/><score score=\"1.0\" score_id=\"900000000000003353\""
"/><score score=\"5.0\" score_id=\"900000000000003333\"/><score score=\"2.0\" score_id=\"900000000000003328\"/><score score=\"1.0\" score_id=\"900000000000003335\"/><score score=\"5.0\" score_id=\"900000000000003345\"/><score score=\"3.0\" score_id=\"900000000000003322\"/><score score=\"5.0\" score_id=\"900000000000003344\"/><score score=\"5.0\" score_id=\"900000000000003359\"/><score score=\"1.0\" score_id=\"900000000000003338\"/><score score=\"5.0\" score_id=\"900000000000003361\"/><score score="
"\"1.0\" score_id=\"900000000000003354\"/><score score=\"3.0\" score_id=\"900000000000003351\"/><score score=\"3.0\" score_id=\"900000000000003342\"/><score score=\"5.0\" score_id=\"900000000000003330\"/><score score=\"5.0\" score_id=\"900000000000003331\"/><score score=\"1.0\" score_id=\"900000000000003323\"/><score score=\"5.0\" score_id=\"900000000000003362\"/><score score=\"5.0\" score_id=\"900000000000003332\"/><score score=\"2.0\" score_id=\"900000000000003343\"/><score score=\"5.0\" score_id"
"=\"900000000000003329\"/><score score=\"3.0\" score_id=\"900000000000003357\"/><score score=\"5.0\" score_id=\"900000000000003356\"/><score score=\"3.0\" score_id=\"900000000000003321\"/><score score=\"5.0\" score_id=\"900000000000003364\"/><score score=\"1.0\" score_id=\"900000000000003324\"/><score score=\"1.0\" score_id=\"900000000000003339\"/><score score=\"5.0\" score_id=\"900000000000003346\"/><score score=\"3.0\" score_id=\"900000000000003327\"/><score score=\"10.0\" score_id=\""
"900000000000003340\"/><score score=\"4.0\" score_id=\"900000000000003334\"/><score score=\"5.0\" score_id=\"900000000000003349\"/><score score=\"1.0\" score_id=\"900000000000003350\"/><score score=\"1.0\" score_id=\"900000000000003365\"/><score score=\"5.0\" score_id=\"900000000000003341\"/><score score=\"5.0\" score_id=\"900000000000003326\"/><score score=\"3.0\" score_id=\"900000000000003337\"/><score score=\"5.0\" score_id=\"900000000000003348\"/><score score=\"10.0\" score_id=\""
"900000000000003355\"/><score score=\"2.0\" score_id=\"900000000000003358\"/></scores><totals><total provider_id=\"900000000000000013\" sum_score=\"58.0\"/><total provider_id=\"900000000000000016\" sum_score=\"59.0\"/><total provider_id=\"900000000000000020\" sum_score=\"59.0\"/></totals></product></appraisement>", ENDITEM,
"Name=pronum", "Value=3", ENDITEM,
LAST);
这样一段脚本,通过关联取出score_id,如果存在1000个score_id就需要手工维护1000次,不知道有没有什么好一点的方法来做关联? <score score=\"10.0\" score_id=\"900000000000003325\"/>
不知道能不能就对这一段进行循环? 原帖由 开着拖拉机上班 于 2009-11-18 14:34 发表 http://bbs.51testing.com/images/common/back.gif
关联和参数化的概念你有点混淆了!
这个版块有一个帖子专门解释关联和参数化区别的,你搜搜看吧。
我的意思是用web_reg_save_param取出id值,如果存在多个id的话,它以id_1,id_2,形式保存,我想定义一个参数,把取到的id值存到这个参数里边进去, 你到底是想做关联呢还是想做参数化呢?
关联传说有自动关联啊!不一定非得手动做啊! 原帖由 开着拖拉机上班 于 2009-11-19 10:08 发表 http://bbs.51testing.com/images/common/back.gif
你到底是想做关联呢还是想做参数化呢?
关联传说有自动关联啊!不一定非得手动做啊!
自动关联做不出来,所以只能手动关联了!
页:
[1]