Building Robust, Maintainable Coded UI Tests with Visual Studio 2010 Brian Keller Sr. Technical Evangelist – Visual Studio ALM

Slides:



Advertisements
Similar presentations
YOUR LOGO HERE YOUR LOGO HERE Amy Brink Comparing caTissue Plus to caTissue 1.3.6A Amy Brink March 5 th, 2014.
Advertisements

Tips, Tricks, and Techniques for Building Killer Silverlight Apps Jeff Prosise
Build-Deploy-Test with Visual Studio Lab Management 2010 Pieter Gheysens Visual Studio ALM MVP – Sparkles User Group Lead VISUG (
SOFTWARE PRESENTATION ODMS (OPEN SOURCE DOCUMENT MANAGEMENT SYSTEM)
HTML5 That’s what you need to know today Ingo Rammer, thinktecture
Mike Azocar Sr. Developer Technical Specialist Microsoft Corporation
Mobile Technology for Real Property Assessment Tax Assessor’s Office Davie County, North Carolina.
& Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin
03 | Application Lifecycle Management Susan Ibach| Technical Evangelist Christopher Harrison | Head Geek.
Introduction to SharePoint and Project Siena Knut Relbe-Moe (Avega Group)
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 5: User Environment and Multiple Languages.
Switching on the cloud for Silverlight MSDN Live Meeting Gill Cleeren Microsoft Regional Director – Silverlight MVP Ordina Belgium.
DEV309.
SQL Server 2008 Basmah AlQadheeb-213 MIS What is a Database ? A database is a collection of Data that is organized so that it can easily be accessed,
Parallel Programming in.NET 4.0 Tasks and Threading Ingo Rammer, thinktecture
Testing Tools using Visual Studio Randy Pagels Sr. Developer Technology Specialist Microsoft Corporation.
Creating Robust, Maintainable Coded UI Tests with Visual Studio 2012 Brian Keller Sr. Technical Evangelist Microsoft Corporation DEV312.
FUNDAMENTALS OF PROGRAMMING SM1204 SEMESTER A 2012.
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
How to create a Windows app with Project Siena, SharePoint and Office 365 Knut Relbe-Moe Office 365 MVP Chief Technical Architect.
Total Workstation Lockdown: Your Action Plan Jeremy Moskowitz, Group Policy MVP Chief Propeller-Head: GPanswers.com Founder: PolicyPak Software (policypak.com)
Capture and Replay Often used for regression test development –Tool used to capture interactions with the system under test. –Inputs must be captured;
NuGet in Depth Making Open Source Suck Less at Microsoft Scott Hanselman
OFC335 Microsoft Office Word 2007 XML Programmability: True Data/View Separation and Rich Eventing for Custom XML Tristan Davis Program Manager Microsoft.
Parallel Programming in.NET 4.0 Tasks and Threading Ingo Rammer, thinktecture
BIT 286: Web Applications Automated Web Testing. Selenium  Selenium Is moving from being Firefox based to being more of a 'normal desktop' program that.
Ram Cherala Principal Program Manager Microsoft Corporation DTL320.
Ahmed Salijee Developer Advisor DTL201.
Migration and Deployment of Office 2010 Steffen Krause Senior Technical Evangelist Microsoft Deutschland GmbH
Windows Azure for IT Pros Kurt CLAEYS (TSP Windows Azure, Microsoft EMEA)
Importance of customer feedback Customer feedback.
Msdevcon.ru#msdevcon. ИЗ ПЕРВЫХ РУК: ДИАГНОСТИКА ПРИЛОЖЕНИЙ С ПОМОЩЮ ИНСТРУМЕНТОВ VISUAL STUDIO 2012 MAXIM GOLDIN Senior Developer, Microsoft.
Sofia Event Center May 2014 Martin Kulov Test Automation with Visual Studio.
Forthcoming SQL Azure Services: SQL Azure Data Sync & SQL Azure Reporting Mark Scurrell Lead Program Manager Microsoft.
Introducing Visual Studio 2010: What It Is and Why You Should Care
Switch on the LightSwitch Gill Cleeren Microsoft Regional Director / Silverlight MVP Ordina Belgium
Developing SaaS Applications with the Windows Azure Platform Vittorio Bertocci
Microsoft Corporation. Announcement Visual Studio® Team System 2008 Enables you to Build Quality Code Be More Productive Collaborate at the Next Level.
Service Manager 2010 Real Life Example: The coffee workflow Mike Resseler & Alexandre Verkinderen Infront Consulting Group.
Troubleshooting Group Policy Jeremy Moskowitz, Group Policy MVP Chief Propeller-Head: GPanswers.com Founder: PolicyPak Software (policypak.com) Twitter:
How to create a Windows app with Project Siena, SharePoint and Office 365 Knut Relbe-Moe Office 365 MVP Chief Technical Architect.
To OData or Not to OData Chris Eargle kodefuguru.com.
CIS-NG CASREP Information System Next Generation Shawn Baugh Amy Ramirez Amy Lee Alex Sanin Sam Avanessians.
TEST AUTOMATION WITH VISUAL STUDIO 2010: CODED UI TESTS AND LAB MANAGEMENT Brian Keller Microsoft.
What’s new in Azure SDK 1.3 (and 1.4) Peter Himschoot Microsoft Regional Director Belux U2U Trainer/Architect
MANUAL TESTING WITH MICROSOFT TEST MANAGER 2010 Brian Keller Microsoft.
Ognjen Bajić Ana Roje Ivančić Ekobit Efficient Application Testing.
Integrating ArcSight with Enterprise Ticketing Systems
Make Power BI Your Own with the Power BI APIs
Dive into Application Lifecycle Management with Visual Studio 2010
6/13/2018 1:23 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Make Power BI Your Own with the Power BI APIs
Automating AD Administration with Windows PowerShell
Manual testing of Windows Metro style apps built using HTML
Student Registration/ Personal Needs Profile
Rock Hard: C++ Evolving
Glenn Block MEF in the real world Glenn Block
For Computer-Based Testing
SharePoint & jQuery: Better Together
Unlocking the secrets of REST with WCF
WCF Web API, HTTP your way
Chris Eargle kodefuguru.com
For Computer-Based Testing
Student Registration/ Personal Needs Profile
CMPE 135: Object-Oriented Analysis and Design March 14 Class Meeting
SharePoint Workflow: Taking the Manual Out of Your Process
Opalis System Center Integration Packs Deep Dive
Generate Data with Google Analytics SQL Saturday /04/2019.
Tutorial Introduction to help.ebsco.com.
Presentation transcript:

Building Robust, Maintainable Coded UI Tests with Visual Studio 2010 Brian Keller Sr. Technical Evangelist – Visual Studio ALM

I work here…

…on this…

…and this.

I blog here:

Session Objectives and Takeaways Find more UI regression bugs by employing coded UI tests. Build and maintain robust coded UI tests. Create coded UI tests which result in fewer false positives. Bugs Found False Positives Effort

What You’ll Need  Visual Studio 2010 Premium or Ultimate  Feature Pack 2  C# or VB skills  (optionally) Microsoft Test Manager  Testable application

Test Automation Platform Support

DEMO

Get Used to Using Using. It’s Useful! using (ApplicationUnderTest.Launch(this.UIM ap.LaunchAppParams.UIMyWindowsFormsAp pWindowExePath, this.UIMap.LaunchAppParams.UIMyWindow sFormsAppWindowAlternateExePath)) { this.UIMap.SimpleTest(); … }

Understand Searching & Filtering ( Searching is used to look for all POSSIBLE controls. Filtering is used to narrow that list to exactly one match. X, Y is only used to guide where the clicks happen within a control. Mouse.Click(uIGOButton, new Point(19, 18));

Employ Databinding Test -> Windows -> Test View -> Properties -> Select CSV, XML, or Database. this.UIMap.SimpleTestParams.UIMyTextboxEditText = TestContext.DataRow[“col_name"].ToString(); Note: Databinding to test parameters happens automatically when converting from manual test cases.

Make Friendlier Assertions Makes it easier to analyze test run data. Assert.AreEqual(foo, bar, "Sales tax total is wrong.");

Smile! You’re on Camera. Image pic = this..CaptureImage( ); //Or for entire desktop: Image pic = UITestControl.Desktop.CaptureImage(); mp");

Microsoft Test Manager -> CUIT Workflow Tips Mark each step as pass/fail when recording manual tests. Carefully consider which test cases make sense for automation, and when. Use the Automation Status field of Test Cases to identify candidates for automation.

Continue on Error For actions that may not happen every time. Playback.PlaybackSettings.ContinueOnError = true; or:

Testing with Firefox Firefox 3.5 or 3.6 Requires Visual Studio 2010 Feature Pack 2 //call this at the beginning of your test BrowserWindow.CurrentBrowser = “Firefox”; //instead of clicking the close button This.UIMap..Close();

Multiple UI Map Files ( Allows you to separate logical collections of controls. Easier to edit independently. Easier to version control. Requires a bit more up-front effort. Doesn’t play well with MTM workflow.

Making Your Applications More Testable Use a testable application stack Give names to controls Use naming conventions and stick with them. If you need to change the names of controls, refactor them along with your tests. Carefully consider the implications of changing UI flows. Educate non-test developers on CUITs. Educate manual testers on CUITs.

What About Load Testing? Coded UI tests assume they have “control” of the mouse and keyboard. Load testing can be accomplished but you need one machine (physical or virtual) per virtual user. See

Playback Settings Search timeouts Search behaviors Error behaviors See

Windows Automation API 3.0 If running an O/S prior to Windows 7 / 2008 R2, install this platform update:

Session Objectives and Takeaways Find more UI regression bugs by employing coded UI tests. Build and maintain robust coded UI tests. Create coded UI tests which result in fewer false positives.

Resources

Stay up to date with MSDN Belux Register for our newsletters and stay up to date: Technical updates Event announcements and registration Top downloads Follow our blog Join us on Facebook LinkedIn: Download MSDN/TechNet Desktop Gadget

TechDays 2011 On-Demand Watch this session on-demand via Channel9 Download to your favorite MP3 or video player Get access to slides and recommended resources by the speakers

THANK YOU