• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Testing the User Interface - Coded UI Tests with Visual Studio 2010
 

Testing the User Interface - Coded UI Tests with Visual Studio 2010

on

  • 8,005 views

With the new Coded UI test in Visual Studio 2010, building automated tests for the user interface is no longer the unattainable Nirvana. In this session, we will explore the features of Coded UI tests ...

With the new Coded UI test in Visual Studio 2010, building automated tests for the user interface is no longer the unattainable Nirvana. In this session, we will explore the features of Coded UI tests in VS 2010. We will walk through how you record tests, add assertions and customize the resulting tests for increased automation. Finally, we will explore how to customize existing Coded UI tests and how to run them with your automated builds.

Statistics

Views

Total Views
8,005
Views on SlideShare
8,005
Embed Views
0

Actions

Likes
2
Downloads
28
Comments
0

0 Embeds 0

No embeds

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

    Testing the User Interface - Coded UI Tests with Visual Studio 2010 Testing the User Interface - Coded UI Tests with Visual Studio 2010 Presentation Transcript

    • Testing the User Interface
      Coded UI Tests with Visual Studio 2010
      Eric D. Boyd
    • Introduction
      Eric D. Boyd
      15 years in technology
    • I’m From Here
    • I Moved Here
    • I Work Here
      www.centare.com
    • I Work On
    • I Blog Here
      www.ericdboyd.com
    • I Tweet Here
      www.twitter.com/EricDBoyd
    • Getting to Know You
      Photo by www.rebeccasandulak.com/
    • Agenda
      The State of Software Testing
      Manual Testing
      Coded UI Tests
      Coded UI Best Practices
      What’s New Since RTM?
      Q&A
    • Northeast Blackout of 2003
      10 million people in Ontario and 45 million people in eight US states were without power
      Race condition in GE Energy’s Unix-based XA/21 energy management system
      Stalled FirstEnergy’s control room alarm system for over an hour
      Hid audio and visual alerts of system state changes, unprocessed events queued, and the primary server failed within 30 minutes
      Toronto on the evening of August 14
      http://en.wikipedia.org/wiki/Northeast_Blackout_of_2003
    • Therac-25
      Patients were given massive overdoses of radiation, 100 times the intended dose
      3 patients died from radiation poisoning
      Race conditions occurred when the operator changed the setup quickly
      Arithmetic overflow caused the software to bypass safety checks
      http://en.wikipedia.org/wiki/Therac-25
    • Ariane 5, Maiden Voyage
      June 4, 1996, rocket explodes 39 seconds after take-off
      Decade of development and $7 billion dollars invested
      Destroyed rocket and cargo valued at $500 million
      64-bit float converted to 16-bit signed integer, larger than 32,767, failed
      http://en.wikipedia.org/wiki/Ariane_5_Flight_501
    • Software Quality Troubles
      “my testers are spending too long testing the same thing”
      “tooling is expensive (time, licenses, people)”
      “when is my software ready to ship?”
      “developers and testers work in silos and don’t communicate/speak the same language”
      “it will take weeks for regression testing”
    • What the Industry Says
      software bugs cost the US economy an estimated $59.5 billion every year
      last year, canceled projects cost firms $67 billion; overruns on the other projects racked up another $21billion
      on average professional coders make 100 to 150 errors in every 1000 lines of code they write
    • What If You Could…
      easily manage test plans and test cases
      enable developers to easily automate functional UI tests
      Integrate functional UI testing into build automation
      parameterize playback of recorded tests
      fast forward through manual testing
    • Areas of the Project Lifecycle
    • Story Time – Testing Failures
    • Testing Cycle
    • Tester Life
      70% of testing happens here
      Majority of test tools target here
      Black Box Testing
      White Box Testing
      API Testing
    • Visual Studio 2010
      Generalist
      Specialist
      Coded UI Test
      Unit Testing
      Web Test
      Test Runner
      Load Test
      FF Manual Test
      Test Case Management
      Virtual Lab Management
      Data Collectors (Intellitrace, System Info.)
      Team Foundation Server with Reporting
    • Challenges of UI Testing
    • What are Coded UI Tests?
    • Anatomy of Coded UI Tests
    • Demo – Create Coded UI Tests
    • Demo – Manual Testing
    • Demo – Automating the Manual Tests
    • Demo – Editing Existing Coded UI Test
    • Demo – Customizing Tests
    • Demo – Data-Driven Coded UI Tests
    • Coded UI Best Practices
      Use the Coded UI Test Builder
      DO NOT EVER edit the UIMap.designer.cs file
      Use meaningful names
      Use meaningful Assertions
      Limit the number of actions
      Re-record when the UI changes
      Create separate UIMap files for each module
      API Coding
      Use the generated classes as much as possible
      Create a method for each custom assertion in UIMap.cs
    • Feature Pack 2
    • Demo – Feature Pack 2
    • Automation Platform Support
    • Demo – Build Automation
    • UITestArchitecture
      Write a client that does something else!
      My UI
      Coded UI Test
      Test Runner
      Interpreter
      Code Generation
      Action Invoker
      Custom properties & code
      Customize recording
      Add/Modify API
      Playback
      Recorder
      Filter/ Aggregation Rules
      API
      Property Provider
      Browser Service
      Add another browser
      Technology Abstraction Layer
      Write technology adapters
      Web Plug-ins
      (MSHTML/DOM)
      Rich Client Plug-ins
      (UIA/MSAA)
      3rd Party Plug-ins
    • Coded UI is Only One of the Tools
      Test Case Management
      1000 vUsers
      Web Test
      Load Test
      Manual Testing
      Fast Fwd for Manual Testing
      Rich Actionable Bugs
      Virtual Env. Setup/Tear Down
      Environment from Template
      Checkpoint Environment
      Team Explorer
      Agents
      *Requires Visual Studio Test Professional 2010 for virtual lab management & configuration.
    • Improving Quality with VS 2010
      Better Tools for Manual Testing
      UI Test Automation
      Tester-Developer Collaboration
      Build Integration
    • How to Get Started
      Visual Studio 2010 Premium or Ultimate
      Test Professional (optional)
      Team Foundation Server (optional)
      Play for FREE with VS 2010 and TFS 2010 VHD
      Windows Virtual PC (Windows 7)
      Microsoft Virtual PC 2007 SP 1
      Windows Server 2008 Hyper-V
    • Useful Resources
      VS 2010 Testing
      http://msdn.microsoft.com/en-us/library/ms182409.aspx
      VS 2010 Coded UI
      http://msdn.microsoft.com/en-us/library/dd286726.aspx
      VS 2010 Main Resource Page
      http://msdn.microsoft.com/en-us/library/dd831853.aspx
      Local Technology Events
      http://twitter.com/MWD_DevEvents
    • Q&A
    • Thank You!