51Testing软件测试论坛
标题:
Loadrunner关联和文本检查
[打印本页]
作者:
嘿嘿哈
时间:
2013-8-21 22:30
标题:
Loadrunner关联和文本检查
系统为B/S框架,在一个页面查看源文件,里面没有显示页面HTML代码,
之前用web_reg_save_param 和 web_reg_find 函数想做关联和文本检查,但都提示找不到相应的页面元素,
请问有什么办法可以做关联和文本检查?
谢谢!
作者:
地壳
时间:
2013-8-22 09:51
可以看一下你的脚本吗?
作者:
嘿嘿哈
时间:
2013-8-25 17:28
web_url("costapplylist.php_4",
"URL=http://20.1.41.121:8072/costapply/costapplylist.php?PageNo=2&selectIDs=&doGetListData=1&_dc=1373417629262",
"Resource=0",
"RecContentType=text/html",
"Referer=http://20.1.41.121:8072/homeframe.php",
"Snapshot=t35.inf",
"Mode=HTML",
LAST);
lr_start_transaction("expense_requisition_view_page");
web_submit_data("puttabidtosession.php_7",
"Action=http://20.1.41.121:8072/ajax/puttabidtosession.php?rnd=0.9751601435712234",
"Method=POST",
"RecContentType=text/html",
"Referer=http://20.1.41.121:8072/homeframe.php",
"Snapshot=t36.inf",
"Mode=HTML",
ITEMDATA,
"Name=currentTabID", "Value=tab8", ENDITEM,
"Name=parentTabID", "Value=tab2", ENDITEM,
"Name=isPop", "Value=", ENDITEM,
"Name=closedTabID", "Value=tab3", ENDITEM,
LAST);
web_submit_data("costapplyview.php",
"Action=http://20.1.41.121:8072/costapply/costapplyview.php?ID=9392a252a3c3e314f4c4f484824313f4d3d243d3b4a3a24313b3e38243a4b4f3d3e3f3148483b4d3d&_dc=1373417662484",
"Method=POST",
"RecContentType=text/html",
"Referer=http://20.1.41.121:8072/homeframe.php",
"Snapshot=t37.inf",
"Mode=HTML",
ITEMDATA,
"Name=PageId", "Value=tab8", ENDITEM,
"Name=ParentPageId", "Value=tab2", ENDITEM,
LAST);
web_url("costapplyview.php_2",
"URL=http://20.1.41.121:8072/costapply/costapplyview.php?ID=9392a252a3c3e314f4c4f484824313f4d3d243d3b4a3a24313b3e38243a4b4f3d3e3f3148483b4d3d&type=10&_dc=1373417663860&Action=getRelData&ns=REL_OPPORTUNITY%2CREL_QUOTE%2CREL_ACTIVITIES%2CREL_CONTRACT%2CREL_COSTAPPLYITEMS%2CREL_NEEXPENVOUCH%2CREL_SALEPAYVOUCH",
"Resource=0",
"RecContentType=text/html",
"Referer=http://20.1.41.121:8072/homeframe.php",
"Snapshot=t38.inf",
"Mode=HTML",
LAST);
lr_end_transaction("expense_requisition_view_page",LR_AUTO);
第一段是进入一个列表页面,想在它前面加了 web_reg_save_param 函数来取得 ID,再关联到后面的ID里,这样每次就可以查看不同的数据
作者:
msnshow
时间:
2013-8-25 22:15
边界不对吧
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2