300 likes | 401 Views
Virtualisation of the Test Environment. Richard Fennell Engineering Director, Black Marble. @ RichardFennell. http://blogs.blackmarble.co.uk/blogs/rfennell. rfennell@blackmarble.co.uk. Agenda. The development cycle Virtualisation with Lab Management Load Testing with Load Test Agent.
E N D
Virtualisation of the Test Environment Richard FennellEngineering Director, Black Marble @RichardFennell http://blogs.blackmarble.co.uk/blogs/rfennell rfennell@blackmarble.co.uk
Agenda • The development cycle • Virtualisation with Lab Management • Load Testing with Load Test Agent
Team Foundation Server (TFS) • System Center Management Stack • Lab Management • Test Case management • Operations Manager • Virtualization Platform • Build management • Work Item Tracking • Hyper-V • Virtual Machine Manager • Source Control
How to Install TFS Lab Management • Install TFS 2010 • Install GDR patch to enable Lab Management (or Service pack 1) • Install a SCVMM Server • Install SCVMM Admin Console on TFS server • On SCVMM Server configure hosts and shares
How to Install TFS Lab Management • Install TFS 2010 • Install GDR patch to enable Lab Management (or Service pack 1) • Install a SCVMM Server • Install SCVMM Admin Console on TFS server • On SCVMM Server configure hosts and shares • Tell TFS the SCVMM server address
How to Install TFS Lab Management • Install TFS 2010 • Install GDR patch to enable Lab Management (or Service pack 1) • Install a SCVMM Server • Install SCVMM Admin Console on TFS server • On SCVMM Server configure hosts and shares • Tell TFS the SCVMM server address • On each TPC configure lab settings
How to Install TFS Lab Management • Install TFS 2010 • Install GDR patch to enable Lab Management (or Service pack 1) • Install a SCVMM Server • Install SCVMM Admin Console on TFS server • On SCVMM Server configure hosts and shares • Tell TFS the SCVMM server address • On each TPC configure lab settings • And now the work starts……..
Lab Management Concepts • Environment • VMs • Templates • Snapshots • Controllers and Agents
What controls what? TFS Team Project Collection Test Controller Environment Build Controller Each VM in Environment Developer Test Agent Build Agent Build Agent Lab Agent Build Agent
Lab Management Concepts • Environment • VMs • Templates • Snapshots • Controllers and Agents • Network Isolation
Lab Management Concepts • Environment • VMs • Templates • Snapshots • Controllers and Agents • Network Isolation • Host and Guest Connections
Process of End to End Testing Ordinary Build Performed Start Lab Build Build Report Stored Request the Lab Lab Build Requested Deploy the software Run automated Tests Triage Issues Run Manual Tests
Demo Lab Management
Load Testing • Microsoft has provided load testing since Visual Studio 2005 • Enables stress testing of application, building on the test you have already written • Since May 2011, the Load Test Agent has become free as part of the Load Testing Feature Pack (you do need VS 2010 Ultimate too)
Load Test Architecture A Local PC Visual Studio 2010 Ultimate Test Controller (Manages Test Agents) Test Agent (Runs Tests)
Load Test Architecture A Developers PC Test Controller PC Test Controller (Manages Test Agents) Visual Studio 2010 Ultimate Another PC Another PC Test Agent (Runs Tests) Test Agent (Runs Tests) Another PC Test Agent (Runs Tests)
Demo LoAD Testing
Summary • Delivering quality software is not just about programming • Automated builds bring repeatable quality to a project • Lab Management can extend this into both automated and manual testing with a fully integrated solution • Load testing is now available to all, building on the test you have already written
Resources • Visual Studio 2010 http://www.microsoft.com/visualstudio/en-us/products/2010-editions • VHD Test Drive - Visual Studio 2010 Lab Management http://www.microsoft.com/downloads/en/details.aspx?FamilyID=592e874d-8fcd-4665-8e55-7da0d44b0dee&displaylang=en • Visual Studio Lab Management team bloghttp://blogs.msdn.com/b/lab_management/ • Techdays 2010 UK Video “Putting some Testing into your TFS Build Process”http://video.uk.msn.com/watch/video/putting-some-testing-into-your-tfs-build-process/15bkj6pcv
Richard Fennell Engineering Director, Black Marble Ltd. rfennell@blackmarble.co.uk http://blogs.blackmarble.co.uk/blogs/rfennell @RichardFennell