1. 程式人生 > >loadrunner幾種不同超時的處理方法

loadrunner幾種不同超時的處理方法

enc runner 通過 expire 時間 conn sta resource for

loadrunner幾種不同超時的處理方法

1.問題提出

大家在執行場景過程中,有時會出現" 27783、 27782……"錯誤,那麽為什麽會出現這些錯誤信息呢?

2.問題解答

這些問題的產生主要是因為連接超時而引起來的問題。可以通過在場景設計時單擊【Run-Time Setting】按鈕,然後在彈出的"Run-time Settings for script"對話框中,依次選擇"HTTP Properties > Preferences"項,再單擊【Options... 】按鈕,在彈出的"Advanced Options"對話框中調整一下"HTTP-request connect timeout (sec)、HTTP-request receive timeout (sec)、Step download timeout (sec)"設置來解決這些問題。下面針對不同的錯誤代碼,介紹一下應該調整的設置,保證場景執行成功。

(1)錯誤: 27783=Timeout (XXX seconds) exceeded while attempting to establish connection to host "http://....."。

解決方法:這種情況需要增加連接超時時間(HTTP-request connect timeout)。

(2)錯誤: 27782=Timeout (XXX seconds) exceeded while waiting to receive data for URL "http://....."。

解決方法:這種情況需要增加接收超時時間(HTTP-request receive timeout )。

(3)錯誤: 27730=Timeout of XXX expired when waiting for the completion of URL "http://....."。

解決方法:這種情況需要增加接收超時時間(HTTP-request receive timeout)。

(4)錯誤: 27751=Page download timeout (XXX seconds) has expired。

解決方法:這種情況需要增加連接超時時間(Step download timeout (sec))。

(5)錯誤: 27728=Step download timeout (XXX seconds) has expired when downloading non-resource(s)。

解決方法:這種情況需要增加連接超時時間(Step download timeout (sec))。

loadrunner幾種不同超時的處理方法