一、錄制的自帶的訂票系統(tǒng),腳本回放錯誤
Action.c(31): Error -27987: Requested image not found [MsgId: MERR-27987]
Action.c(31): web_image("Search Flights Button") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
解決辦法:
a.點(diǎn)擊Vuser->Scan Script. for Correlations點(diǎn)擊對比后的Correlate【右邊按鈕】即可。
b. 將Vuser->Run-Time Setting的日志設(shè)置設(shè)置成擴(kuò)展日志,在回放日志里面找到<input type=hidden name=userSession value=104241.774564601fDzVQDzpcHQVzzzHDcVHVpzVHzHf>中的value值進(jìn)行關(guān)聯(lián)【Correlate上邊的 respon】。右鍵點(diǎn)擊Create Parameter
二、關(guān)聯(lián)函數(shù)后回放腳本
Action.c(8): Error -26377: No match found for the requested parameter "login1". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
Action.c(8): web_url("WebTours") highest severity level was "ERROR", 6877 body bytes, 1808 header bytes [MsgId: MMSG-26388]
解決方案:
web_reg_save_param("login1",
"LB=name=userSession value=", "RB=(將這里空格刪了)>", LAST);
"RB= >"變成 "RB=>" 即去掉空格分析:
通常不是長度的問題,如果長度有問題就都出錯了。應(yīng)該是服務(wù)器返回的數(shù)據(jù)問題,導(dǎo)致沒有找到這個參數(shù)。
26377錯誤的成因很多,總結(jié)最直接的結(jié)果就是No match found for the requested parameter "XXXXX"。意思就是沒有找到關(guān)聯(lián)變量匹配的值,實際上是沒有從返回報文中得到匹配的邊界結(jié)果。
可能的原因
1.腳本錯誤,確實沒有匹配上的值22,028次中出現(xiàn)2次,或許可以排除(但也不能完全排除)是腳本的錯誤。需要仔細(xì)看日志分析到此返回的結(jié)果是什么。
2. 參數(shù)列表錯誤,實際上還是造成了腳本運(yùn)行錯誤,沒有返回正確的頁面和結(jié)果(可能根本就沒有正常到達(dá)你設(shè)想的頁面,由于特殊原因跳轉(zhuǎn)到某個地方去了)
3.服務(wù)器超載,沒有在規(guī)定時間內(nèi)返回正確的網(wǎng)頁報文,當(dāng)然就找不到數(shù)據(jù)了。(注意不要對同一條目重復(fù)進(jìn)行查詢、更新等復(fù)雜造作)
4. web_set_max_html_param_len 過小,沒有足夠的空間儲存返回的報文,也就是,你要的信息在某個地方因為存儲空間不足被截斷了。設(shè)置更大的值可能會解決問題。