SlideShare a Scribd company logo
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!
Ad

Recommended

Advanced Coded UI Testing
Advanced Coded UI Testing
Shai Raiten
 
Coded UI - Test automation Practices from the Field
Coded UI - Test automation Practices from the Field
Clemens Reijnen
 
UI testing frameworks and the Coded UI testing paradigm
UI testing frameworks and the Coded UI testing paradigm
Arnold Stellio
 
Coded ui test
Coded ui test
Abhimanyu Singhal
 
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: How to create cross ...
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: How to create cross ...
Microsoft Developer Network (MSDN) - Belgium and Luxembourg
 
Coded UI: Hand Coding based on Page Object Model
Coded UI: Hand Coding based on Page Object Model
Tharinda Liyanage
 
Coded ui - lesson 4 - coded ui test
Coded ui - lesson 4 - coded ui test
Omer Karpas
 
Coded ui - lesson 6 - manual coding
Coded ui - lesson 6 - manual coding
Omer Karpas
 
Coded ui - lesson 1 - overview
Coded ui - lesson 1 - overview
Omer Karpas
 
Coded ui in a nutshell
Coded ui in a nutshell
Omer Karpas
 
Remote Test Execution using TFS 2015 (RC2 and beyond)
Remote Test Execution using TFS 2015 (RC2 and beyond)
Allen Mathias
 
Coded ui - lesson 3 - case study - calculator
Coded ui - lesson 3 - case study - calculator
Omer Karpas
 
Test Tooling in Visual Studio 2012 an overview
Test Tooling in Visual Studio 2012 an overview
Clemens Reijnen
 
Coded ui - lesson 2 - coded ui test builder
Coded ui - lesson 2 - coded ui test builder
Omer Karpas
 
Unit testing with visual studio 2012
Unit testing with visual studio 2012
Abhimanyu Singhal
 
Technical meeting automated testing with vs2010
Technical meeting automated testing with vs2010
Clemens Reijnen
 
Coded ui - lesson 9 - test windows
Coded ui - lesson 9 - test windows
Omer Karpas
 
Testing with test_complete
Testing with test_complete
binuiweb
 
Test complete, work done so far
Test complete, work done so far
Leonel More, CSM, PMP, ITIL
 
UI Testing Automation
UI Testing Automation
AgileEngine
 
TestComplete – A Sophisticated Automated Testing Tool by SmartBear
TestComplete – A Sophisticated Automated Testing Tool by SmartBear
Software Testing Solution
 
Automating UI testing
Automating UI testing
Adam Siton
 
Testing_with_TestComplete
Testing_with_TestComplete
Samanuru G Chakravarthy
 
Test Complete
Test Complete
RomSoft SRL
 
Test automation - Building effective solutions
Test automation - Building effective solutions
Artem Nagornyi
 
Automation Testing with Test Complete
Automation Testing with Test Complete
Vartika Saxena
 
Open Source Software Testing Tools
Open Source Software Testing Tools
Varuna Harshana
 
Testing tools in visual studio
Testing tools in visual studio
Mahdi Esmailoghli
 
User Interface Testing | Best Practices
User Interface Testing | Best Practices
David Tzemach
 
UI Testing Best Practices - An Expected Journey
UI Testing Best Practices - An Expected Journey
Oren Farhi
 

More Related Content

What's hot (20)

Coded ui - lesson 1 - overview
Coded ui - lesson 1 - overview
Omer Karpas
 
Coded ui in a nutshell
Coded ui in a nutshell
Omer Karpas
 
Remote Test Execution using TFS 2015 (RC2 and beyond)
Remote Test Execution using TFS 2015 (RC2 and beyond)
Allen Mathias
 
Coded ui - lesson 3 - case study - calculator
Coded ui - lesson 3 - case study - calculator
Omer Karpas
 
Test Tooling in Visual Studio 2012 an overview
Test Tooling in Visual Studio 2012 an overview
Clemens Reijnen
 
Coded ui - lesson 2 - coded ui test builder
Coded ui - lesson 2 - coded ui test builder
Omer Karpas
 
Unit testing with visual studio 2012
Unit testing with visual studio 2012
Abhimanyu Singhal
 
