1. 程式人生 > 實用技巧 >Microsoft Visual Studio 2010 Load Test Feature Pack安裝排錯

Microsoft Visual Studio 2010 Load Test Feature Pack安裝排錯

遇到Load Test相關資料庫報錯

---------------------------
Microsoft Visual Studio
---------------------------
The load test results database could not be opened. Check that the load test results database specified by the connect string for your test controller (or local machine) specifies a database that contains the load test schema and that is currently available. For more information, see the Visual Studio help topic 'About the Load Test Results Store'. The connection error was: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

---------------------------
OK
---------------------------

- 方法一:可嘗試在保持測試結論的資料庫例項手動執行C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\oadtestresultsrepository.sql

- 方法二:Detach原LoadTest2010資料庫後重新Attach

115726914.png

- 方法三:修改資料庫儲存的配置

  1. 從“Test”選單中單擊“Manage Test Controllers”。此時將顯示“Manage Test Controller”對話方塊。如果要遠端使用代理,則必須選擇一個控制器。


114332196.png

  1. 在“Load test results store”中單擊 (…),以顯示“Connection Properties”對話方塊。

  2. 在“Server Name”中,鍵入在其中執行 LoadTest 指令碼的伺服器的名稱。

  3. 在“Log on to the server”下,可以選擇“Windows Authentication”。可以指定使用者名稱和密碼,但是如果要指定就必須選擇“Save password”選項。

  4. 在“Test Connection”下,選擇“Select or enter a database name”。從下拉列表框中選擇“LoadTest2010”。

  5. 單擊“OK”。通過單擊“Test Connection”可以測試該連線。

  6. 在“Manage Test Controller”對話方塊中單擊“Close”。