Download presentation
Presentation is loading. Please wait.
Published byMagnus Howard Modified over 9 years ago
2
Creating Robust, Maintainable Coded UI Tests with Visual Studio 2012 Brian Keller Sr. Technical Evangelist Microsoft Corporation DEV312
5
http://bit.ly/ThisWeekC9
7
http://tinyurl.com/ALM2010Book http://tinyurl.com/TFSBook
8
http://tinyurl.com/ALM2012 http:// tinyurl.com/ProTFS2012
10
What You’ll Need Visual Studio 2012 Premium or Ultimate C# or VB skills Microsoft Test Manager (optionally) Team Foundation Server (optionally) Testable application
12
demo Coded UI Tests
13
using (ApplicationUnderTest.Launch(this.UIMap.LaunchApp Params.UIMyWindowsFormsAppWindowExePath, this.UIMap.LaunchAppParams.UIMyWindowsFormsAppWin dowAlternateExePath)) { this.UIMap.SimpleTest(); … } Note: This is required in 2010 only. In 2012, app closes when test run finishes. Use ApplicationUnderTest.CloseOnPlaybackCleanup & BrowserWindow.CloseOnPlaybackCleanup to preserve between test methods.
15
Note: This dialog is currently not available in Visual Studio 2012. Need to hand-edit data connection attributes.
17
Image pic = this..CaptureImage(); //Or for entire desktop: Image pic = UITestControl.Desktop.CaptureImage(); pic.Save(@"c:\file.bmp"); TestContext.AddResultFile(@"c:\file.bmp");
22
http://testapi.codeplex.com/ Input Injection APIs Command-Line Parsing APIs Visual Verification APIs Combinatorial Variation Generation APIs Managed Code Fault Injection APIs Text String Generation APIs Memory Leak Detection APIs Object Comparison APIs More…
30
SCVMM EnvironmentStandard Environment Build-Deploy-Test Snapshot / Restore Share Bug Snapshots Network Fencing 3 rd Party Virtualization Physical Machines
31
demo Using Lab Management with Coded UI Tests
33
tfspreview.com
34
Breakout Sessions DEV214Introducing the New Visual Studio 2012 Unit Testing Experience DEV344Developer Collaboration with Team Foundation Server 2012 AAP309Making Agile Estimation Work DEV337Software testing with Microsoft Test Manager 2012 and Lab Management DEV317Going Beyond F11: Debug Better and Faster with Visual Studio 2012 DEV340Taking ALM to the Cloud with the Team Foundation Service AAP313Scrum Under a Waterfall DEV362From Development to Production: Optimizing for Continuous Delivery DEV363Dev-Ops Best Practices on the Microsoft Stack DEV212Implementing Scrum Using Team Foundation Server 2012
35
Breakout Sessions DEV346All Aboard the Team Foundation Server Express DEV217Deep Dive into the Team Foundation Server 2012 Agile Planning Tools DEV365Advanced IntelliTrace in Production with Visual Studio 2012 DEV316Application Lifecycle Management Tools for C++ in Visual Studio 2012 DEV343Implementing Team Foundation Server in the Enterprise DEV321Continuous Feedback in Agile Teams DEV243Demystifying Team Foundation Server Builds DEV411Testing Un-testable Code with Fakes in Visual Studio 2012 DEV410Deep Dive into Team Foundation Server 2012 Reporting DEV412Identify and Fix Performance Problems with Visual Studio 2012 Ultimate DEV345The Accidental Team Foundation Server Admin
36
Breakout Sessions DEV318Working on an Agile team with Visual Studio 2012 and Team Foundation Server 2012 DEV339Metrics That Matter: Improving Lean and Agile, Kanban and Scrum AAP204Introduction to Kanban Hands-on Labs (session codes and titles) DEV11-HOLAgile Project Management in Team Foundation Server 2012 DEV12-HOLBuild the Right Software and Collaborate Effectively Using Storyboarding and Feedback Tools in Visual Studio 2012 DEV13-HOLUsing IntelliTrace with Production Systems to Quickly Diagnose and Fix Issues DEV16-HOLLearn How Microsoft Test Manager 2012 Will Embrace an Exploratory Testing Approach DEV17-HOLExplore the New Unit Testing and Code Clone Capabilities of Visual Studio 2012 DEV19-HOLDiscover How the New Features of Team Foundation Server 2012 Can Improve Collaboration in Your Development Team
37
Connect. Share. Discuss. http://europe.msteched.com Learning Microsoft Certification & Training Resources www.microsoft.com/learning TechNet Resources for IT Professionals http://microsoft.com/technet Resources for Developers http://microsoft.com/msdn
38
Evaluations http://europe.msteched.com/sessions Submit your evals online
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.