Testing the User InterfaceCoded UI Tests with Visual Studio 2010Eric D. Boyd
IntroductionEric D. Boyd15 years in technology
I’m From Here
I Moved Here
I Work Herewww.centare.com
I Work On
I Blog Herewww.ericdboyd.com
I Tweet Herewww.twitter.com/EricDBoyd
Getting to Know YouPhoto by www.rebeccasandulak.com/
AgendaThe State of Software TestingManual TestingCoded UI TestsCoded UI Best PracticesWhat’s New Since RTM?Q&A
Northeast Blackout of 200310 million people in Ontario and 45 million people in eight US states were without powerRace condition in GE Energy’s Unix-based XA/21 energy management systemStalled FirstEnergy’s control room alarm system for over an hourHid audio and visual alerts of system state changes, unprocessed events queued, and the primary server failed within 30 minutesToronto on the evening of August 14http://en.wikipedia.org/wiki/Northeast_Blackout_of_2003
Therac-25Patients were given massive overdoses of radiation, 100 times the intended dose3 patients died from radiation poisoningRace conditions occurred when the operator changed the setup quicklyArithmetic overflow caused the software to bypass safety checkshttp://en.wikipedia.org/wiki/Therac-25
Ariane 5, Maiden VoyageJune 4, 1996, rocket explodes 39 seconds after take-offDecade of development and $7 billion dollars investedDestroyed rocket and cargo valued at $500 million64-bit float converted to 16-bit signed integer, larger than 32,767, failedhttp://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 Sayssoftware bugs cost the US economy an estimated $59.5 billion every yearlast year, canceled projects cost firms $67 billion; overruns on the other projects racked up another $21billionon 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 casesenable developers to easily automate functional UI testsIntegrate functional UI testing into build automationparameterize playback of recorded testsfast forward through manual testing
Areas of the Project Lifecycle
Story Time – Testing Failures
Testing Cycle
Tester Life70% of testing happens hereMajority of test tools target hereBlack Box TestingWhite Box TestingAPI Testing
Visual Studio 2010GeneralistSpecialistCoded UI TestUnit TestingWeb TestTest RunnerLoad TestFF Manual TestTest Case ManagementVirtual Lab ManagementData 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 PracticesUse the Coded UI Test BuilderDO NOT EVER edit the UIMap.designer.cs fileUse meaningful namesUse meaningful AssertionsLimit the number of actionsRe-record when the UI changesCreate separate UIMap files for each moduleAPI CodingUse the generated classes as much as possibleCreate a method for each custom assertion in UIMap.cs
Feature Pack 2
Demo – Feature Pack 2
Automation Platform Support
Demo – Build Automation
UITestArchitectureWrite a client that does something else!My UICoded UI TestTest RunnerInterpreterCode GenerationAction InvokerCustom properties & codeCustomize recordingAdd/Modify APIPlaybackRecorderFilter/ Aggregation RulesAPIProperty ProviderBrowser ServiceAdd another browserTechnology Abstraction LayerWrite technology adaptersWeb Plug-ins(MSHTML/DOM)Rich Client Plug-ins(UIA/MSAA)3rd Party Plug-ins
Coded UI is Only One of the ToolsTest Case Management1000 vUsersWeb TestLoad TestManual TestingFast Fwd for Manual TestingRich Actionable BugsVirtual Env. Setup/Tear DownEnvironment from TemplateCheckpoint EnvironmentTeam ExplorerAgents*Requires Visual Studio Test Professional 2010 for virtual lab management & configuration.
Improving Quality with VS 2010Better Tools for Manual TestingUI Test AutomationTester-Developer CollaborationBuild Integration
How to Get StartedVisual Studio 2010 Premium or UltimateTest Professional (optional)Team Foundation Server (optional)Play for FREE with VS 2010 and TFS 2010 VHDWindows Virtual PC (Windows 7)Microsoft Virtual PC 2007 SP 1Windows Server 2008 Hyper-V
Useful ResourcesVS 2010 Testinghttp://msdn.microsoft.com/en-us/library/ms182409.aspxVS 2010 Coded UIhttp://msdn.microsoft.com/en-us/library/dd286726.aspxVS 2010 Main Resource Pagehttp://msdn.microsoft.com/en-us/library/dd831853.aspxLocal Technology Eventshttp://twitter.com/MWD_DevEvents
Q&A
Thank You!

More Related Content

