Bringing you news, technical articles, and other useful content about Visual Studio ALM and Team Foundation Server
More videos »
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
The following features are available across the various web browsers:
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
Enable HTML Logger - follow http://msdn.microsoft.com/en-us/library/jj159363.aspx
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.
Does this work with Firefox version 17?
Does this work if I record an action recording in MTM 2012 and need to playback against Chrome?
Very good blog post!!!
After test execution, the chrome driver never close, so it cause a lot of instance of chrome driver open on test box. Is there any way to close the driver after test execution
In one of my test I need to get the parent/container of the selected element. I tried using both Container property and GetParent method.
Each of the browser work differently :(
1. IE - Returns the parent object of the selected element.
2. Chrome and FF: Are returning the window object.
Any help on this? Is there a way in which I can get the actual parent instead of the window object for FF and Chrome?
Awesome idea, thanks for the blog.
I have found it a little hard to get test written in IE to work with chrome and have been trying another framework on top of this (CUITe) which, while doesn't support VS2012 or this feature, they work amazingly well together.
I'm having the same problem as Utk, when running in firefox or Chrome. When calling method like GetChildren() the wrong children objects are returned - when calling GetChildren() on a div in the following situation: <div><ul>..</ul></div> i get:
WinMenuItem Close Alt+F4
WinTitleBar BBC - Search results for richard 3rd - Mozilla Fir...
WinButton Context help
WinControl BBC - Search results for richard 3rd - Mozilla Fir...
<cut the next 400 lines>
Is there anywhere we can download the Cross Browser dll (Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.dll) so i can step though and see if it's the Selenium WebDriver or this extension getting the wrong information.
It appears to require vs2012 to be installed on test agents? that's a pretty heavy requirement (only got not supported exceptions without it installed).
Now Firefox will open, but I need to update the driver to support FF 18.
Chrome gives me an exception - System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Recording in Windows 8 + IE10 seems to have a few issues - firstly I don't believe the Action Filters are working with the new start screen (or the run dialog). I ended up pinning IE10 to my taskbar to fix this issue.
IE10 seems to see textboxes as HtmlCustom not HtmlEdit, whereas IE9 appears to be the other way around. This makes it very hard to create a test that works in both browsers.
I have followed all the pre-requisite and have install VSTS2012 with Update-1 and Selenium components for Coded UI Cross Browser Testing. Also verified the browser version too.
But when launch the test case to run in Chrome by adding BrowserWindow.CurrentBrowser= 'Chrome'; in my code it did not invoked the chrome browser.
Have i missed out any configuration or pre-requisite ?
I recorded my script on IE9, can I playback on IE8 and IE10 using remote desktop and can I run sequentially?
I have follow this guide and i keep getting the error when running the test in firefox. It open firefox but cannot go to the url... In IE and chrome it work only firefox..
at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.Utility.MapAndReThrow(Exception exception)
at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserService.Launch(Uri uri)
at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserFactory.Launch(Uri uri)