Tag Archives: Test

關於 Web Performance Test 搭配 Load Test 時,快取設定的應用

不錯的 Blog:All About Caching and How Visual Studio Simulates Browser Caches http://blogs.msdn.com/b/geoffgr/archive/2013/12/11/all-about-caching-and-how-visual-studio-simulates-browser-caches.aspx

Web Performance Test 和 Load Test 測試 Reporting Services

透過 VS 的 Web Performance Test 和 Load Test 測試 Reporting Services 時,透過 rc:Toolbar=false 不要出現 Toolbar Control 可以避免一些不明所以的錯誤

Visual Studio 2010 Ultimate 負載測試

先前撰寫的文件

http://cid-bf14192bd27975cb.office.live.com/view.aspx/%e8%87%aa%e8%a3%bd%e6%95%99%e6%9d%90/VS2010%e8%b2%a0%e8%bc%89%e6%b8%ac%e8%a9%a6.docx

裝了 TFS / VS 2010 SP1 對測試的一些影響

與 SP1 無關,與 IE9 的整合:

  • Coded UI Test 可以搭配,沒有什麼差異。
  • Web 效能測試也可以透過 IE9 錄製 Http,依然要停用 IE 增強式安全(IE ESC),才能錄 Ajax,但未停用 IE ESC 之前,是否可用 Web 測試錄製器 10.0 的呈現方式不同,要按 alt 鍵叫出選單

image

沒有用 Team Build,但要在測試計畫中參考 Build

參考

Automated Testing in VSTS / TFS 2010

建立假 Build 的程式碼,改寫自

Creating Fake builds in TFS Build 2010

的 Sample Code

http://cid-bf14192bd27975cb.office.live.com/self.aspx/Source/TFS%5E_VS/TFSAddFakeBuild.zip

VS 2010 Feature Pack 2

感謝 Dann 來信告知:

VS 2010 Feature Pack 2 已於今天 (11/17) 正式提供給VS Ultimate, VS Premium or Test Professional 版之MSDN訂閱者下載,主要針對 Silverlight & Firefox App. 的Coded UI Test的支援,

Visual Studio 2010 Feature Pack 2 is released and available to MSDN subscribers.

The feature pack has the following features:

  • Use Microsoft Test Manager to capture and playback action recordings for Silverlight 4 applications.
  • Create coded UI tests for Silverlight 4 applications with Visual Studio 2010 Premium or Visual Studio 2010 Ultimate.
  • Edit coded UI tests using a graphical editor with Visual Studio 2010 Premium or Visual Studio 2010 Ultimate.   <—這讓 Coded UI Test 有圖形化編輯畫面,藉由編輯 XML(UIMap.uitest) 再產生 Code,提供 Coded UI Test  除錄製寫程式外,一個較友善的客製化界面
  • Use action recordings to fast forward through manual tests that need to support Mozilla Firefox 3.5 and 3.6.
  • Run coded UI tests for web applications using Mozilla Firefox 3.5 and 3.6 with Microsoft Visual Studio 2010 Premium or Visual Studio 2010 Ultimate.
  • Code visualization and modeling features that were part of Feature Pack 1.

For more details, see http://go.microsoft.com/fwlink/?LinkID=192777.

搭配 Test Manager 建立測試文件

為測試計畫建立 Word 文件

Test Scribe for Visual Studio Ultimate 2010 and Test Professional 2010

image

image

TFS 提供的測試報告

來函詢問:

一、手動測試:

1. Test Manager 測試中心->計畫->屬性 最下方測試的分析圖表,可分為以下三種,請問各代表什麼意思?

l 測試的目前狀態

l 失敗的測試-依原因區分

l 失敗的測試-依分析區分

1. 請問同一個測試案件,有成功次數及失敗次數嗎?(長官愛看報表)

二、自動化測試:

1. 請問在自動化測試的部分有產制分析圖表的功能嗎?

2. 請問測試專案的程式,若我搬至另一台機器執行?或者換TFS Server?結果是否都會相同?

 

 

測試的目前狀態 就是目前各測試案例的累計執行狀況

在測試頁籤,滑鼠雙擊測試案例,檢視執行結果時,可以下拉選單選取 失敗類型 和 解決方式,這會改變

失敗的測試-依原因區分

 失敗的測試-依分析區分

下方就是各次的執行”結果記錄”,雙擊某次”結果記錄”可以看到執行細節

clip_image002

以 Work Item 關聯的自動化,不管是透過 Test Manager 手動啟動或以 Build 流程啟動,都是交由 Test Agent 執行,其結果會放入 SQL DB,經 DW 和 AS 後,可以透過 Excel 等前端程式來看

clip_image004

自動化測試要跟 Work Item 關聯起來,並放到 Source Control,搬到另外一個 TFS DB,還是要設定這些關聯性。

自動化測試成功與否應該是看待測環境與程式,應與 TFS 本身無太大關係。

Unit Testing WCF Services

Lab Management 儲存 VM 程式庫發生 TF259115 錯誤

image

image

選取位置是選擇 SCVMM 設定的專案主機群組

image

主機群組內的主機之放置設定要小心,選擇快一點的硬碟

image

image

若發生TF259115 錯誤

image 

可透過以下設定,將原設定 Conservative 換成 aggressive

image

C:Program FilesMicrosoft Team Foundation Server 2010Tools>tfsconfig lab /hostGroup /collectionName:DefaultCollection /edit /name:所有主機_myGroup_Byroni7 /labenvironmentplacementpolicy:aggressive
傳送到檔案 C:ProgramDataMicrosoftTeam FoundationServer ConfigurationLogsCF
G_SET_URL_0816_140503.log 的記錄
命令: lab
TfsConfig – Team Foundation Server 組態工具
Copyright (C) Microsoft Corporation. All rights reserved.
您確定要更新這個主機群組的設定嗎? (是/否) y
已成功套用要求的變更。