30
Build, Deploy and Test with Visual Studio Lab Management 2012 Pieter Gheysens

Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Embed Size (px)

DESCRIPTION

More info on Techdays.be

Citation preview

Page 1: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Build, Deploy and Test withVisual Studio Lab Management 2012Pieter Gheysens

Page 2: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Pieter GheysensVisual Studio ALM MVPUser Group Lead VISUG@pietergheysens

www.sparkles.be www.visug.be

Page 3: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

VISUG Day – April 17, 2013

Full details at www.visugday.be

Page 4: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Agenda

ALM withVisual Studio 2012

ContinuousValueDelivery

QualityEnablement

Goals of Visual StudioLab Management

Build Deploy Test ** DEMOS **

Page 5: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

ALM with Visual Studio 2012

ULTIMATE

Team Explorer Everywhere

Extensibility

SharePoint

Project Server

System Center

Premium

ProfessionalTest

Professional

TEAMFOUNDATIO

NSERVER

Lab Management

Office

Web Access

Windows Azure

Version Control Test Case Management

RequirementsManagement

Build Automation

ProjectManagement

Reporting

Page 6: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

ALM with Visual Studio 2012

ULTIMATE

Team Explorer Everywhere

Extensibility

SharePoint

Project Server

System Center

Premium

ProfessionalTest

Professional

TEAMFOUNDATIO

NSERVER

Lab Management

Office

Web Access

Windows Azure

Version Control Test Case Management

RequirementsManagement

Build Automation

ProjectManagement

Reporting

Page 7: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Continuous Value Delivery

QUALITY ENABLEMENTDEPLOYMENT READINESS

Page 8: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

QualityEnableme

nt

Page 9: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Deployment Readiness

Page 10: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Quality of service MTTRCycle times

Important Metrics for Success

Page 11: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Collaboration Dev-Test-Ops?

Page 12: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

3 top reasons why Bugs are difficult to reproduce (and fix)?

Page 13: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Documentation

Page 14: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Visibility

Page 15: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Environment Differences

Page 16: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Cost of Fixing Bugs

Development

Test

Release

Software Phase

Cost of Bugs

Page 17: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

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

NO MORE NO REPRO!

Page 18: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

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

Build Controller+ Test Controller

TestAgents

Page 19: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Virtual EnvironmentsVisual StudioLab Management 2012

Page 20: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Lab Management Workflow

BUILD

restoreenvironme

nt

DEPLOYenvironme

ntsnapshot

TEST

Page 21: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Demo Build-Deploy-TestVisual StudioLab Management 2012

Page 22: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

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

Page 23: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

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

Page 24: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

“A journey of a thousand miles begins with a single step”[quote from Lao-tzu]

Page 25: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Questions&Answers

Page 26: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Resources

• Visual Studio ALM + TFS Bloghttp://blogs.msdn.com/b/visualstudioalm/

• ALM Rangers – Visual Studio Lab Management Guidehttp://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 Managementhttp://msdn.microsoft.com/en-us/library/vstudio/dd936084.aspx

Page 27: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management
Page 28: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Related ALM Session @ TechDaysBuilding & Testing a Windows 8 App, making use ofTeam Foundation Service [March 7, 16h15-17h30, Room 6]

Page 29: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management

Contact

[email protected]@pietergheysenswww.sparkles.bewww.intoalm.net

Page 30: Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Bring it all together: Build, Deploy and Test with Visual Studio Lab Management