資源描述:
《LoadRunner手動(dòng)關(guān)聯(lián)詳細(xì)介紹(有操作步驟截圖)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫(kù)。
1、LoadRunner關(guān)聯(lián)介紹自動(dòng)關(guān)聯(lián)自動(dòng)關(guān)聯(lián)比較簡(jiǎn)單,只要在Tools->RecordingOptions->Correlation設(shè)置可用就可以了。自動(dòng)關(guān)聯(lián)可能會(huì)出錯(cuò),所以不建議使用自動(dòng)關(guān)聯(lián)。手動(dòng)關(guān)聯(lián)錄制登錄腳本(青銅器網(wǎng)站為例)以下為關(guān)聯(lián)后的代碼。Action(){//Correlationcomment-Donotchange!Originalvalue='E282B0271708B45C31B1AA21498DFE5A'Name='CorrelationParameter_1'web_reg_save_param_ex("ParamName=CorrelationParam
2、eter_1","LB=Set-Cookie:JSESSIONID=","RB=;Path",SEARCH_FILTERS,"Scope=All","IgnoreRedirections=Yes","RequestUrl=*/index.jsp*",LAST);web_url("index.jsp","URL=http://192.168.0.123:3000/index.jsp","Resource=0","RecContentType=text/html","Referer=","Snapshot=t18.inf","Mode=HTML",LAST);web_custom_re
3、quest("jSystemFilterBean.IsShowValidateCode.dwr","URL=http://192.168.0.123:3000/dwr/call/plaincall/jSystemFilterBean.IsShowValidateCode.dwr","Method=POST","Resource=0","RecContentType=text/javascript","Referer=http://192.168.0.123:3000/index.jsp","Snapshot=t19.inf","Mode=HTML","EncType=text/pl
4、ain","Body=callCount=1""page=/index.jsp""httpSessionId={CorrelationParameter_1}""scriptSessionId=750F49C3DA1731E1EF25170F88D6526D843""c0-scriptName=jSystemFilterBean""c0-methodName=IsShowValidateCode""c0-id=0""c0-param0=string:10.36.0.133""batchId=0",LAST);web_add_cookie("use
5、rname=c929;DOMAIN=192.168.0.123");web_add_cookie("userpassword=;DOMAIN=192.168.0.123");web_submit_data("j_security_check;jsessionid=E282B0271708B45C31B1AA21498DFE5A","Action=http://192.168.0.123:3000/j_security_check;jsessionid={CorrelationParameter_1}","Method=POST","RecContentType=text/html"
6、,"Referer=http://192.168.0.123:3000/index.jsp","Snapshot=t20.inf","Mode=HTML",ITEMDATA,"Name=isExpires","Value=1",ENDITEM,"Name=sessionIndex","Value=",ENDITEM,"Name=j_username","Value=c929",ENDITEM,"Name=j_password","Value=MTIzNDU2",ENDITEM,"Name=j_showcode","Value=N",ENDITEM,"Name=j_validatec
7、ode","Value=",ENDITEM,"Name=BROWSER_VERSION","Value=8",ENDITEM,"Name=REMOTE_LANGUAGE","Value=zh-cn",ENDITEM,EXTRARES,"URL=/images/buttonmenu/menu_downarrow_white.png","Referer=http://192.168.0.123:3000/main.do",ENDITEM,"URL=/images/icon