Technical meeting automated testing with vs2010
Technical meeting automated testing with vs2010
Clemens Reijnen
 
Coded ui - lesson 9 - test windows
Coded ui - lesson 9 - test windows
Omer Karpas
 
Testing with test_complete
Testing with test_complete
binuiweb
 
Test complete, work done so far
Test complete, work done so far
Leonel More, CSM, PMP, ITIL
 
UI Testing Automation
UI Testing Automation
AgileEngine
 
TestComplete – A Sophisticated Automated Testing Tool by SmartBear
TestComplete – A Sophisticated Automated Testing Tool by SmartBear
Software Testing Solution
 
Automating UI testing
Automating UI testing
Adam Siton
 
Testing_with_TestComplete
Testing_with_TestComplete
Samanuru G Chakravarthy
 
Test Complete
Test Complete
RomSoft SRL
 
Test automation - Building effective solutions
Test automation - Building effective solutions
Artem Nagornyi
 
Automation Testing with Test Complete
Automation Testing with Test Complete
Vartika Saxena
 
Open Source Software Testing Tools
Open Source Software Testing Tools
Varuna Harshana
 
Testing tools in visual studio
Testing tools in visual studio
Mahdi Esmailoghli
 
Coded ui - lesson 1 - overview
Coded ui - lesson 1 - overview
Omer Karpas
 
Coded ui in a nutshell
Coded ui in a nutshell
Omer Karpas
 
Remote Test Execution using TFS 2015 (RC2 and beyond)
Remote Test Execution using TFS 2015 (RC2 and beyond)
Allen Mathias
 
Coded ui - lesson 3 - case study - calculator
Coded ui - lesson 3 - case study - calculator
Omer Karpas
 
Test Tooling in Visual Studio 2012 an overview
Test Tooling in Visual Studio 2012 an overview
Clemens Reijnen
 
Coded ui - lesson 2 - coded ui test builder
Coded ui - lesson 2 - coded ui test builder
Omer Karpas
 
Unit testing with visual studio 2012
Unit testing with visual studio 2012
Abhimanyu Singhal
 
Technical meeting automated testing with vs2010
Technical meeting automated testing with vs2010
Clemens Reijnen
 
Coded ui - lesson 9 - test windows
Coded ui - lesson 9 - test windows
Omer Karpas
 
Testing with test_complete
Testing with test_complete
binuiweb
 
UI Testing Automation
UI Testing Automation
AgileEngine
 
TestComplete – A Sophisticated Automated Testing Tool by SmartBear
TestComplete – A Sophisticated Automated Testing Tool by SmartBear
Software Testing Solution
 
Automating UI testing
Automating UI testing
Adam Siton
 
Test automation - Building effective solutions
Test automation - Building effective solutions
Artem Nagornyi
 
Automation Testing with Test Complete
Automation Testing with Test Complete
Vartika Saxena
 
Open Source Software Testing Tools
Open Source Software Testing Tools
Varuna Harshana
 
Testing tools in visual studio
Testing tools in visual studio
Mahdi Esmailoghli
 

Viewers also liked (20)

User Interface Testing | Best Practices
User Interface Testing | Best Practices
David Tzemach
 
UI Testing Best Practices - An Expected Journey
UI Testing Best Practices - An Expected Journey
Oren Farhi
 
Non-functional Testing (NFT) Overview
Non-functional Testing (NFT) Overview
Assaf Halperin
 
Non Functional Testing
Non Functional Testing
Nishant Worah
 
Non-Functional testing
Non-Functional testing
Kanoah
 
Testing responsive web design pdf
Testing responsive web design pdf
crilusi
 
The evolution of agile development process
The evolution of agile development process
David Tzemach
 
Visual Regression Testing
Visual Regression Testing
VodqaBLR
 
All you need to know about regression testing | David Tzemach
All you need to know about regression testing | David Tzemach
David Tzemach
 
Regression Testing
Regression Testing
Habibur Rony
 
Agile vs. waterfall - The fundamentals differences
Agile vs. waterfall - The fundamentals differences
David Tzemach
 
Non-functional testing
Non-functional testing
Vishwanath KC
 
