Microsoft Testing Tour - Setting up a Test Environment


Published on

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.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Microsoft Testing Tour - Setting up a Test Environment

  1. 1. With TFS and Visual Studio Angela Dugan ALM Practice Manager Polaris Solutions
  2. 2. Angela Dugan
  3. 3. Continuous integrations Build | Deploy | Test Testing toolbox Manual testing  User testing  Ad-hoc exploratory testing  Planned manual testing Role tailored tools User Interface Automated testing  Keyword testing  UI automation testing  Performance testing Services Business Processes Business Rules and Logic Service integrations Data access Identity Data Automated testing  Unit testing  Integration testing  Performance testing  Load testing
  4. 4. Lab manager Lab management services Test runners Diagnostic data collectors Test execution services Build engines Pluggable components Build services Lab environments
  5. 5. Virtualization reduces cost to provision environments Modern apps run in diverse environments Difficult to repro issues found Replicating environments for test is time-consuming, costly Dramatically reduced hardware and maintenance expenses Templates allow a wide range of baselines to be spun up quickly and on demand Improved quality and reliability of apps across platforms Snapshots capture states for reproducing test conditions and verifying defects Operations engaged in earlier phases of testing
  6. 6. On-premise | Cloud
  7. 7. 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
  8. 8. Test Controllers and Agents Test agent controller manages test agents Web Server Test Agent Test Agent Controller Collect Intellitrace Information Client Test Agent Run Tests Test Agent Test Agent Run Tests Collect Test Impact Data Team Foundation Server Collect System Information Network Emulation Client Register with Team Project Collection Database Server Where to run Tests? Collect Data? Test agents run tests and collect data or impact the system Affect Machine
  9. 9. Installed on the “client” machines Three types of agents Test 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
  10. 10. Create new multi-machine environment choices
  11. 11. Create a new environment using virtual machine templates in SCVMM Create new environments on existing machines Create an environment using machines running on SCVMM
  12. 12. Quickly choose multiple test suites to run after deployment Choose your environment, and build, deploy and test in that environment from a single dialog
  13. 13. Spin up virtual test environments from within Test Manager, or attach a virtual environment to a manual testing session Snapshot environments during manual testing to increase reproducibility
  14. 14. Thumbnail view of each machine in the environment
  15. 15. Developers can quickly debug issues on the exact same testing environment Environment snapshot taken and attached as a link with bug
  16. 16. Test run results are attached to specific builds and environments Collect all the data required to recreate bugs from virtual environments
  17. 17. SCVMM Environment Build-Deploy-Test Snapshot / Restore Share Bug Snapshots Network Fencing 3rd Party Virtualization Physical Machines Standard Environment
  18. 18. Lab Management is included with Visual Studio Premium/Test Pro SCVMM license for dev/test is included MSDN Headless 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
  19. 19. ULTIMATE Premium Professional Office Web Access SharePoint Team Explorer Everywhere Test Professional
  20. 20. Creating VMs Create and store VMs - MSDN doc Prepare a domain controller VM Manage virtual environments Creating virtual envs - MSDN doc Creating and working with virtual envs Concepts and guidelines Creating network isolated environments Networking Networking basics Network isolation
  21. 21. 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