Thanks very much ... The link really helped .. I've now made the webtest simulate mozilla browser; and in this setup, the call to AJAX _javascript_ function is working fine, without throwing any exceptions.
Thanks,
Venkatesh
On 10/4/06, Marc Guillemot <[EMAIL PROTECTED]> wrote:
Have a look at
http://www.nabble.com/changing-browser-compatibility-tf2307860.html#a6424767
Marc.
Venkatesh Babu wrote:
> Hi Marc,
>
> Thanks for your reply.
>
> Just have one doubt about:
>
> "choose to simulate a Mozilla browser" ..
>
> I couldn't exactly get how to do this in canoo webtest? Can we specify
> canoo to use a particular browser ? If so, how to specify? I mean what
> properties should we set to achieve this?
>
> Thank you,
> Venkatesh
>
>
> On 10/4/06, *Marc Guillemot* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi Venkatesh,
>
> htmlunit 1.9 (currently shipped with WebTest) only recognizes 1 of the
> multiple XMLHttpRequest ActiveX flavours (apparently not the one you
> use). This has been fixed in htmlunit's SVN so you can build htmlunit
> from its source and use it in place of version 1.9.
> Alternatively you can choose to simulate a Mozilla browser as the native
> XMLHttpRequest object is supported.
>
> AJAX is supported... to some extend. I suppose that more need to be
> made
> but that WebTest can be a really good solution to test AJAX web
> applications. In particularly it could be possible to turn asynchron
> request synchron to ensure that tests execute always the same what is
> not possible in a normal browser.
>
> Marc.
>
> Venkatesh Babu wrote:
> > Hello All,
> >
> > We are using canoo webtest for testing our webapp.
> > Recently we added a few pages makin AJAX requests to
> > the server. and since then, the webtest is throwing
> > exceptions:
> >
> > [java] [clickLink] ERROR
> >
> > (com.gargoylesoftware.htmlunit.ScriptEngine) -
> > runtimeError: message=[ActiveXObject Error: no map for
> > MSXML2.XMLHTTP.5.0.]
> > sourceName=[
> > http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js]
> > line=[614] lineSource=[null] lineOffset=[0]
> > [java] [clickLink] ERROR
> > (com.gargoylesoftware.htmlunit.ScriptEngine) -
> > runtimeError: message=[ActiveXObject Error: no map for
> >
> > MSXML2.XMLHTTP.4.0.]
> > sourceName=[
> http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js]
> > line=[614] lineSource=[null] lineOffset=[0]
> >
> > [java] [clickLink] ERROR
> > (com.gargoylesoftware.htmlunit.ScriptEngine) -
> > runtimeError: message=[ActiveXObject Error: no map for
> > MSXML2.XMLHTTP.3.0.]
> > sourceName=[
> > http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js
> < http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js>]
> > line=[614] lineSource=[null] lineOffset=[0]
> > [java] [clickLink] ERROR
> > (com.gargoylesoftware.htmlunit.ScriptEngine) -
> > runtimeError: message=[ActiveXObject Error: no map for
> >
> > MSXML2.XMLHTTP.]
> >
> sourceName=[ http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js]
> > line=[614] lineSource=[null] lineOffset=[0]
> >
> > [java] [clickLink] ERROR
> > (com.gargoylesoftware.htmlunit.ScriptEngine) -
> > runtimeError: message=[ActiveXObject Error: no map for
> > MICROSOFT.XMLHTTP.1.0 .]
> > sourceName=[
> > http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js]
> > line=[614] lineSource=[null] lineOffset=[0]
> > [java] [clickLink] ERROR
> > (com.gargoylesoftware.htmlunit.ScriptEngine) -
> > runtimeError: message=[ActiveXObject Error: no map for
> >
> > MICROSOFT.XMLHTTP.1.]
> > sourceName=[
> http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js]
> > line=[614] lineSource=[null] lineOffset=[0]
> >
> > [java] [clickLink] ERROR
> > (com.gargoylesoftware.htmlunit.ScriptEngine) -
> > runtimeError: message=[ActiveXObject Error: no map for
> > MICROSOFT.XMLHTTP.]
> > sourceName=[
> > http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js
> < http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js>]
> > line=[614] lineSource=[null] lineOffset=[0]
> > [java] [clickLink] ERROR
> > (com.gargoylesoftware.htmlunit.ScriptEngine) -
> > runtimeError: message=[ActiveXObject Error: no map for
> >
> > MSXML2.XMLHTTP.5.0.]
> >
> sourceName=[ http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js]
> > line=[614] lineSource=[null] lineOffset=[0]
> >
> > [java] [clickLink] ERROR
> > (com.gargoylesoftware.htmlunit.ScriptEngine) -
> > runtimeError: message=[ActiveXObject Error: no map for
> > MSXML2.XMLHTTP.4.0 .]
> > sourceName=[
> > http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js]
> > line=[614] lineSource=[null] lineOffset=[0]
> > [java] [clickLink] ERROR
> > (com.gargoylesoftware.htmlunit.ScriptEngine) -
> > runtimeError: message=[ActiveXObject Error: no map for
> >
> > MSXML2.XMLHTTP.3.0.]
> > sourceName=[
> http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js]
> > line=[614] lineSource=[null] lineOffset=[0]
> >
> > [java] [clickLink] ERROR
> > (com.gargoylesoftware.htmlunit.ScriptEngine) -
> > runtimeError: message=[ActiveXObject Error: no map for
> > MSXML2.XMLHTTP.]
> > sourceName=[
> > http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js
> < http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js>]
> > line=[614] lineSource=[null] lineOffset=[0]
> >
> > Can anybody help me and let me know why are we getting
> > this error? Does canoo support AJAX requests to be
> >
> > made?
> >
> > Thank you,
> > Venkatesh
> >
>
> _______________________________________________
> WebTest mailing list
> [email protected] <mailto:[email protected]>
> http://lists.canoo.com/mailman/listinfo/webtest
>
>
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

