joe joe - 24 days ago 16
Ajax Question

AJAX Testing Tools

I am looking for Ajax testing tools . is there any free tools avilable for testing ajax

Edit 2 : apart from firebug is there any other tools ;)

Answer

If you are familiar with jQuery and are looking for unit testing, then QUnit is decent and helps prevents the obvious bugs. As far as getting the right data back from the server, you will probably want to combine it with unit tests to ensure the server's data is correct.

Here's an example from some jQuery extensions I've written:

function run()
{
    module("Extensions");
    test("isNumber", function()
    {
        var anInt = new Number(42);
        var aFloat = new Number(42.500);
        equals(jQuery.isNumber(anInt),true);
        equals(jQuery.isNumber(aFloat),true);

        equals(jQuery.isNumber(42),true);
        equals(jQuery.isNumber(42.235),true);

        equals(jQuery.isNumber("test"),false);
        equals(jQuery.isNumber([]),false);
        equals(jQuery.isNumber(true),false);
        equals(jQuery.isNumber(undefined),false);
        equals(jQuery.isNumber(null),false);
    });
}

run();
Comments