EXTENDING TESTING INTO THE LAB Richard Fennell Engineering
Director, Black Marble
@[email protected]://blogs.blackmarble.co.uk/blogs/rfennell
Slide 2
What should our development cycle be? Developer writes code
Compile locally Run unit tests locally Check-in Central Automated
CI Build inc. running of unit tests Automated Deploy to Test
Automated Integration tests UAT/Human Test Log Bugs/Change
Requests
Slide 3
How does Visual Studio 2010 Help?
Slide 4
Team Foundation Server (TFS) Lab Management Test Case
management Build management Work Item Tracking Source Control
System Center Management Stack Operations Manager Virtual Machine
Manager Virtualization Platform Hyper-V
Slide 5
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
Slide 6
Slide 7
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
Slide 8
Slide 9
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
Slide 10
Slide 11
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..
Slide 12
Lab Management Concepts Environment VMs Templates Snapshots
Controllers and Agents
Slide 13
Environment Each VM in Environment Developer What controls
what? Test Controller Build Controller TFS Team Project Collection
Test Agent Lab Agent Build Agent Build Agent Build Agent
Environment CapabilityLab Agent Required? Test Agent Required?
Build Agent Required? TestingX Deployment workflowX Network
IsolationXX
Lab Management Concepts Environment VMs Templates Snapshots
Controllers and Agents Network Isolation Host and Guest
Connections
Slide 17
Slide 18
Process of End to End Testing Lab Build Requested Ordinary
Build Performed Request the Lab Start Lab Build Deploy the software
Run automated Tests Triage Issues Build Report Stored Run Manual
Tests
Slide 19
LAB MANAGEMENT Demo
Slide 20
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
Slide 21
Resources Visual Studio 2010
http://www.microsoft.com/visualstudio/en-us/products/2010-editions
Rangers Lab Management Guide http://ralabman.codeplex.com/ 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 blog http://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
Slide 22
QUESTIONS
Slide 23
Richard Fennell Engineering Director, Black Marble Ltd.
[email protected]
http://blogs.blackmarble.co.uk/blogs/rfennell @RichardFennell