1 / 17

Testing μέσα από το Visual Studio!

31/5/2012. Testing μέσα από το Visual Studio!. 31/5/2012. Testing για τον Προγραμματιστή. Γιώργος Καρκαλής SafeCape Software Solutions. Agenda. Unit testing Code coverage Profiling / Performance VS11 – what’s new Exploratory testing Azure for testing Tips & tricks.

cybele
Download Presentation

Testing μέσα από το Visual Studio!

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 31/5/2012 Testing μέσα από το Visual Studio!

  2. 31/5/2012 Testing για τον Προγραμματιστή Γιώργος Καρκαλής SafeCape Software Solutions

  3. Agenda • Unit testing • Code coverage • Profiling / Performance • VS11 – what’s new • Exploratory testing • Azure for testing • Tips & tricks

  4. Unit testing • Primary goal : • take the smallest piece of testable software • isolate it from the remainder of the code • determine whether it behaves exactly as expected int c = Add(1, 2) Assert.AreEqual(3, c);

  5. Unit testing in VS • VS2010 : Microsoft Unit Testing Framework • Based on Attributes • [TestClass] • [TestInitialize] • [TestMethod] • ... • VS11: Support for any Unit Testing framework • xUnit, nUnit... • Common Unit Test Explorer

  6. DemoUnit Testing

  7. Code Coverage • Τι ποσοστό του κώδικα καλύπτουν τα unit tests που έχω φτιάξει • Code Instrumentation • Block-based statement coverage • Line-based coverage • Source code color highlighting

  8. DemoCode Coverage

  9. Profiler – Performance Analysis • Identify appl hotspots and memory leaks • Tier Interaction profiling • Database / ADO.NET • Modes: • CPU Sampling • Instrumentation • Concurrency • .NET Memory Allocation • Integration with Web tests – Load tests • Reports comparison

  10. DemoProfiler – Performance Analysis

  11. Visual Studio 11 – what’s new • Customer Feedback • Exploratory testing (TFS) • Unit test explorer • 3rd party frameworks • Performance improvements (test execution) • 64-bit test execution • Async Unit Test support (.NET 4.5) • Fakes & Shims • Continuous run tests after build

  12. DemoVS 11 Exploratory Testing

  13. Azure as testing rig

  14. DemoAzure testing rig

  15. DemoTesting tips & tricks

  16. Ερωτήσεις

  17. Usefull resources • Content Index for Unit Test • http://blogs.msdn.com/b/mathew_aniyan/archive/2012/05/17/content-index-for-unit-test.aspx • Content Index for Coded UI Test • http://blogs.msdn.com/b/mathew_aniyan/archive/2010/02/11/content-index-for-coded-ui-test.aspx • Content Index for Web Tests and Load Tests • http://blogs.msdn.com/b/edglas/archive/2007/12/17/content-index-for-web-tests-and-load-tests.aspx • Using Visual Studio Load Tests in Windows Azure Roles • http://msdn.microsoft.com/en-us/library/windowsazure/hh674491.aspx

More Related