build, deploy and test with visual studio lab management 2012
TRANSCRIPT
3/10/2013
1
Build, Deploy and Test withVisual Studio Lab Management 2012
Pieter Gheysens
www.sparkles.be www.visug.be
3/10/2013
3
ALM with Visual Studio 2012
TEAMFOUNDATION
SERVER
Office
ALM with Visual Studio 2012
Test
Professional
TEAMFOUNDATION
SERVER Lab Management
Office
3/10/2013
6
Collaboration Dev-Test-Ops?
3 top reasons why Bugs are difficult to reproduce (and fix)?
3/10/2013
9
Goals of Lab Management
Improve productivity and quality of software development projects through better cross-functional collaboration features
Reduce costs associated with physical test environments
Improve speed of deployments
Integrate automated tests in build-deploy cycle
Provide rich actionable information
Lab Management Demo Environment
Client Physical Server
(Hyper-V Host)
TFS 2012 QU1
Active Directory
SCVMM 2012 SP1
VMM Library
VS 2012 Ultimate
(includes MTM)
Virtual Machines
TestVMs
3/10/2013
11
Demo Summary
Regular build compiles solution and runs basic unit tests
[Lab build reverts to clean and isolated test environement]
Lab build uses output (.dacpac file) to create new SQL database
Lab build uses output (MSDeploy package) to deploy website
[Lab build creates a post-deployment snapshot]
Lab build runs automated Coded UI Tests for multiple browsers
3/10/2013
12
Takeaways
• Investigate in creating good templates or VMs in the Library
• Find right balance between simulating a full “Production environment” and a lightweight deployment environment
• Finetune “Test Settings” for automated Coded UI Tests
• Focus on critical path testing
• Build – Measure – Learn
“A journey of a thousand miles begins with a single step”[quote from Lao-tzu]
3/10/2013
13
Resources
• Visual Studio ALM + TFS Blog
http://blogs.msdn.com/b/visualstudioalm/
• ALM Rangers – Visual Studio Lab Management Guide
http://vsarlabman.codeplex.com/
• Planning for Visual Studio Lab Management? Dos and Donts!
http://msdn.microsoft.com/en-us/library/vstudio/ff756575.aspx
• Configuring and Administering Lab Management
http://msdn.microsoft.com/en-us/library/vstudio/dd936084.aspx
3/10/2013
14
Related ALM Session @ TechDays
Building & Testing a Windows 8 App, making use of
Team Foundation Service [March 7, 16h15-17h30, Room 6]