2012-08-24 36 views
1

我已經在Visual Studio 2010中設置了一個加載測試,運行它幾次,然後將數據導出到SQL數據庫中。這應該是這樣做的典型方式。它具有所有這些標準表:查詢Visual Studio 2010從SQL表中加載測試數據

http://blogs.msdn.com/b/billbar/archive/2006/02/10/what-is-the-data-in-the-vsts-load-test-results-store.aspx

我嘗試查詢「時間到第一字節」特定requestURI在測試。

關於如何把這個查詢放在一起的任何想法?其中table是實際存儲在特定URI中的「第一個字節的時間」?是否有網站列出這些負載測試數據庫的常見查詢?

謝謝。

回答

1

我想我明白了:

/****** Script for SelectTopNRows command from SSMS ******/ 
SELECT TOP 1000 [LoadTestRunId] 
     ,[CounterId] 
     ,[InstanceId] 
     ,[LoadTestItemId] 
     ,[InstanceName] 
     ,[CumulativeValue] 
     ,[OverallThresholdRuleResult] 
    FROM [LoadTest2010].[dbo].[LoadTestPerformanceCounterInstance] where 
    LoadTestItemId = 12 -- The specific element in the web page I'm interested in 
    and LoadTestRunId = 127 -- The specefic load test run I am using 
    and CounterId = 78 -- The time to first byte metric 
相關問題