views:

396

answers:

2

What are the best approaches / tools to test browser extensions?

In my case I work on an IE Browser Helper Object (C#) which has a small UI of its own and a good deal of database interaction. Up till now we've used automated unit tests for testing our model/business objects but manual testing for the UI/scenario testing. I'm thinking of starting to use Selenium for control of the browser, and then will need to add to it some other scripting to control and assert behaviour of my UI elements and check the database for correct results.

Any recommendations? What does anyone else in a similar situation do (whether developing BHOs or Firefox Extensions or whatever)?

+1  A: 

We used to use Selenium, but then we switched over to Webius SWExplorerAutomation (SWEA).

A benefit of using Webius is that we can generate c#, wrap them in nunit tests, and compile the tests into .NET assemblies to integrate into our build scripts.

The downside is that they are specific to Internet Explorer, but it give us a good smoke test for our User Interface.

We are shifting to ASP.NET MVC which will enable us to test the controllers separately, but we will still need some tool to test the Views (although they will hopefully be very thin and dumb).

Elijah Manor
Hi Elijah, is that for testing a browser extension or a web app?
Rory
A: 

Did you find an answer on Selenium and IE? I have the same problem, read about Selenium ICE which i can't find anywhere.