Visual Studio UI Automation Testing (includes Coded UI tests)
Discuss using Visual Studio for automation testing - including the new CodedUI tests for Visual Studio 2010.
ประกาศ
- Link
Code First API Library, Scaffolding & Guidance for Coded UI Tests–Released to Codeplex
The purpose of Code First API Library, Scaffolding & Guidance for Coded UI Tests is to help you write more maintainable Coded UI tests for your web apps. When building Web UI Tests the way that's proposed here - you aren't going to be recording test scripts nor building UI Maps. Instead, you'll be writing Page Objects that are interacting with the elements on the page.
- Link
Coded UI Test Plugin for Silverlight
Using the Microsoft Visual Studio UI Test plugin for Silverlight, you can create Coded UI Tests or action recordings for Silverlight applications. Action recordings let you fast forward through steps in a manual test using Microsoft Test Manager. Coded UI Tests let you record actions, generate code and play back user interface tests using Microsoft Visual Studio.
This plugin supports Silverlight 4 & 5 applications hosted in Internet Explorer versions 8, 9 & 10. It requires Microsoft Visual Studio 2012 RC.
A few members of the product team got together and built this plugin as an off-hours project. It is not an official Microsoft release. We will monitor the Qand A section on the Visual Studio Galley site for feedback and queries.
For more details and to download the plugin visit VisualStudio Gallery.
Deepak Singhal, Mathew Aniyan, Siddhartha Pandey, Tapas Sahoo, Vishnupriyan Radhamanalan.
- Link
This Forum Has Been Retired
This forum has been locked; it will still be available for review in the Archived Forums folder. Any future posts on this topic should be put in the Test Tools in Visual Studio 2010 and 2012 forum.
- Link
Content Index for Coded UI Test
You can see a list of articles related to Coded UI Test (organized into various sections) in the link below.
http://blogs.msdn.com/mathew_aniyan/pages/content-index-for-coded-ui-test.aspx
It is a great place to start your exploration of Coded UI Test feature. - Link
Introducing Cross Browser Testing with Coded UI Tests
Coded UI Tests help automate browser based applications built on Internet Explorer. We are now enabling cross-browser testing of such applications. Users will be able to perform functional testing of web applications across IE/Firefox/Chrome. One can use IE to record tests and validate control properties using Coded UI Test Builder. Users also have an option to hand code cross browser tests. If user needs to playback on IE, she can click on Run All in Test Explorer which plays back the recording using Coded UI inbuilt IE Plugin. On the other hand, if the user needs to playback on non-IE browser, she can set BrowserWindow.CurrentBrowser as “firefox” or “chrome” in the test depending on which browser she wants to test before running from the test explorer. In this case, Coded UI Engine communicates with Selenium Web Driver to execute the playback.
Hope you like this feature. Feel free to drop your feedback here
System Requirements:
- Operating System: Windows 8 X86 Client/Windows 8 X64/Win7 X64/Win7 X86/Win2k8 R2 SP1
- IE version - IE9/ classic IE10
- Firefox version - 15+
- Chrome version - 21+
- Visual Studio Ultimate - VS 2012 RTM + VS 2012 Update 1 CTP
- Selenium NET Bindings and the Selenium ChromeDriver made available to you through an installer on Visual Studio Gallery. Refer to the file attachment "CUIT Cross Browser Testing Acquisition" for more details
Features:
The following features are available across the various web browsers:
- Recording support for actions and validation on supported IE browsers
- Hand-coding scenarios support for such things as control properties, search, and playback waiters.
- Support for popups and dialog
- Ability to execute basic JavaScript with no return type
- Search resilience (via smart match) and performance improvements
Scenario Videos:
Record on IE and Playback everywhere
Author cross browser tests with Coded UI Test Builder
Author cross browser tests using plain hand coding without UI Map
Run cross browser tests sequentially on multiple browsers
Troubleshoot cross browser test failures
Known Limitations
- No support for Safari browser
- Browser launch needs to be part of the UITest. In case you have a browser already open and you want to run steps on the opened browser, playback will fail for non-IE browser windows. Hence, it is advisable to have launch too as part of the test case.
- Automating browser based actions such as Maximize/minimize/restore is not supported
Troubleshooting tips
Enable HTML Logger - follow http://msdn.microsoft.com/en-us/library/jj159363.aspx
Feedback Survey:
Please fill in the survey to register your feedback on this feature: https://s.zoomerang.com/s/CrossBrowserTesting. Your feedback will help us plan for further enhancement to the cross browser feature.
การกรองและการเรียงลำดับใช้ตัวเลือกเหล่านี้เพื่อจำกัดคำถามและรายการสนทนาให้แคบลง
- 102383

Why does an assert on the properties of .Extists or Enabled ALWAYS return true
GLimbaugh 21 กันยายน 2555 17:41 - 71796

I need "Microsoft.VisualStudio.TestTools.UITest.Framework" dll (version 10.0.30319.1)
RajYogi 7 ธันวาคม 2555 6:18 - 111412

Problem testing validation in viewmodel using coded ui test
WPFASL 11 ธันวาคม 2555 17:31 - 64279

"Unable to load the test container" error while running coded ui tests on the nightly build from TFS
shadhana 23 ธันวาคม 2554 14:34 - 21120

window.SearchProperties.Add parameter
Wayne.Wu 19 ธันวาคม 2555 5:42 - 11050

Failed to Assembly.LoadFrom a 64-bit assembly
totta wang 19 ธันวาคม 2555 7:26 - 34940

Usage of Regular expressions
Vijaya Chavvakula 24 มีนาคม 2553 15:08 - 41209

Dynamic test object
chandu.k 12 ธันวาคม 2555 18:08 - 41163

unable to find new panel name in the code
anu2011 14 ธันวาคม 2555 9:04 - 61086

What is the best way to compare reports?
OneHip51 11 ธันวาคม 2555 23:16 - 31018

Html Inner Text property is rendered differently in VS 2012 than VS 2010?
OneHip51 13 ธันวาคม 2555 0:54 - 54936

How do I get to the HTMLDocument from BrowserWindow
Chuck Reynolds 12 สิงหาคม 2553 17:33 - 121043

locate a HtmlInputButton within a HtmlCell
Wayne.Wu 4 ธันวาคม 2555 6:11 - 41230

iterate html table row and cell to locate a html button
Wayne.Wu 18 ธันวาคม 2555 1:29 - 9946

Error Message : 'Access is denied’ During Batch Execution
Saini Ankur 10 ธันวาคม 2555 11:25 - 71109

Rerun Failed Coded UI Tests In Test Suite
Saini Ankur 10 ธันวาคม 2555 12:36 - 35667

Web test vs. CodedUI
NuxMan 8 พฤษภาคม 2553 9:38 - 21140

How to convert coded ui test result file of visual stdio 2012 into Html file ?
Shailesh Anand 14 ธันวาคม 2555 12:58 - 44104

Not able to create Coded UI Test project in VS 2010
d.ram 20 เมษายน 2554 5:22 - 71177

Testing XBAP applications with coded ui
ThisGoodThing 10 ธันวาคม 2555 14:24