Installation testing
Installation testing
Robin0590
 
What are the advantages of non functional testing
What are the advantages of non functional testing
Maveric Systems
 
Regression testing
Regression testing
Mohua Amin
 
Non functional testing
Non functional testing
Vaibhav Dash
 
Non Functional Testing_Sampath kumar Mohan
Non Functional Testing_Sampath kumar Mohan
Sampath kumar Mohan
 
Installation testing
Installation testing
Shareb Ismaeel
 
Introduction to android testing
Introduction to android testing
Diego Torres Milano
 
Android testing
Android testing
JinaTm
 
User Interface Testing | Best Practices
User Interface Testing | Best Practices
David Tzemach
 
UI Testing Best Practices - An Expected Journey
UI Testing Best Practices - An Expected Journey
Oren Farhi
 
Non-functional Testing (NFT) Overview
Non-functional Testing (NFT) Overview
Assaf Halperin
 
Non Functional Testing
Non Functional Testing
Nishant Worah
 
Non-Functional testing
Non-Functional testing
Kanoah
 
Testing responsive web design pdf
Testing responsive web design pdf
crilusi
 
The evolution of agile development process
The evolution of agile development process
David Tzemach
 
Visual Regression Testing
Visual Regression Testing
VodqaBLR
 
All you need to know about regression testing | David Tzemach
All you need to know about regression testing | David Tzemach
David Tzemach
 
Regression Testing
Regression Testing
Habibur Rony
 
Agile vs. waterfall - The fundamentals differences
Agile vs. waterfall - The fundamentals differences
David Tzemach
 
Non-functional testing
Non-functional testing
Vishwanath KC
 
Installation testing
Installation testing
Robin0590
 
What are the advantages of non functional testing
What are the advantages of non functional testing
Maveric Systems
 
Regression testing
Regression testing
Mohua Amin
 
Non functional testing
Non functional testing
Vaibhav Dash
 
Non Functional Testing_Sampath kumar Mohan
Non Functional Testing_Sampath kumar Mohan
Sampath kumar Mohan
 
Android testing
Android testing
JinaTm
 
Ad

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

YuryMakedonov_GUI_TestAutomation_QAI_Canada_2007_14h
YuryMakedonov_GUI_TestAutomation_QAI_Canada_2007_14h
Yury M
 
Embedded software validation best practices with NI and RQM
Embedded software validation best practices with NI and RQM
Paul Urban
 
Remote (Mobile) Usability Testing Lab
Remote (Mobile) Usability Testing Lab
Jan Moons
 
Proven Approaches to AI-Powered E2E Testing.pdf
Proven Approaches to AI-Powered E2E Testing.pdf
Applitools
 
Automated Generation, Evolution and Maintenance: a perspective for mobile GUI...
Automated Generation, Evolution and Maintenance: a perspective for mobile GUI...
Riccardo Coppola
 
Improving Software quality for the Modern Web
Improving Software quality for the Modern Web
Euan Garden
 
ICSE17Tech Briefing - Automated GUI Testing of Android Apps: From Research to...
ICSE17Tech Briefing - Automated GUI Testing of Android Apps: From Research to...
Kevin Moran
 
Creating a successful continuous testing environment by Eran Kinsbruner
Creating a successful continuous testing environment by Eran Kinsbruner
QA or the Highway
 
Agile Development in Aerospace and Defense
Agile Development in Aerospace and Defense
Jim Nickel
 
Mobitop
Mobitop
Architect-CoE- Automation Testing - Sridhar
 
Mobitop
Mobitop
Architect-CoE- Automation Testing - Sridhar
 
Mobitop
Mobitop
Architect-CoE- Automation Testing - Sridhar
 
Mobitop
Mobitop
Architect-CoE- Automation Testing - Sridhar
 
LDNSE: Testdroid for Mobile App and Web Testing (London Selenium Meetup)
LDNSE: Testdroid for Mobile App and Web Testing (London Selenium Meetup)
Bitbar
 
Velocity Conference: Increasing Speed To Market In Mobile Development Through...
Velocity Conference: Increasing Speed To Market In Mobile Development Through...
Intuit Inc.
 
