13 04, 2011

TFS SP1 and Lab Management–wait for the QFE – FIXED

By | 2011-04-13T08:25:11+00:00 April 13th, 2011|Coded UI, Microsoft Test Manager, Software Testing, Team Foundation Server, Visual Studio 2010, Visual Studio Lab Management|2 Comments

------------------------------------------------------------------------------------------- Update: Microsoft released a QFE to address the issue outlined below. Here is a summary of the list of issues fixed by the QFE, to help you decide whether you should apply the QFE: Issue 1: When you run tests on the test agent that is installed on a computer that has Visual Studio [...]

24 03, 2011

Screenshot on Test Failure

By | 2011-03-24T08:23:08+00:00 March 24th, 2011|Coded UI, Software Testing, Team Foundation Server|2 Comments

Neeraja Reddy from the testing team at Microsoft just provided a pretty cool code snippet to perform a screencapture - programmatically of a failed test: [TestCleanup()] public void MyTestCleanup() {     if (TestContext.CurrentTestOutcome == UnitTestOutcome.Failed)     {         Image img = UITestControl.Desktop.CaptureImage();         img.Save(Path.Combine(TestContext.TestResultsDirectory, "FailureSnapshot.png"));     } } By placing this code in the TestCleanup [...]