1. 程式人生 > >loadrunner的幾種常見錯誤

loadrunner的幾種常見錯誤

reference ant 可能 存儲空間不足 ppi gen services 電腦 incr

轉自網絡

loadrunner的幾種常見錯誤及解決辦法1錄;解決:、;在錄制選項option-network-;2在回放腳本時出現的錯誤;Action.c(33)Error-35061;解決方法:可以用web_set_max_html;ParamName=Correlat;LB=c,;RB=n

loadrunner的幾種常見錯誤及解決辦法 1錄制loadrunner腳本時,無法生成腳本,錄制過程中事物都有顯示,我把所有防火墻和網絡保護都關了,但是腳本就是無法生成,協議之類的都是對的。

解決:、

在錄制選項option-network-ort Mapping 中的Capture levet選擇Socket level and WinNet level data試試

2在回放腳本時出現的錯誤

Action.c(33) Error -35061 No match found for the requested parameter CorrelationParameter_1. 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-35061]

解決方法:可以用web_set_max_html_param_len增加參數長度,我試過到99999999共8位;還有,你可以在web_reg_save_param_ex(

ParamName=CorrelationParameter_3,

LB=c,

RB=ntable border,

後面 加上 NotFound=warning, 保存編譯下,就不回再提是錯誤了。

主要是自動關聯造成的左右邊界定位不精確,需要保存的值大

3 Error -27987 Requested image not found [MsgId MERR-27987]

打開Mercury Tours

選擇Start Programs Mercury LoadRunner Samples Web Mercury Web Tours Application. 在瀏覽器中打開Mercury Tours網頁。

更改服務器選項

在左側的面板中單擊SERVER OPTION.選擇Setting 3選項。滾動頁面到底部,單擊Reconfigure Server Details按鈕。單擊Return to the Mercury Tours Homepage鏈接。這個設置時告訴服務器不允許重復的session IDs

註:如果你的電腦上安裝了IIS, 你需要修改這個應用的設置。在xitami文件夾中查哨xitami.cfg文件,在文本編輯器中打開它,定位到portbase=1000, 並將其修改成portbase=1001,保存並關閉文件

改為Name=userSession, Value={userSession}, ENDITEM,

4. Eerror -27727 Step download timeout (120 seconds) has expired when downloading

resource(s). Set the Step Timeout caused by resources is a warning Run-Time Setting to YesNo to have this message as a warningerror, respectively 解決辦法:

Run-Time Setting -Internet Protocol -Preferences -Option - Step

download timeout(sec)改為32000.

將HTTP-request connect timeout和HTTP-request receive timeout設為1000.

5. Error -27780 connect to host 172.16.83.219 failed [10054] Connection reset

by peer

解決辦法:

web_set_sockets_option(CLOSE_KEEPALIVE_CONNECTIONS, 1);在vugen 內, run-time settings->preferences->勾上WININET replay instead of Sockets。

6. Error -27764 Request https172.16.83.219u_valid_crl1.pfx failed 解決辦法:

Run-Time Setting -Internet Protocol -Preferences -Advanced勾選winInet replay instead of Sockets(Windows only)

7. Error -27796 Failed to connect to server 172.16.83.219443 [10060]

Connection timed out

解決辦法:

將註冊表

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters中的TcpTimedWaitDelay改小

使用多個負載生成器

8. Error -27790 Failed to read data from server 192.168.3.213 [10053] Software

caused connection abort

解決辦法:

web_set_sockets_option(OVERLAPPED,0); 在web_set_sockets_option裏用TCP_BUFFER_SIZE增加buffer的大小

szwebt06 Error -26377 Action.c(53) Error -26377 No match found for the

requested parameter TransitionId. 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。。。。。。

現在的問題是腳本沒有問題,總共實行了22,028次,關於26377的錯誤只出現兩次。 分析:

通常不是長度的問題,如果長度有問題就都出錯了。應該是服務器返回的數據問題,導致沒有找到這個參數。

26377錯誤的成因很多,總結最直接的結果就是No match found for the requested

parameter XXXXX。意思就是沒有找到關聯變量匹配的值,實際上是沒有從返回報文中得到匹配的邊界結果。

可能的原因

1.腳本錯誤,確實沒有匹配上的值22,028次中出現2次,或許可以排除(但也不能完全排除)是腳本的錯誤。需要仔細看日誌分析到此返回的結果是什麽。

2. 參數列表錯誤,實際上還是造成了腳本運行錯誤,沒有返回正確的頁面和結果(可能根本就沒有正常到達你設想的頁面,由於特殊原因跳轉到某個地方去了)

3.服務器超載,沒有在規定時間內返回正確的網頁報文,當然就找不到數據了。(註意不要對同一條目重復進行查詢、更新等復雜造作)

4. web_set_max_html_param_len 過小,沒有足夠的空間儲存返回的報文,也就是,你要的信息在某個地方因為存儲空間不足被截斷了。設置更大的值可能會解決問題。

26377 這個錯誤很常見,但是原因有多種,你再提供更多的信息,可能能幫你找點原因

loadrunner的幾種常見錯誤