PPTX
Advanced Coded UI Testing
PPTX
Coded UI - Test automation Practices from the Field
PPT
UI testing frameworks and the Coded UI testing paradigm
PPTX
Coded ui test
PPTX
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: How to create cross ...
PPTX
Coded UI: Hand Coding based on Page Object Model
PPTX
Coded ui - lesson 4 - coded ui test
PPTX
Coded ui - lesson 6 - manual coding
Advanced Coded UI Testing
Coded UI - Test automation Practices from the Field
UI testing frameworks and the Coded UI testing paradigm
Coded ui test
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: How to create cross ...
Coded UI: Hand Coding based on Page Object Model
Coded ui - lesson 4 - coded ui test
Coded ui - lesson 6 - manual coding

What's hot (20)

PPTX
Coded ui - lesson 1 - overview
PPTX
Coded ui in a nutshell
PPTX
Remote Test Execution using TFS 2015 (RC2 and beyond)
PPTX
Coded ui - lesson 3 - case study - calculator
PPTX
Test Tooling in Visual Studio 2012 an overview
PPTX
Coded ui - lesson 2 - coded ui test builder
PPTX
Unit testing with visual studio 2012
PDF
Technical meeting automated testing with vs2010
PPTX
Coded ui - lesson 9 - test windows
PPT
Testing with test_complete
PPTX
Test complete, work done so far
PDF
UI Testing Automation
PPTX
TestComplete – A Sophisticated Automated Testing Tool by SmartBear
PPT
Automating UI testing
PPT
Testing_with_TestComplete
PPSX
Test Complete
PDF
Test automation - Building effective solutions
PPTX
Automation Testing with Test Complete
PDF
Open Source Software Testing Tools
PPTX
Testing tools in visual studio
Coded ui - lesson 1 - overview
Coded ui in a nutshell
Remote Test Execution using TFS 2015 (RC2 and beyond)
Coded ui - lesson 3 - case study - calculator
Test Tooling in Visual Studio 2012 an overview
Coded ui - lesson 2 - coded ui test builder
Unit testing with visual studio 2012
Technical meeting automated testing with vs2010
Coded ui - lesson 9 - test windows
Testing with test_complete
Test complete, work done so far
UI Testing Automation
TestComplete – A Sophisticated Automated Testing Tool by SmartBear
Automating UI testing
Testing_with_TestComplete
Test Complete
Test automation - Building effective solutions
Automation Testing with Test Complete
Open Source Software Testing Tools
Testing tools in visual studio
Ad

Viewers also liked (20)

PPTX
User Interface Testing | Best Practices
PDF
UI Testing Best Practices - An Expected Journey
PPTX
Non-functional Testing (NFT) Overview
PPT
Non Functional Testing
PDF
Non-Functional testing
PDF
Testing responsive web design pdf
PPTX
The evolution of agile development process
PPTX
Visual Regression Testing
PPTX
All you need to know about regression testing | David Tzemach
PPTX
Regression Testing
PPTX
Agile vs. waterfall - The fundamentals differences
PPTX
Non-functional testing
PPT
Installation testing
PPTX
What are the advantages of non functional testing
PPTX
Regression testing
PPTX
Non functional testing
PPT
Non Functional Testing_Sampath kumar Mohan
PPTX
Installation testing
KEY
Introduction to android testing
PPTX
Android testing
User Interface Testing | Best Practices
UI Testing Best Practices - An Expected Journey
Non-functional Testing (NFT) Overview
Non Functional Testing
Non-Functional testing
Testing responsive web design pdf
The evolution of agile development process
Visual Regression Testing
All you need to know about regression testing | David Tzemach
Regression Testing
Agile vs. waterfall - The fundamentals differences
Non-functional testing
Installation testing
What are the advantages of non functional testing
Regression testing
Non functional testing
Non Functional Testing_Sampath kumar Mohan
Installation testing
Introduction to android testing
Android testing
Ad

Similar to Testing the User Interface - Coded UI Tests with Visual Studio 2010 (20)