App Days 2016 Munich - Mobile Applications testing by Leaware
App Days 2016 Munich - Mobile Applications testing by Leaware
Leaware.com
 
Android automation tools
Android automation tools
SSGMCE SHEGAON
 
Zibrasoft | Software QA Testing Company Inida
Zibrasoft | Software QA Testing Company Inida
ZibraSoft Technologies
 
Mdc2010 Automated Mobile Testing
Mdc2010 Automated Mobile Testing
momobangalore
 
The ROI of AI-Powered Testing, presented by Applitools
The ROI of AI-Powered Testing, presented by Applitools
Applitools
 
YuryMakedonov_GUI_TestAutomation_QAI_Canada_2007_14h
YuryMakedonov_GUI_TestAutomation_QAI_Canada_2007_14h
Yury M
 
Embedded software validation best practices with NI and RQM
Embedded software validation best practices with NI and RQM
Paul Urban
 
Remote (Mobile) Usability Testing Lab
Remote (Mobile) Usability Testing Lab
Jan Moons
 
Proven Approaches to AI-Powered E2E Testing.pdf
Proven Approaches to AI-Powered E2E Testing.pdf
Applitools
 
Automated Generation, Evolution and Maintenance: a perspective for mobile GUI...
Automated Generation, Evolution and Maintenance: a perspective for mobile GUI...
Riccardo Coppola
 
Improving Software quality for the Modern Web
Improving Software quality for the Modern Web
Euan Garden
 
ICSE17Tech Briefing - Automated GUI Testing of Android Apps: From Research to...
ICSE17Tech Briefing - Automated GUI Testing of Android Apps: From Research to...
Kevin Moran
 
Creating a successful continuous testing environment by Eran Kinsbruner
Creating a successful continuous testing environment by Eran Kinsbruner
QA or the Highway
 
Agile Development in Aerospace and Defense
Agile Development in Aerospace and Defense
Jim Nickel
 
LDNSE: Testdroid for Mobile App and Web Testing (London Selenium Meetup)
LDNSE: Testdroid for Mobile App and Web Testing (London Selenium Meetup)
Bitbar
 
Velocity Conference: Increasing Speed To Market In Mobile Development Through...
Velocity Conference: Increasing Speed To Market In Mobile Development Through...
Intuit Inc.
 
App Days 2016 Munich - Mobile Applications testing by Leaware
App Days 2016 Munich - Mobile Applications testing by Leaware
Leaware.com
 
Android automation tools
Android automation tools
SSGMCE SHEGAON
 
Zibrasoft | Software QA Testing Company Inida
Zibrasoft | Software QA Testing Company Inida
ZibraSoft Technologies
 
Mdc2010 Automated Mobile Testing
Mdc2010 Automated Mobile Testing
momobangalore
 
The ROI of AI-Powered Testing, presented by Applitools
The ROI of AI-Powered Testing, presented by Applitools
Applitools
 
Ad

More from Eric D. Boyd (11)

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

Recently uploaded (20)

Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
"Scaling in space and time with Temporal", Andriy Lupa.pdf
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
Coordinated Disclosure for ML - What's Different and What's the Same.pdf
Coordinated Disclosure for ML - What's Different and What's the Same.pdf
Priyanka Aash
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
Quantum AI: Where Impossible Becomes Probable
Quantum AI: Where Impossible Becomes Probable
Saikat Basu
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
Edge AI and Vision Alliance
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
The Future of Technology: 2025-2125 by Saikat Basu.pdf
The Future of Technology: 2025-2125 by Saikat Basu.pdf
Saikat Basu
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
"Scaling in space and time with Temporal", Andriy Lupa.pdf
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
Coordinated Disclosure for ML - What's Different and What's the Same.pdf
Coordinated Disclosure for ML - What's Different and What's the Same.pdf
Priyanka Aash
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
Quantum AI: Where Impossible Becomes Probable
Quantum AI: Where Impossible Becomes Probable
Saikat Basu
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
Edge AI and Vision Alliance
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
The Future of Technology: 2025-2125 by Saikat Basu.pdf
The Future of Technology: 2025-2125 by Saikat Basu.pdf
Saikat Basu
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
 

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