Date post: | 02-Jan-2016 |
Category: |
Documents |
Upload: | barnard-carroll |
View: | 213 times |
Download: | 0 times |
Supported by
Virtualisation of the Test EnvironmentRichard Fennell
Engineering Director, Black Marble
@RichardFennell [email protected]://blogs.blackmarble.co.uk/blogs/rfennell
Agenda• The development cycle• Virtualisation with Lab Management• Load Testing with Load Test Agent
blackmarble.com blogs.blackmarble.co.uk +44 1274 300175
Supported by
LAB MANAGEMENT
What is our development cycle?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
How does Visual Studio 2010 Help?
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
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
Environment
Each VM in Environment
Developer
What controls what?Test
Controller
Build Controller
TFSTeam
Project Collection
Test Agent
Lab Agent
Build Agent
Build Agent
Build Agent
Environment Capability Lab Agent Required?
Test Agent Required?
Build Agent Required?
Testing √ √ X Deployment workflow √ X √Network Isolation √ X X
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
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
LAB MANAGEMENTDemo
blackmarble.com blogs.blackmarble.co.uk +44 1274 300175
Supported by
LOAD TESTING
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)
Another PC
Test Controller PC
Load Test ArchitectureA Developers PC
Visual Studio 2010 Ultimate Test Controller(Manages Test Agents)
Test Agent(Runs Tests)
Another PC
Test Agent(Runs Tests)
Another PC
Test Agent(Runs Tests)
LOAD TESTINGDemo
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
QUESTIONS
Richard FennellEngineering Director, Black Marble Ltd.
http://blogs.blackmarble.co.uk/blogs/rfennell
@RichardFennell
search for us on facebook and linked in!
www.twitter.com/blackmarble
+44 845 644 7656
http://blogs.blackmarble.co.uk
www.blackmarble.com