PDF
YuryMakedonov_GUI_TestAutomation_QAI_Canada_2007_14h
PPT
Embedded software validation best practices with NI and RQM
PPT
Remote (Mobile) Usability Testing Lab
PDF
Proven Approaches to AI-Powered E2E Testing.pdf
PPTX
Automated Generation, Evolution and Maintenance: a perspective for mobile GUI...
PPTX
Improving Software quality for the Modern Web
PDF
ICSE17Tech Briefing - Automated GUI Testing of Android Apps: From Research to...
PDF
Creating a successful continuous testing environment by Eran Kinsbruner
PPTX
Agile Development in Aerospace and Defense
PDF
LDNSE: Testdroid for Mobile App and Web Testing (London Selenium Meetup)
PDF
Velocity Conference: Increasing Speed To Market In Mobile Development Through...
PDF
App Days 2016 Munich - Mobile Applications testing by Leaware
PPT
Android automation tools
PPTX
Zibrasoft | Software QA Testing Company Inida
PPT
Mdc2010 Automated Mobile Testing
PDF
The ROI of AI-Powered Testing, presented by Applitools
YuryMakedonov_GUI_TestAutomation_QAI_Canada_2007_14h
Embedded software validation best practices with NI and RQM
Remote (Mobile) Usability Testing Lab
Proven Approaches to AI-Powered E2E Testing.pdf
Automated Generation, Evolution and Maintenance: a perspective for mobile GUI...
Improving Software quality for the Modern Web
ICSE17Tech Briefing - Automated GUI Testing of Android Apps: From Research to...
Creating a successful continuous testing environment by Eran Kinsbruner
Agile Development in Aerospace and Defense
LDNSE: Testdroid for Mobile App and Web Testing (London Selenium Meetup)
Velocity Conference: Increasing Speed To Market In Mobile Development Through...
App Days 2016 Munich - Mobile Applications testing by Leaware
Android automation tools
Zibrasoft | Software QA Testing Company Inida
Mdc2010 Automated Mobile Testing
The ROI of AI-Powered Testing, presented by Applitools

More from Eric D. Boyd (11)

PPTX
Rock, Paper, Scissors: Winning Big with Game Playing Cloud Bots
PPTX
Windows Azure Kick Start - Common Scenarios
PPTX
Windows Azure Kick Start - Explore Storage and SQL Azure
PPTX
Windows Azure Kick Start - Windows Azure Compute
PPTX
Windows Azure Kick Start - Get Started in Cloud Computing
PPTX
Windows Azure Kick Start - Welcome
PPTX
Moving Web Apps to the Cloud - Iowa User Group Tour, Feb 2012
PPTX
HTML5 + Cloud: Reach Everyone, Everywhere
PPTX
Architecting for Massive Scalability - St. Louis Day of .NET 2011 - Aug 6, 2011
PPTX
Consuming Data From Many Platforms: The Benefits of OData - St. Louis Day of ...
PPTX
Understanding the Value of the Cloud - Centare Lunch & Learn - June 2, 2011
Rock, Paper, Scissors: Winning Big with Game Playing Cloud Bots
Windows Azure Kick Start - Common Scenarios
Windows Azure Kick Start - Explore Storage and SQL Azure
Windows Azure Kick Start - Windows Azure Compute
Windows Azure Kick Start - Get Started in Cloud Computing
Windows Azure Kick Start - Welcome
Moving Web Apps to the Cloud - Iowa User Group Tour, Feb 2012
HTML5 + Cloud: Reach Everyone, Everywhere
Architecting for Massive Scalability - St. Louis Day of .NET 2011 - Aug 6, 2011
Consuming Data From Many Platforms: The Benefits of OData - St. Louis Day of ...
Understanding the Value of the Cloud - Centare Lunch & Learn - June 2, 2011

Recently uploaded (20)

