from unit testing to load testing - visual studio - your complete testing tool

21
From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool Ervin Loh Visual Studio ALM MVP [email protected] K365Labs Sdn Bhd

Upload: loh-chuan-ho-ervin

Post on 30-Apr-2015

1.702 views

Category:

Documents


3 download

DESCRIPTION

As more software projects adopt a continuous delivery cycle, testing threatens to be the bottleneck in the process. Agile development frequently revisits each part of the source code, but every change requires a re-test of the product. While the skills of the manual tester are vital, purely manual testing can't keep up. Visual Studio 2012 provides many features that remove roadblocks in the testing and debugging process and also help speed up and automate re-testing. We will talk about how to create and use effectively use different test types in Visual Studio 2012. We will cover unit testing, manual testing, exploratory testing, coded UI testing, Web performance testing, and load testing.

TRANSCRIPT

Page 1: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

From Unit Testing to Load Testing - Visual Studio - Your Complete Testing ToolErvin LohVisual Studio ALM [email protected] Sdn Bhd

Page 2: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

PresenterErvin LohProfilehttp://tinyurl.com/237wuuh

Ervin Loh is currently the Application Lifecycle Management Program Manager at K365Labs Sdn Bhd. He is the user group lead of Application Lifecycle Management User Community, a charter of TechNation. He has also been presented with the Microsoft MVP award in the Visual Studio ALM competency for 4 consecutive years from 2009 through 2012. He owns more than 10 years experience in the IT industry where he obtained professional certifications from IREB and Microsoft. He works on a variety of Application Lifecycle Management, Software Configuration Management, and Lab Management products such as Visual Studio Team Foundation Server and Visual Studio Lab Management. He is also active in the IT community space by contributing contents to Microsoft Malaysia's START.NET and Ultimate program workshops and talks in conferences, events and user groups such as TechEd, SOFTEC, Tech Insights, MITPM, and MIND.

Page 3: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

Company IntroductionK365Labs Sdn Bhdhttp://www.k365labs.com

Company Background

K365Labs is an IT consultancy specializing in software quality engineering through Application Lifecycle Management. We rely on Microsoft Visual Studio Application Lifecycle Management and other Application Lifecycle Management products in order to assist customers adopt mature software quality assurance. We provide consulting services for a wide variety of Application Lifecycle Management products to small business and enterprise companies in industries such as Research and Development, Education, and Utility.

Page 4: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

Fabrikam Fiber Scenario

Fabrikam Fiber provides cable television and related services to the United States. They are growing rapidly and have embraced Windows Azure to scale their customer-facing web site directly to end-users to allow them to self-service tickets and track technicians. They also use an on-premises ASP.NET MVC application for their customer service representatives to administer customer orders.

Page 5: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

Agenda

Unit TestingManual TestingExploratory TestingCoded UI TestingWeb Performance TestingLoad Testing

Page 6: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

Unit Testing

Some improvements have made to the unit testing in Visual Studio 2012, including performance and extensibility improvements. Visual Studio 2012 provides Continuous Test Runner functionality. With Continuous Test Runner, tests will always be ran after builds.

Page 7: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

demo

Unit Testing

Page 8: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

Manual Testing

Manual testing is the process of manually testing software for defects. Microsoft Test Manager 2012 allows you to work with test plans, author and organize manual test cases, execute test cases, file bugs, and post results back to Team Foundation Server.

Page 9: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

Manual Testing

Page 10: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

Exploratory Testing

Exploratory testing is the testing of an application without a set of tests defined in advance. During an exploratory test session, you are not restricted to a script or a set of predetermined steps. Some improvements have been made to the exploratory testing in Microsoft Test Manager 2012.

Page 11: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

Exploratory Testing

Page 12: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

Coded UI Testing

Coded UI tests provide a way to create fully automated tests to validate the functionality and behavior of your application’s user interface. You can create coded UI tests directly from existing action recordings. Action recordings contain the steps taken during manual testing of an application.

Page 13: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

demo

Coded UI Testing

Page 14: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

Web Performance Testing

Any new Web performance and load testing efforts you create in Visual Studio 2012 are now created in a Web performance and load test project type instead of a test project. A Web performance test consists of a series of HTTP requests. Web performance tests work at the protocol layer by issuing HTTP requests.

Page 15: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

demo

Web Performance Testing

Page 16: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

Load Testing

Load tests consist of a series of Web performance tests or unit tests which operate under multiple simulated users over a period of time. Load tests can also include automated coded UI tests. Coded UI tests should be included only under specific circumstances. All the scenarios that use coded UI tests in load tests involve using the coded UI tests as performance tests.

Page 17: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

demo

Load Testing

Page 18: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

AnnouncementVisual Studio Load Test Virtual User Pack 2012

Page 19: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

Related Content

http://msdn.microsoft.com/en-us/library/tfs/bb385901%28v=vs.110%29

http://blogs.msdn.com/b/visualstudioalm/archive/2012/06/04/getting-started-with-load-testing-in-visual-studio-2012.aspx

http://msdn.microsoft.com/en-us/library/tfs/dd293547%28v=vs.110%29

http://blogs.msdn.com/b/visualstudioalm/archive/2012/07/09/javascript-unit-tests-on-team-foundation-service-with-chutzpah.aspxhttp://blogs.msdn.com/b/visualstudioalm/archive/2012/07/31/writing-a-visual-studio-2012-unit-test-adapter.aspx

http://msdn.microsoft.com/en-us/library/tfs/ms182539%28v=vs.110%29.aspx

Page 20: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to

be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS

PRESENTATION.

Page 21: From Unit Testing to Load Testing - Visual Studio - Your Complete Testing Tool