天天看點

設定Loadrunner負載機臨時檔案目錄

  此處分兩種情況:

  一. 修改本機的臨時檔案

  1. 觀察壓力機産生的臨時檔案都是在  %userprofile%\local settings\temp 下,于是在“我的電腦”——“屬性”——“進階”——“環境變量”裡修改了temp和tmp變量

  此處設定它們的值都未 "d:\temp",運作發現結果仍然儲存在%userprofile%\local settings\temp下。

  在ms-dos視窗執行

  wmic environment where "name='temp'" get username,variablevalue

  wmic environment where "name='tmp'" get username,variablevalue

  檢視‘nt authority\system’ temp和tmp 環境變量仍然是%userprofile%\local settings\temp ,并沒用因為上面的設定而改變,是以沒有起到效果

  為了修改它們,分别執行

  wmic environment where "name='temp' and username like '%system'" set variablevalue='%temp%'

  wmic environment where "name='tmp' and username like '%system'" set variablevalue='%temp%'

  将nt authority\system的環境變量指向系統的temp變量! 執行成功. 再次運作壓測,發現臨時檔案已經到d:\temp檔案夾了..

  二. 修改其他負載機(協作施壓)

  1 .“我的電腦”——“屬性”——“進階”——“環境變量”裡修改了temp和tmp變量

  此處設定它們的值都為 "d:\temp",

  2.  進入loadrunner controller ,菜單 secnario --- load generator --- 設定協作負載機的臨時檔案路徑

設定Loadrunner負載機臨時檔案目錄

  單擊 details按鈕 --->

設定Loadrunner負載機臨時檔案目錄

  在如圖頁籤中中,選擇第二個選項....

  即可...

最新内容請見作者的github頁:http://qaseven.github.io/