all about testing in visual studio 2012
Post on 24-May-2015
5.979 Views
Preview:
DESCRIPTION
TRANSCRIPT
© Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israelwww.sela.co.il
All About Testing In Visual Studio 2012
Shai RaitenSenior ConsultantSela Group
Agenda
Visual Studio Testing Tools
Unit Test
Fakes
Coded UI Test
Getting Started
Advanced Coding
Web Testing
Load Testing
Questions
Summary
Team Foundation Server Reporting
Web Test
Load Test
Coded UI Test
Unit Testing
Test Case Management
Lab Management
Microsoft Test Manager
Data Collectors (IntelliTrace™, Test Impact, Metrics)
Generalist SpecialistManual Testing Some scripting
Creates scripts to set up lab, create data
Strong scripting skills
Some coding skills
Strong coding
Develops fully automated testing
procedures
Expert coding skills
OtherAutomation
Tools
Visual Studio 2012 Testing Tools
Unit Test
The primary goal of unit testing is to take the smallest piece of testable software in the application, isolate it from the remainder of the code, and determine whether it behaves exactly as you expect.
• Testers Or Developers?• Documentation• Change Existing Code
• Avoid (Truck) Factor
Test Explorer
• Multiple test projects• Test Adapters– Nunit , Gtest , xUnit++– Chutzpah – JavaScript
• UITestMethod• DataRow• .NET regardless the target code• Run Every Build• Grouping – Outcome, Duration…
Fakes Framework (Pex & Moles)
• Shim – A shim modifies the compiled code of your application at run time so that instead of making a specified method call, it runs the shim code that your test provides.
• Stub - A stub replaces another class with a small substitute that implements the same interface.
Fakes Framework
Coded UI Test Features
• Functional Testing
• Generate code in C#/VB
• Intent aware recording and resilient playback
• Integrated with ALM story
– Build, deploy & test in lab or as part of build
– Local, remote runs, data collection
• Rich Extensibility
Automation Platform Support
Fully supported platform
Partial solution. Further work required to completeBest efforts. May work with known issues. No major ongoing investmentCurrently no support but on the roadmap for future releasesCurrently no support and none planned for now. Opportunity for partners
Platform 2012 Update 1 Notes
IE7/8 – HTML/AJAX
Windows Forms 2.0+.NET Fx Controls fully
supported, working on 3rd party support
WPF 3.5+.NET Fx Controls fully
supported, working on 3rd party support
Windows Win32
MFC
HTML 5/AJAX
Chrome / Fire Fox Update 1
SharePoint
Silverlight
Citrix/Terminal Services
Office Client Apps
IE 6
Opera/Safari
Flash/Java
SAP
http://tinyurl.com/CuitCrossBrowser
Create new Coded UI
Why Web Performance Test?
• Performance• Security Testing• No User Interface Complexity• Faster Testing• Easy Manipulation• Data Driven Test
• Load Test uses Web Test
13
Record Basic Web Test
Load Testing using VSTS
Load Test is used in several types of testing:
Smoke Test. Load Test. Stress Test. Capacity Test. Performance Test. Compatibility Test.
Create New Load Test
© Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 18
Summary
Mature tools to improve testing and
team connection.
Complete Suite for Testers &
Developers
It’s Easy and Fast to Create
Automation.
Shai Raitenshair@sela.co.il
http://tinyurl.com/shai-rai
Thank You!
top related