• Save
Visual Studio 2010 Testing for Developers
Upcoming SlideShare
Loading in...5
×
 

Visual Studio 2010 Testing for Developers

on

  • 2,487 views

Visual Studio 2010 Testing for Developers - from DevExpress webinar on 2/24/2011.

Visual Studio 2010 Testing for Developers - from DevExpress webinar on 2/24/2011.

Statistics

Views

Total Views
2,487
Views on SlideShare
2,389
Embed Views
98

Actions

Likes
4
Downloads
0
Comments
0

4 Embeds 98

http://blogs.msdn.com 77
http://feeds.feedburner.com 10
http://flavors.me 6
http://weblog.chrisricard.net 5

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Visual Studio 2010 Testing for Developers Visual Studio 2010 Testing for Developers Presentation Transcript

  • Visual Studio 2010 Testing for Developers
    Steve Lange
    Developer Technology Specialist
    Developer Platform & Evangelism
    Microsoft | Denver, CO
  • Agenda
    Testing Isn’t Just For Testers
    Quality-Centric Tooling in VS 2010
    Getting it Right the First Time
    Diagnosing Issues
    Time-Permitting
    Other Test-Centric Capabilities
    Web Performance Testing
    Coded UI Testing
    Other Concepts not Discussed Today
  • Before we start..
  • Testing Isn’t Just for Testers
  • Wouldn’t It Be Nice If..
    .. code quality was optimized before moving to QA?
    .. QA could file more rich & actionable bugs?
    .. Developers had tooling to more quickly debug issues?
  • Developer-Tester Ping Pong
    Tester
    Developer
    “I did the same thing and it works. Are you sure you did that?”
    “Let me come down to your desk and see what you did.”
    “It works on my machine. What’s different?”
    “How much RAM do you have?”
    “What do you want to know?”
    “What OS are you running?”
    “What steps did you take?”
    “I did this, then this.”
    “Yes, don’t you believe me?”
    “I found a bug.”
    “Windows 7.”
    “Four gigs.”
    A lot of wasted effort due to poor collaboration & integration
  • Quality-Centric Tooling for Developers
    Getting it Right the First Time
    Code Analysis & Metrics
    Test Impact Analysis
    Diagnosing Issues
    IntelliTrace
    Performance Profiling
  • Code Analysis
    Static “grammar” checking of your code
    Check for quality while you write it
    Uses “rule sets” & categories
    Naming conventions
    Non-secure data access
    Design Issues
    Accessibility
    Localization
    Can be run automatically as part of local build
    Create work item in TFS
  • Code Analysis Rule Sets
  • Code Metrics
    Measures complexity & maintainability of managed code
    Generated code is ignored
    User can’t change it
    For single project or entire solution
    Export to Excel
    Create work item in TFS
  • Understanding Code Metrics Values
  • Demo
    Code Analysis & Code Metrics
  • Test Impact Analysis
    Identifies tests impacted by code changes
    Reduces test time
    Compares code changes with coverage data
  • Demo
    Test Impact Analysis
  • Diagnosing Issues
  • Debug is Fine, But..
    Forward-only
    Set breakpoint, run, pause, reset breakpoint, run again.
  • IntelliTrace
    DVR for your code
    Reduce “no repro” bugs
    Bridge gap between test and development
    Dynamically instruments code
    Records program execution flow
    Records program data (parameters & return values)
    Direct code version navigation when using symbols
  • Demo
    IntelliTrace
  • Performance Profiling
    Performance session capture
    Perf counter utilization (CPU, RAM, etc.)
    Concurrency
    Tier interaction (SQL Server)
    Client-side Javascript
    Provides
    Comprehensive data & reports
    Hot Path
    Benchmark comparison
  • Profiling Reports
  • Profiling Reports
  • Demo
    Performance Profiling
  • Is There Time?
  • Web Performance Tests
    “Headless” browser testing
    Test communication at protocol level
    Measures request/response times, server codes, etc.
    Add validations & extractions
    Can be data-driven
  • Demo
    Web Performance Tests
  • Coded UI Tests
    Functional UI Testing, in .NET code
    Validate behavior of application
    Record actions & turn into code, or use existing recordings from a test case
  • Demo
    Coded UI Tests
  • Other Testing Capabilities Not Discussed Today
    Test Case Management & Automation
    Load Testing
  • To Wrap Up
    Visual Studio 2010 provides..
    Tools for not diagnosing existing issues, but mitigating potential ones
    Capabilities that cross the entire spectrum of testing, from the generalist tester to the true developer.
  • Questions?
  • Steve Lange
    Developer Technology Specialist
    Microsoft | Denver, CO
    stevenl@microsoft.com
    blogs.msdn.com/slange
    @stevelange