Had somebody recently asking about running Coded UI Tests against Chrome and thought i would walk through this process:
1. Down load the Cross-browser plugin for Coded UI Test that uses Selenium to run tests against Chrome and Firefox from here: http://go.microsoft.com/fwlink/?LinkID=267598
3. Record a Coded UI test in IE
4. Change the browser to run the same test against Chrome using the BrowserWindow object i.e.
BrowserWindow.CurrentBrowser = “Chrome”;
Viola your coded UI Test can now run in Chrome!
For more information please see the following blog posts:
- http://blogs.msdn.com/b/visualstudioalm/archive/2012/10/30/introducing-cross-browser-testing-with-coded-ui-tests.aspx
- http://blogs.msdn.com/b/visualstudioalm/archive/2012/12/11/troubleshooting-tips-for-cross-browser-testing-in-coded-ui-test.aspx
- http://blogs.msdn.com/b/visualstudioalm/archive/2013/01/25/ui-testing-of-microsoft-sharepoint-2013-with-visual-studio-2012.aspx
- http://blogs.msdn.com/b/visualstudioalm/archive/2013/02/21/handling-browser-profile-issues-while-doing-cross-browser-testing-with-coded-ui-test.aspx
- http://blogs.msdn.com/b/visualstudioalm/archive/2013/01/18/introducing-jscript-execution-on-internetexplorer-and-crossbrowser-in-coded-ui-test.aspx
0 comments