|
各位:
我在两台机器上装了loadrunner9.5的版本,然后对同一个地址录制脚本,录制完成后发现两个脚本不同,A脚本如下:
lr_start_transaction("点击登录、");
web_submit_data("Login.aspx_2",
"Action=http://192.168.0.8/TestIBM4/Login.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.0.8/TestIBM4/Login.aspx",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value=/wEPDwUKLTUwMjk2MDk5MmQYAQUMdmFsaWRhdGVDb2RlDw9kBSQ1YTU1ODliMS1jY2EzLTRmYzYtODQxZS1iN2ViYTZlMWM1NTVkx4m/feP2Y5qSUeLFNgVf8q32ANw=", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWBQK674WVBgLcgpeMBwLGmdGVDAKMhs7EAgKfwImNCywL3iF4Uc1oSNpVFtEFseHfSbY3", ENDITEM,
"Name=user", "Value={NewParam}", ENDITEM,
"Name=pwd", "Value=qwe123", ENDITEM,
"Name=validate", "Value=", ENDITEM,
"Name=ctl02", "Value=鐧诲綍", ENDITEM,
"Name=screenHeight", "Value=930", ENDITEM,
"Name=clientHeight", "Value=759", ENDITEM,
EXTRARES,
"Url=images/bottom_mid.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/bottom_left.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/bottom_right.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/serviceonline.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/hometopbg.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/exit_off.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/menubar_bottombg.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/hometopimg.jpg", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/positionBack.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/menubar_leftline.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/grouptitlebg.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/menuitem_offbg.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/menuitem_linked.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/leftmenubg_on.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/arrow1.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/leftmenuitembg.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
LAST);
web_url("MainPage.aspx",
"URL=http://192.168.0.8/TestIBM4/MainPage.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.8/TestIBM4/home.aspx",
"Snapshot=t6.inf",
"Mode=HTML",
EXTRARES,
"Url=images/work_input.gif", ENDITEM,
"Url=images/ico_avigation.png", ENDITEM,
"Url=images/sidebartop_bg.gif", ENDITEM,
"Url=images/mytaskbg_left.gif", ENDITEM,
"Url=images/mytaskbg_right.gif", ENDITEM,
"Url=images/img_Consultant.gif", ENDITEM,
"Url=images/icon_edit.gif", ENDITEM,
"Url=images/img_OnlineService.gif", ENDITEM,
"Url=images/subtab.gif", ENDITEM,
"Url=images/tab_button.gif", ENDITEM,
"Url=images/newDot.gif", ENDITEM,
"Url=images/more.gif", ENDITEM,
"Url=images/search_img.gif", ENDITEM,
LAST);
lr_end_transaction("点击登录、",LR_AUTO);
B脚本如下:
lr_start_transaction("点击登录");
web_submit_data("Login.aspx_2",
"Action=http://192.168.0.8/TestIBM4/Login.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.0.8/TestIBM4/Login.aspx",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value=/wEPDwUKLTUwMjk2MDk5MmQYAQUMdmFsaWRhdGVDb2RlDw9kBSRjMjQyMmJiMS02MGViLTRiYjYtOThmYS02OWFhMWQ2Y2ZiMTZkQzPZqoKxux8Xhr3j/4aK3MBwY0M=", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWBQKsnb7vCwLcgpeMBwLGmdGVDAKMhs7EAgKfwImNC3/dIUsMtyU0zMGNbkU3BpyW4TQJ", ENDITEM,
"Name=user", "Value=test00001", ENDITEM,
"Name=pwd", "Value=qwe123", ENDITEM,
"Name=validate", "Value=", ENDITEM,
"Name=ctl02", "Value=鐧诲綍", ENDITEM,
"Name=screenHeight", "Value=930", ENDITEM,
"Name=clientHeight", "Value=782", ENDITEM,
LAST);
web_submit_data("Login.aspx_3",
"Action=http://192.168.0.8/TestIBM4/Login.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.0.8/TestIBM4/Login.aspx",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value=/wEPDwUKLTUwMjk2MDk5MmQYAQUMdmFsaWRhdGVDb2RlDw9kBSRjMjQyMmJiMS02MGViLTRiYjYtOThmYS02OWFhMWQ2Y2ZiMTZkQzPZqoKxux8Xhr3j/4aK3MBwY0M=", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWBQKsnb7vCwLcgpeMBwLGmdGVDAKMhs7EAgKfwImNC3/dIUsMtyU0zMGNbkU3BpyW4TQJ", ENDITEM,
"Name=user", "Value=test00001", ENDITEM,
"Name=pwd", "Value=qwe123", ENDITEM,
"Name=validate", "Value=", ENDITEM,
"Name=ctl02", "Value=鐧诲綍", ENDITEM,
"Name=screenHeight", "Value=930", ENDITEM,
"Name=clientHeight", "Value=782", ENDITEM,
EXTRARES,
"Url=images/hometopbg.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/bottom_mid.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/bottom_right.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/bottom_left.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/serviceonline.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/hometopimg.jpg", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/exit_off.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/menubar_bottombg.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/positionBack.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/menubar_leftline.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/menuitem_offbg.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/menuitem_linked.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/grouptitlebg.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
"Url=images/leftmenubg_on.gif", "Referer=http://192.168.0.8/TestIBM4/home.aspx", ENDITEM,
LAST);
web_url("MainPage.aspx",
"URL=http://192.168.0.8/TestIBM4/MainPage.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.8/TestIBM4/home.aspx",
"Snapshot=t10.inf",
"Mode=HTML",
LAST);
web_url("全球最理想雇主50强出炉 11-6",
"URL=http://192.168.0.8/TestIBM4/MainPage.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.8/TestIBM4/home.aspx",
"Snapshot=t11.inf",
"Mode=HTML",
EXTRARES,
"Url=images/ico_avigation.png", ENDITEM,
"Url=images/sidebartop_bg.gif", ENDITEM,
"Url=images/icon_edit.gif", ENDITEM,
"Url=images/img_Consultant.gif", ENDITEM,
"Url=images/img_OnlineService.gif", ENDITEM,
"Url=images/mytaskbg_left.gif", ENDITEM,
"Url=images/mytaskbg_right.gif", ENDITEM,
"Url=images/subtab.gif", ENDITEM,
"Url=images/tab_button.gif", ENDITEM,
"Url=images/work_input.gif", ENDITEM,
"Url=images/search_img.gif", ENDITEM,
"Url=images/more.gif", ENDITEM,
"Url=images/newDot.gif", ENDITEM,
LAST);
lr_end_transaction("点击登录",LR_AUTO);
疑问:为什么在B脚本中会联系出现两个相同的web_submit_date呢?还有B脚本中还多了绿色的那部分代码?谢谢~~ |
|