« Who Gets to Decide What Open Source Means? | Main | Making the Hard Stuff Fun and Easy with YUI »
July 25, 2007
Testing and Debugging the Web Tier
Muness Alrubaie (ThoughtWorks) is speaking at OSCON 2007 on testing and debugging in with the web.
[Room is packed, folks on the floor and lined up in the back of the room]
Talking about debugging tools for web browsers and testing tools for web developers.
In Firefox you should create a special profile to keep the environment to be isolated. Testing environment might also be customized, managed differently, and shared. First thing Muness does is to set up a new user profile in Firefox so he can keep a clean environment for testing. There is a command line for launching the profile manager as well as launching Firefox with a specific profile.. Profiles can be stored separately, even stored in CVS.
Debugging
Web developer toolbar is a good tool for Firefox.
Firebug (and Firebug lite) is another very valuable tool.
A few JS commands to know when using Firebug:
console.log();
console.debug();
console.info();
console.warn();
console.error();
If you put an array or object in the console functions it will show them as a JSON object.
Strategies for working with IE? Microsoft Script Debugger, came with Office 2000. Someone else suggests the IE dev toolbar?
Unit Testing
For unit testing JsUnit provides unit testing for JavaScript.
[Muness goes into detail about creating and running tests using JsUnit]
Crosscheck is another tool for JavaScript unit testing.
UI Testing
Use selenium to simulate user interaction with the browser. Selenium IDE lets you record your keystrokes.
Posted by mike at July 25, 2007 1:39 PM
Hard Drive Recovery Group offers hard disk data recovery services for RAID, laptops and servers. Complete clean room and hard drive repair service.Trackback Pings
TrackBack URL for this entry:
http://mike.kruckenberg.com/mt/mt-tb.cgi/1029