[Webtest] Canoo webtest for AJAX applications
Venkatesh Babu
webtest@lists.canoo.com
Wed, 4 Oct 2006 22:07:01 +0530
------=_Part_98442_18525255.1159979821143
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi Marc,
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 <mguillemot@yahoo.fr> 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* <mguillemot@yahoo.fr
> > <mailto:mguillemot@yahoo.fr>> 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
> > WebTest@lists.canoo.com <mailto:WebTest@lists.canoo.com>
> > http://lists.canoo.com/mailman/listinfo/webtest
> >
> >
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
------=_Part_98442_18525255.1159979821143
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi Marc,<br><br>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.<br>
<br>Thanks,<br>Venkatesh<br><br><br><div><span class="gmail_quote">On 10/4/06, <b class="gmail_sendername">Marc Guillemot</b> <<a href="mailto:mguillemot@yahoo.fr">mguillemot@yahoo.fr</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Have a look at<br><a href="http://www.nabble.com/changing-browser-compatibility-tf2307860.html#a6424767">http://www.nabble.com/changing-browser-compatibility-tf2307860.html#a6424767</a><br><br>Marc.<br><br>Venkatesh Babu wrote:
<br>> Hi Marc,<br>><br>> Thanks for your reply.<br>><br>> Just have one doubt about:<br>><br>> "choose to simulate a Mozilla browser" ..<br>><br>> I couldn't exactly get how to do this in canoo webtest? Can we specify
<br>> canoo to use a particular browser ? If so, how to specify? I mean what<br>> properties should we set to achieve this?<br>><br>> Thank you,<br>> Venkatesh<br>><br>><br>> On 10/4/06, *Marc Guillemot* <
<a href="mailto:mguillemot@yahoo.fr">mguillemot@yahoo.fr</a><br>> <mailto:<a href="mailto:mguillemot@yahoo.fr">mguillemot@yahoo.fr</a>>> wrote:<br>><br>> Hi Venkatesh,<br>><br>> htmlunit 1.9
(currently shipped with WebTest) only recognizes 1 of the<br>> multiple XMLHttpRequest ActiveX flavours (apparently not the one you<br>> use). This has been fixed in htmlunit's SVN so you can build htmlunit
<br>> from its source and use it in place of version 1.9.<br>> Alternatively you can choose to simulate a Mozilla browser as the native<br>> XMLHttpRequest object is supported.<br>><br>> AJAX is supported... to some extend. I suppose that more need to be
<br>> made<br>> but that WebTest can be a really good solution to test AJAX web<br>> applications. In particularly it could be possible to turn asynchron<br>> request synchron to ensure that tests execute always the same what is
<br>> not possible in a normal browser.<br>><br>> Marc.<br>><br>> Venkatesh Babu wrote:<br>> > Hello All,<br>> ><br>> > We are using canoo webtest for testing our webapp.
<br>> > Recently we added a few pages makin AJAX requests to<br>> > the server. and since then, the webtest is throwing<br>> > exceptions:<br>> ><br>> > [java] [clickLink] ERROR
<br>> ><br>> > (com.gargoylesoftware.htmlunit.ScriptEngine) -<br>> > runtimeError: message=[ActiveXObject Error: no map for<br>> > MSXML2.XMLHTTP.5.0.]<br>> > sourceName=[
<br>> > <a href="http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js">http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js</a>]<br>> > line=[614] lineSource=[null] lineOffset=[0]
<br>> > [java] [clickLink] ERROR<br>> > (com.gargoylesoftware.htmlunit.ScriptEngine) -<br>> > runtimeError: message=[ActiveXObject Error: no map for<br>> ><br>> >
MSXML2.XMLHTTP.4.0.]<br>> > sourceName=[<br>> <a href="http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js">http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js</a>]<br>> > line=[614] lineSource=[null] lineOffset=[0]
<br>> ><br>> > [java] [clickLink] ERROR<br>> > (com.gargoylesoftware.htmlunit.ScriptEngine) -<br>> > runtimeError: message=[ActiveXObject Error: no map for<br>> >
MSXML2.XMLHTTP.3.0.]<br>> > sourceName=[<br>> > <a href="http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js">http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js</a><br>> <
<a href="http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js">http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js</a>>]<br>> > line=[614] lineSource=[null] lineOffset=[0]<br>> > [java] [clickLink] ERROR
<br>> > (com.gargoylesoftware.htmlunit.ScriptEngine) -<br>> > runtimeError: message=[ActiveXObject Error: no map for<br>> ><br>> > MSXML2.XMLHTTP.]<br>> ><br>> sourceName=[
<a href="http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js">http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js</a>]<br>> > line=[614] lineSource=[null] lineOffset=[0]<br>> >
<br>> > [java] [clickLink] ERROR<br>> > (com.gargoylesoftware.htmlunit.ScriptEngine) -<br>> > runtimeError: message=[ActiveXObject Error: no map for<br>> > MICROSOFT.XMLHTTP.1.0
.]<br>> > sourceName=[<br>> > <a href="http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js">http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js</a>]<br>> > line=[614] lineSource=[null] lineOffset=[0]
<br>> > [java] [clickLink] ERROR<br>> > (com.gargoylesoftware.htmlunit.ScriptEngine) -<br>> > runtimeError: message=[ActiveXObject Error: no map for<br>> ><br>> >
MICROSOFT.XMLHTTP.1.]<br>> > sourceName=[<br>> <a href="http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js">http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js</a>]<br>> > line=[614] lineSource=[null] lineOffset=[0]
<br>> ><br>> > [java] [clickLink] ERROR<br>> > (com.gargoylesoftware.htmlunit.ScriptEngine) -<br>> > runtimeError: message=[ActiveXObject Error: no map for<br>> >
MICROSOFT.XMLHTTP.]<br>> > sourceName=[<br>> > <a href="http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js">http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js</a><br>> <
<a href="http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js">http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js</a>>]<br>> > line=[614] lineSource=[null] lineOffset=[0]<br>> > [java] [clickLink] ERROR
<br>> > (com.gargoylesoftware.htmlunit.ScriptEngine) -<br>> > runtimeError: message=[ActiveXObject Error: no map for<br>> ><br>> > MSXML2.XMLHTTP.5.0.]<br>> ><br>> sourceName=[
<a href="http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js">http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js</a>]<br>> > line=[614] lineSource=[null] lineOffset=[0]<br>> >
<br>> > [java] [clickLink] ERROR<br>> > (com.gargoylesoftware.htmlunit.ScriptEngine) -<br>> > runtimeError: message=[ActiveXObject Error: no map for<br>> > MSXML2.XMLHTTP.4.0
.]<br>> > sourceName=[<br>> > <a href="http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js">http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js</a>]<br>> > line=[614] lineSource=[null] lineOffset=[0]
<br>> > [java] [clickLink] ERROR<br>> > (com.gargoylesoftware.htmlunit.ScriptEngine) -<br>> > runtimeError: message=[ActiveXObject Error: no map for<br>> ><br>> >
MSXML2.XMLHTTP.3.0.]<br>> > sourceName=[<br>> <a href="http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js">http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js</a>]<br>> > line=[614] lineSource=[null] lineOffset=[0]
<br>> ><br>> > [java] [clickLink] ERROR<br>> > (com.gargoylesoftware.htmlunit.ScriptEngine) -<br>> > runtimeError: message=[ActiveXObject Error: no map for<br>> >
MSXML2.XMLHTTP.]<br>> > sourceName=[<br>> > <a href="http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js">http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js</a><br>> <
<a href="http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js">http://fiesta-in.localhost:8080/prelaunch/common/js/prelaunch.js</a>>]<br>> > line=[614] lineSource=[null] lineOffset=[0]<br>> >
<br>> > Can anybody help me and let me know why are we getting<br>> > this error? Does canoo support AJAX requests to be<br>> ><br>> > made?<br>> ><br>> > Thank you,
<br>> > Venkatesh<br>> ><br>><br>> _______________________________________________<br>> WebTest mailing list<br>> <a href="mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com
</a> <mailto:<a href="mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com</a>><br>> <a href="http://lists.canoo.com/mailman/listinfo/webtest">http://lists.canoo.com/mailman/listinfo/webtest</a><br>><br>
><br><br>_______________________________________________<br>WebTest mailing list<br><a href="mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com</a><br><a href="http://lists.canoo.com/mailman/listinfo/webtest">http://lists.canoo.com/mailman/listinfo/webtest
</a><br></blockquote></div><br>
------=_Part_98442_18525255.1159979821143--