2013-04-16 24 views
0

當打開應用程序中的加密URL時,我應該加載測試,即使是一個URL的第一個導航是不可能記錄。我正在錄製的瀏覽器給我一個不能顯示的頁面。 創建手動web_url()函數會導致錯誤。以下是腳本和輸出日誌。 以前有人成功地設法對這種安全技術編寫腳本嗎?並沒有使用相關性不能解決這個問題,因爲我甚至沒有到第一頁。LoadRunner和加密的URL

Action() 

{ 

    web_url("entrypoint", 

      "URL=http://e34jbsl00430.devillo.com:8080/entrypoint/", 

      "Resource=0", 

      "RecContentType=text/html", 

      "Referer=", 

      "Snapshot=t1.inf", 

      "Mode=HTML", 

      LAST); 



    return 0; 

} 











Virtual User Script started at : 2013-04-16 17:15:30 

Starting action vuser_init. 

Web Turbo Replay of LoadRunner 11.0.0 for Windows 7; build 9375 (May 18 2011 01:44:32) [MsgId: MMSG-27143] 

Run Mode: HTML [MsgId: MMSG-26000] 

Run-Time Settings file: "C:\Users\F119506\AppData\Local\Temp\noname5\\default.cfg"  [MsgId: MMSG-27141] 

Ending action vuser_init. 

Running Vuser... 

Starting iteration 1. 

Starting action Action. 

Action.c(4): Redirecting "http://e34jbsl00430.devillo.com:8080/entrypoint/" (redirection depth is 0)  [MsgId: MMSG-26694] 

Action.c(4): To location "http://e34jbsl00430.devillo.com:8080/entrypoint/lL0pQMU3EnM;ENTRYPOINT_JSESSIONID=Z1s9WbTfYw0BW8LrXFckprZS" [MsgId: MMSG-26693] 

Action.c(4): Error -26627: HTTP Status-Code=404 (Not Found) for "http://e34jbsl00430.devillo.com:8080/entrypoint/lL0pQMU3EnM;ENTRYPOINT_JSESSIONID=Z1s9WbTfYw0BW8LrXFckprZS"  [MsgId: MERR-26627] 

Action.c(4): web_url("entrypoint") highest severity level was "ERROR", 0 body bytes, 595 header  bytes, 5 chunking overhead bytes   [MsgId: MMSG-26387] 

Ending action Action. 

Ending iteration 1. 

Ending Vuser... 

Starting action vuser_end. 
Ending action vuser_end. 

Vuser Terminated. 

回答

0

添加報頭解決了這個:

web_add_header( 「曲奇」, 「JSESSIONID =虛設」);

0

不確定加密的鏈接是什麼。它似乎是純文本,請澄清....

它確實可能是一個臨時重定向鏈接,重定向在會話結束時消失。我會尋找如何使用本地代碼獲取或計算開始時的動態組件。

+0

由開始時的動態國家,我想你的意思是lL0pQMU3EnM,對吧? –

+0

lL0pQMU3EnM是唯一的每次我輸入的網址和回車,完全像一個sessionid被添加到URL –

+0

我懷疑一些重定向發生「底層」導致這個動態內容在URL中創建。提供的日誌在包含關鍵字重定向時提示了這一點? –

0

你輸入什麼作爲要訪問的URI根目錄?你有沒有考慮改變請求,然後允許重定向從返回的HTTP頭自然發生?

+0

我輸入http://e34jbsl00430.devillo.com:8080/entrypoint/並回車,然後在第一個(登錄頁面顯示)之前將動態/加密元素添加到URL中。允許重定向?設置重定向深度?我如何告訴VUGen自然允許重定向? –

+0

您的重定向正在發生,但它失敗。檢查Web服務器日誌以獲取來自Web服務器管理員的輸入。 –