一、錄制的自帶的訂票系統,腳本回放錯誤 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.點擊Vuser->Scan Script. for Correlations點擊對比后的Correlate【右邊按鈕】即可。
b. 將Vuser->Run-Time Setting的
日志設置設置成擴展日志,在回放日志里面找到<input type=hidden name=userSession value=104241.774564601fDzVQDzpcHQVzzzHDcVHVpzVHzHf>中的value值進行關聯【Correlate上邊的 respon】。右鍵點擊Create Parameter
二、關聯函數后回放腳本
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=>" 即去掉空格
分析:
通常不是長度的問題,如果長度有問題就都出錯了。應該是服務器返回的數據問題,導致沒有找到這個參數。
26377錯誤的成因很多,總結最直接的結果就是No match found for the requested parameter "XXXXX"。意思就是沒有找到關聯變量匹配的值,實際上是沒有從返回報文中得到匹配的邊界結果。
可能的原因
1.腳本錯誤,確實沒有匹配上的值22,028次中出現2次,或許可以排除(但也不能完全排除)是腳本的錯誤。需要仔細看日志分析到此返回的結果是什么。
2. 參數列表錯誤,實際上還是造成了腳本運行錯誤,沒有返回正確的頁面和結果(可能根本就沒有正常到達你設想的頁面,由于特殊原因跳轉到某個地方去了)
3.服務器超載,沒有在規定時間內返回正確的網頁報文,當然就找不到數據了。(注意不要對同一條目重復進行查詢、更新等復雜造作)
4. web_set_max_html_param_len 過小,沒有足夠的空間儲存返回的報文,也就是,你要的信息在某個地方因為存儲空間不足被截斷了。設置更大的值可能會解決問題。