getting started with visual studio’s coded ui testing: building your first automated test
TRANSCRIPT
![Page 1: Getting Started with Visual Studio’s Coded UI Testing: Building Your First Automated Test](https://reader030.vdocuments.net/reader030/viewer/2022032514/55d542afbb61ebdb2d8b466e/html5/thumbnails/1.jpg)
Coded UI Testing with Visual Studio 2013
Writing Your First Coded UI Test
![Page 2: Getting Started with Visual Studio’s Coded UI Testing: Building Your First Automated Test](https://reader030.vdocuments.net/reader030/viewer/2022032514/55d542afbb61ebdb2d8b466e/html5/thumbnails/2.jpg)
Colin DembovskyALM MVPEast London, South Africa
@colindembovsky
![Page 3: Getting Started with Visual Studio’s Coded UI Testing: Building Your First Automated Test](https://reader030.vdocuments.net/reader030/viewer/2022032514/55d542afbb61ebdb2d8b466e/html5/thumbnails/3.jpg)
Agenda
• What is Coded UI?• Supported Technologies• Reverse Engineering an Action Recording• Recording Actions• Adding Validations• Finding Controls• Refactoring• Running Automated Tests
• Coded UI Tests for Windows Store Apps
![Page 4: Getting Started with Visual Studio’s Coded UI Testing: Building Your First Automated Test](https://reader030.vdocuments.net/reader030/viewer/2022032514/55d542afbb61ebdb2d8b466e/html5/thumbnails/4.jpg)
What is Coded UI?
• “Unit Tests” that interact with a User Interface• Used for Functional Testing
• Allows you to find controls, inspect control properties and interact with controls
• Includes namespaces like Mouse, Keyboard and Gesture
• Coded UI Tests are just “code”
![Page 5: Getting Started with Visual Studio’s Coded UI Testing: Building Your First Automated Test](https://reader030.vdocuments.net/reader030/viewer/2022032514/55d542afbb61ebdb2d8b466e/html5/thumbnails/5.jpg)
VS 2013 Coded UI Supported Technologies
Technology Support
.NET 2.0 and up (Requires .NET 4 to operate)
Windows 2008 R2, 7, 8, 8.1
Windows Store Apps Only on Windows 8.1
IE 8 and up Only in Desktop Mode
Chrome / Firefox Only latest versions
Windows Forms 2.0 and up Fully supported
WPF 3.5 and up Fully supported
SharePoint / Dynamics CRM Web Client Fully supported
Win 32 / MFC / Dynamics (Ax) 2012 Client Partially supported
Citrix/Terminal Services / PowerBuilder Partially supported
SAP / Office Client Apps None
Opera / Safari None
Silverlight / Flash / Java None
http://msdn.microsoft.com/en-us/library/dd380742.aspx
![Page 6: Getting Started with Visual Studio’s Coded UI Testing: Building Your First Automated Test](https://reader030.vdocuments.net/reader030/viewer/2022032514/55d542afbb61ebdb2d8b466e/html5/thumbnails/6.jpg)
2 Methods of Creating Coded UI Tests
Run Manual Test with Action Recording
Let VS 2013 Generate Code from Recording
Start ManuallyUse Action Recorder to
Record Actions
Use Action Recorder to Add Validations
![Page 7: Getting Started with Visual Studio’s Coded UI Testing: Building Your First Automated Test](https://reader030.vdocuments.net/reader030/viewer/2022032514/55d542afbb61ebdb2d8b466e/html5/thumbnails/7.jpg)
Running Automated Tests
• (Run from Visual Studio or MSTest.exe)
• Run from Microsoft Test Manager (MTM)• Requires Associating code to Test Case
• Run as part of a Team Build• Requires Build Agent to run in “Interactive Mode”
• Run as part of Build-Deploy-Test Lab Workflow• Requires Associating code to Test Case• Requires a Lab Environment with Coded UI enabled
![Page 8: Getting Started with Visual Studio’s Coded UI Testing: Building Your First Automated Test](https://reader030.vdocuments.net/reader030/viewer/2022032514/55d542afbb61ebdb2d8b466e/html5/thumbnails/8.jpg)
Want to know more...?
![Page 9: Getting Started with Visual Studio’s Coded UI Testing: Building Your First Automated Test](https://reader030.vdocuments.net/reader030/viewer/2022032514/55d542afbb61ebdb2d8b466e/html5/thumbnails/9.jpg)
Imaginet’s Visual Studio Website!
http://visualstudio.imaginet.com
Visit Imaginet’s Visual Studio website, your one-stop hub for all your Visual Studio needs!
![Page 10: Getting Started with Visual Studio’s Coded UI Testing: Building Your First Automated Test](https://reader030.vdocuments.net/reader030/viewer/2022032514/55d542afbb61ebdb2d8b466e/html5/thumbnails/10.jpg)
Need Help with YOUR Application Lifecycle Management?
• Includes planning and upgrading of your existing Team Foundation Server (TFS) to the newest version of TFS
• Learn best practices for source control, build management, agile methodologies, and work management processes using the newest version of TFS.
• Support and training for your team
• Includes a high-level ALM assessment
Imaginet’s Visual Studio TFS Upgrade 10-day Quickstart
Interested? Just email us at [email protected].
![Page 11: Getting Started with Visual Studio’s Coded UI Testing: Building Your First Automated Test](https://reader030.vdocuments.net/reader030/viewer/2022032514/55d542afbb61ebdb2d8b466e/html5/thumbnails/11.jpg)
ALM Planning & Implementation ServicesALM Planning • ALM Assessment & Envisioning Workshops
(3 or 5 days)• VS & TFS Migration Planning Workshop (5
days)• TFS Deployment Planning* (5 days)• Visual SourceSafe to TFS Migration
Planning* (3 Days)• Visual Studio Quality Tools Deployment
Planning* (5 days)
Upgrade• TFS 2013 Adoption Quick Start (5 or 10
days)• TFS 2012 Adoption Quick Start (5 or 10
days)• TFS 2013 Upgrade Quick Start (10 days)• TFS 2012 Upgrade Quick Start (10 days)
Remote Support• Remote Support for TFS & Visual Studio
Lab• Visual Studio Lab Management Quick Start
(10 days)
Testing• Manual Testing with Test Manager Quick
Start (5 days)• Visual Studio Testing Tools Quick Start (10
days)• Visual Studio Automated Testing Quick Start
(5 days)• Visual Studio Load Testing Quick Start (5 or
10 Days)
Builds• Automated Build & Release Management
Quick Start (5 days)• Automated Build Center of Excellence (CoE)
Database• Visual Studio Database Tools Quick Start (10
days)
Integrations• Team Foundation Server (TFS) & Project
Server Integration Quick Start (10 days)• TFS & Quality Center Integration/Migration
Quick Start (10 days)
![Page 12: Getting Started with Visual Studio’s Coded UI Testing: Building Your First Automated Test](https://reader030.vdocuments.net/reader030/viewer/2022032514/55d542afbb61ebdb2d8b466e/html5/thumbnails/12.jpg)
For questions or more information,please contact us at:
[email protected] or (972)607-4830
Remember to add http://blog.imaginet.com to your favorite reader!
![Page 13: Getting Started with Visual Studio’s Coded UI Testing: Building Your First Automated Test](https://reader030.vdocuments.net/reader030/viewer/2022032514/55d542afbb61ebdb2d8b466e/html5/thumbnails/13.jpg)
http://www.imaginet.com