microsoft testing tour - setting up a test environment

26
With TFS and Visual Studio Angela Dugan ALM Practice Manager Polaris Solutions

Upload: angela-dugan

Post on 11-Nov-2014

449 views

Category:

Technology


0 download

DESCRIPTION

How do I set up a dev/test environment? Today’s applications are more complex than ever and it can be very challenging to set up and maintain these environments. Many organizations resort to a small number of shared environments, but you are trying to keep up with frequent developer builds, concurrent projects, and ever-changing data. This session introduces Microsoft’s Lab Management solution which allows developers and QA to self-provision their own environments. We’ll look at you can take advantage of virtualization (on-premises or cloud) to create environments, roll them back to known states, and attach them to bugs while minimizing the labor in your data center.

TRANSCRIPT

Page 1: Microsoft Testing Tour - Setting up a Test Environment

With TFS and Visual Studio

Angela Dugan

ALM Practice Manager

Polaris Solutions

Page 2: Microsoft Testing Tour - Setting up a Test Environment

Angela Dugan

Page 3: Microsoft Testing Tour - Setting up a Test Environment

User

Interface

Services

Business Processes

Business Rules and Logic

Service integrations

Data access

Identity

Data

Automated testing Unit testing Integration testing Performance testing Load testing

Manual testing User testing Ad-hoc exploratory testing Planned manual testing

Automated testing Keyword testing UI automation testing Performance testing

Continuous integrationsBuild | Deploy | Test

Testing toolboxRole tailored tools

Page 4: Microsoft Testing Tour - Setting up a Test Environment

Lab manager

Lab management services

Test execution services

Build services

Pluggable components

Test runners Build enginesLab

environmentsDiagnostic data

collectors

Page 5: Microsoft Testing Tour - Setting up a Test Environment

Modern apps run in diverse environments

Difficult to repro issues found

Replicating environments for test is time-consuming, costly

Virtualization reduces cost to provision environments

Templates allow a wide range of baselines to be spun up quickly and on demand

Snapshots capture states for reproducing test conditions and verifying defects

Dramatically reduced hardware and maintenance expenses

Improved quality and reliability of apps across platforms

Operations engaged in earlier phases of testing

Page 6: Microsoft Testing Tour - Setting up a Test Environment

On-premise | Cloud

Page 7: Microsoft Testing Tour - Setting up a Test Environment

Create and manage virtual or physical environments for Dev/Test

Take snapshots or revert to existing snapshots for any virtual machine

Deploy current or any build to environment

Interact with virtual machines through the environment viewer

Define test settings for environments

Page 8: Microsoft Testing Tour - Setting up a Test Environment
Page 9: Microsoft Testing Tour - Setting up a Test Environment

Test Agent

Controller

Register with Team

Project Collection

Team

Foundation

Server

Web Server

Collect Intellitrace

Information

Test Agent

Client

Network Emulation

Test Agent

Run Tests

Client

Collect Test Impact

Data

Test Agent

Run Tests

Database Server

Collect System

Information

Test Agent

Where to

run Tests?

Collect

Data?Affect

Machine

Test Controllers and Agents Test agent controller

manages test agents

Test agents run tests and collect

data or impact the system

Page 10: Microsoft Testing Tour - Setting up a Test Environment

Installed on the “client” machines

Three types of agentsTest Agent-Enables automated testing

Build Agent-Enables automated deployment

Lab Agent-Enables network isolation

Install from the Lab Management or TFS media

Can be installed/maintained using the VMPrepTool

Page 11: Microsoft Testing Tour - Setting up a Test Environment

Create new multi-machine environment choices

Page 12: Microsoft Testing Tour - Setting up a Test Environment

Create a new

environment using virtual

machine templates in

SCVMM

Create an

environment using

machines running on

SCVMM

Create new

environments on

existing machines

Page 13: Microsoft Testing Tour - Setting up a Test Environment

Quickly choose multiple

test suites to run after

deployment

Choose your environment,

and build, deploy and test in

that environment from a

single dialog

Page 14: Microsoft Testing Tour - Setting up a Test Environment

Snapshot environments

during manual testing to

increase reproducibility

Spin up virtual test environments

from within Test Manager, or attach a

virtual environment to a manual

testing session

Page 15: Microsoft Testing Tour - Setting up a Test Environment

Thumbnail view of each

machine in the environment

Page 16: Microsoft Testing Tour - Setting up a Test Environment

Environment snapshot

taken and attached as a

link with bug

Developers can quickly debug

issues on the exact same

testing environment

Page 17: Microsoft Testing Tour - Setting up a Test Environment

Test run results are attached to

specific builds and environments

Collect all the data required

to recreate bugs from virtual

environments

Page 18: Microsoft Testing Tour - Setting up a Test Environment
Page 19: Microsoft Testing Tour - Setting up a Test Environment
Page 20: Microsoft Testing Tour - Setting up a Test Environment

SCVMM Environment Standard Environment

Build-Deploy-Test

Snapshot / Restore

Share Bug Snapshots

Network Fencing

3rd Party Virtualization

Physical Machines

Page 21: Microsoft Testing Tour - Setting up a Test Environment

Lab Management is included with Visual Studio Premium/Test Pro

SCVMM license for dev/test is included

MSDNHeadless Hyper-V as the host OS

Guest OS license is part of MSDN subscription

Each person accessing the Virtual Machine Host (or accessing a virtual machine on that host) must have an MSDN subscription

Page 22: Microsoft Testing Tour - Setting up a Test Environment

ULTIMATE

Premium

Professional

Test

Professional

Team Explorer Everywhere

SharePoint

Office

Web Access

Page 23: Microsoft Testing Tour - Setting up a Test Environment
Page 25: Microsoft Testing Tour - Setting up a Test Environment

Topology 1 - Multiple AT, Load Balancer and Test network with firewall settings, controlling the test traffic in and out of Corp network

Network load balancer

Firewall rules

Topology 2 - Multiple ATs and DTs without load balancers and Test network with SAN based library and host

SAN support

Topology 3 - TMG, Windows NLB and with Test apps having DB tier outside of virtual environment

Setting up rules in Threat Management Gateway

Deployment and testing on a shared machine outside the envt

Topology 4 - Multiple ATs and DTs, load balancers and environments joined to a different domain

DNS conditional forwarding

Page 26: Microsoft Testing Tour - Setting up a Test Environment