CTS – Your Technology Partner

Selenium Components Extends Test Coverage to Firefox and Chrome

Written by Richard Pockman on July 23, 2013

So why would you want to execute Coded UI tests in Internet Explorer, Chrome, and Firefox and extend your test coverage? Well, if you are testing a public facing application, you can expect a significant portion of application visitors to be using Chrome or Firefox. See the table below for StatCounter’s June 2013 Web Browser Statistics.

 

StatCounter’s June 2013 Browser Statistics
Chrome 42.68%
Internet Explorer 25.44%
Firefox 20.01%
Other 11.87%

“Selenium Components for Coded UI Cross Browser Testing” enables a QA Engineer to record a script once in Internet Explorer and execute the script in the three major browsers – Internet Explorer, Chrome, and Firefox. This can be done by adding a few lines of code to the TestMethod. See the example below for further detail:

Steps:

1. Download “Selenium Components for Coded UI Cross Browser Testing” here.

2. Record your test script in Internet Explorer and verify that it passes – In the example below I am verifying that the first link on the www.askcts.com navigation bar contains the text “About”.

clip_image002

 

The test passes!

clip_image004

 

3. Add the additional code (encased below in blue) to the TestMethod and the test will execute sequentially in all three browsers.

;clip_image006

Selenium Components makes extending test coverage to Firefox and Chrome that easy. Unless you exclusively test intranet applications, where all users are required to use Internet Explorer, you should consider adding “Selenium Components for Coded UI Cross Browser Testing” to your QA arsenal.

Comments

comments