PDF
Statistics on Ai - sourced from AIPRM.pdf
PDF
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
Flame analysis and combustion estimation using large language and vision assi...
PPTX
Microsoft Excel 365/2024 Beginner's training
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PPTX
The various Industrial Revolutions .pptx
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PPTX
TEXTILE technology diploma scope and career opportunities
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
UiPath Agentic Automation session 1: RPA to Agents
Statistics on Ai - sourced from AIPRM.pdf
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
sbt 2.0: go big (Scala Days 2025 edition)
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
Consumable AI The What, Why & How for Small Teams.pdf
Benefits of Physical activity for teenagers.pptx
Flame analysis and combustion estimation using large language and vision assi...
Microsoft Excel 365/2024 Beginner's training
Final SEM Unit 1 for mit wpu at pune .pptx
Developing a website for English-speaking practice to English as a foreign la...
Zenith AI: Advanced Artificial Intelligence
A contest of sentiment analysis: k-nearest neighbor versus neural network
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
The various Industrial Revolutions .pptx
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
The influence of sentiment analysis in enhancing early warning system model f...
TEXTILE technology diploma scope and career opportunities
Enhancing plagiarism detection using data pre-processing and machine learning...
Taming the Chaos: How to Turn Unstructured Data into Decisions
UiPath Agentic Automation session 1: RPA to Agents

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

  • 1. Testing the User InterfaceCoded UI Tests with Visual Studio 2010Eric D. Boyd
  • 2. IntroductionEric D. Boyd15 years in technology
  • 9. Getting to Know YouPhoto by www.rebeccasandulak.com/
  • 10. AgendaThe State of Software TestingManual TestingCoded UI TestsCoded UI Best PracticesWhat’s New Since RTM?Q&A
  • 11. Northeast Blackout of 200310 million people in Ontario and 45 million people in eight US states were without powerRace condition in GE Energy’s Unix-based XA/21 energy management systemStalled FirstEnergy’s control room alarm system for over an hourHid audio and visual alerts of system state changes, unprocessed events queued, and the primary server failed within 30 minutesToronto on the evening of August 14http://en.wikipedia.org/wiki/Northeast_Blackout_of_2003
  • 12. Therac-25Patients were given massive overdoses of radiation, 100 times the intended dose3 patients died from radiation poisoningRace conditions occurred when the operator changed the setup quicklyArithmetic overflow caused the software to bypass safety checkshttp://en.wikipedia.org/wiki/Therac-25
  • 13. Ariane 5, Maiden VoyageJune 4, 1996, rocket explodes 39 seconds after take-offDecade of development and $7 billion dollars investedDestroyed rocket and cargo valued at $500 million64-bit float converted to 16-bit signed integer, larger than 32,767, failedhttp://en.wikipedia.org/wiki/Ariane_5_Flight_501
  • 14. 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”
  • 15. What the Industry Sayssoftware bugs cost the US economy an estimated $59.5 billion every yearlast year, canceled projects cost firms $67 billion; overruns on the other projects racked up another $21billionon average professional coders make 100 to 150 errors in every 1000 lines of code they write
  • 16. What If You Could…easily manage test plans and test casesenable developers to easily automate functional UI testsIntegrate functional UI testing into build automationparameterize playback of recorded testsfast forward through manual testing
  • 17. Areas of the Project Lifecycle
  • 18. Story Time – Testing Failures
  • 20. Tester Life70% of testing happens hereMajority of test tools target hereBlack Box TestingWhite Box TestingAPI Testing
  • 21. Visual Studio 2010GeneralistSpecialistCoded UI TestUnit TestingWeb TestTest RunnerLoad TestFF Manual TestTest Case ManagementVirtual Lab ManagementData Collectors (Intellitrace, System Info.) Team Foundation Server with Reporting
  • 23. What are Coded UI Tests?
  • 24. Anatomy of Coded UI Tests
  • 25. Demo – Create Coded UI Tests
  • 26. Demo – Manual Testing
  • 27. Demo – Automating the Manual Tests
  • 28. Demo – Editing Existing Coded UI Test
  • 30. Demo – Data-Driven Coded UI Tests
  • 31. Coded UI Best PracticesUse the Coded UI Test BuilderDO NOT EVER edit the UIMap.designer.cs fileUse meaningful namesUse meaningful AssertionsLimit the number of actionsRe-record when the UI changesCreate separate UIMap files for each moduleAPI CodingUse the generated classes as much as possibleCreate a method for each custom assertion in UIMap.cs
  • 35. Demo – Build Automation
  • 36. UITestArchitectureWrite a client that does something else!My UICoded UI TestTest RunnerInterpreterCode GenerationAction InvokerCustom properties & codeCustomize recordingAdd/Modify APIPlaybackRecorderFilter/ Aggregation RulesAPIProperty ProviderBrowser ServiceAdd another browserTechnology Abstraction LayerWrite technology adaptersWeb Plug-ins(MSHTML/DOM)Rich Client Plug-ins(UIA/MSAA)3rd Party Plug-ins
  • 37. Coded UI is Only One of the ToolsTest Case Management1000 vUsersWeb TestLoad TestManual TestingFast Fwd for Manual TestingRich Actionable BugsVirtual Env. Setup/Tear DownEnvironment from TemplateCheckpoint EnvironmentTeam ExplorerAgents*Requires Visual Studio Test Professional 2010 for virtual lab management & configuration.
  • 38. Improving Quality with VS 2010Better Tools for Manual TestingUI Test AutomationTester-Developer CollaborationBuild Integration
  • 39. How to Get StartedVisual Studio 2010 Premium or UltimateTest Professional (optional)Team Foundation Server (optional)Play for FREE with VS 2010 and TFS 2010 VHDWindows Virtual PC (Windows 7)Microsoft Virtual PC 2007 SP 1Windows Server 2008 Hyper-V
  • 40. Useful ResourcesVS 2010 Testinghttp://msdn.microsoft.com/en-us/library/ms182409.aspxVS 2010 Coded UIhttp://msdn.microsoft.com/en-us/library/dd286726.aspxVS 2010 Main Resource Pagehttp://msdn.microsoft.com/en-us/library/dd831853.aspxLocal Technology Eventshttp://twitter.com/MWD_DevEvents
  • 41. Q&A