views:

363

answers:

6

Hi guys:

I would like to seek your suggestion for the tool faciliate the multiple-browser testing of web site.

PS: ASP.NET is my current working environment.

+2  A: 

spoon.net/browsers is excellent.

macca1
+3  A: 

You could try Selenium. It allows you to record actions and play them back using multiple browsers.

WoLpH
+1  A: 

My suggestions are

  1. MS Expression Web SuperPreview
  2. IE Tester
uvita
+1  A: 

alt text The ArtOfTest, Inc. - WebAii Automation Framework is free, .NET based (just include a couple of DLLs in your project), also can integrate with your existing testing framework (e.g. Visual Studio test project) to add client-side unit tests. Currently support seems limited to Firefox, IE and Safari. (For me Safari testing didn't work at all).

It's a test automation framework for .NET programmers.

From the server side you use a special object model that executes against the browser of choice and its DOM, as if a user is interacting and clicking. The browser of choice is launched by the framework when tests are run. You program against ids and classes and client-side elements from .NET in your language of choice like C#, VB.NET, etc.

You can even program through client-side frameworks like jQuery, Prototype, etc. AJAX calls and such do not inhibit the tests. One thing I like to do is pull server-side data while running tests against the client side and directly match them together inside the test to ensure everything from the data source is in the display.


Sample C# code: launches Google.com in IE, enter a search term and submit it for results. Change it to BrowserType.Firefox to test with a different browser, or run it in a loop that uses a different browser each iteration. Powerful stuff.

// Initialize the settings you want used.
Settings mySettings = new Settings(BrowserType.InternetExplorer, @"c:\log\");

// Create the manager object
Manager myManager = new Manager(mySettings);

// Start the manager
myManager.Start();

// Launch a new browser instance. [This will launch an IE instance given the setting above]
myManager.LaunchNewBrowser();

// Navigate to a certain web page
myManager.ActiveBrowser.NavigateTo("http://www.google.com");

// Perform your automation actions.
Element mybtn = myManager.ActiveBrowser.Find.ByTagIndex("input", 3);
myManager.ActiveBrowser.Actions.Click(mybtn);

// Shut-down the manager and do all clean-up
myManager.Dispose();
John K
A: 

http://www.browserseal.com

Demiurg