[Webtest] (no subject)

Robert Bodziony Robert Bodziony" <robert.bodziony@gmail.com
Thu, 10 Jan 2008 09:51:36 +0100


------=_Part_5472_17540454.1199955096322
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

i hope this 2 test will be working :D

(with firefox header ive got error hasAttribute) (IE has not response during
sleep :( )

    <target name="test" depends="wt.defineMacros">

        <webtest name="check Dojo-Container - firefox">
            <config>
                <header name="User-Agent" value="Mozilla/5.0 (Windows; U;
Windows NT 5.1; pl; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"/>
            </config>
            <invoke url="
http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/Container.html"
/>
            <sleep seconds="10"/>
        </webtest>
        <webtest name="check Dojo-Container - ie">
            <config>
                <header name="User-Agent" value="Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.1; SV1; User-agent: Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.1; SV1; http://bsalsa.com) ; .NET CLR 1.1.4322; .NET CLR
2.0.50727; FDM)" />
            </config>
            <invoke url="
http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/Container.html"
/>
            <sleep seconds="10"/>
        </webtest>

    </target>

Regards,
 Robert



2008/1/9, Marc Guillemot <mguillemot@yahoo.fr>:
>
> Hi,
>
> support for hasAttribute will be provided by HtmlUnit 1.14 which will be
> released in the next hours. Then it will be quickly integrated in WebTest.
>
> Cheers,
> Marc.
> --
> Blog: http://mguillem.wordpress.com
>
>
> dennis.winter@immonet.de wrote:
> > Hi,
> >
> > I am filling up some inputfields with the part of my script by using
> > <setInputField>. Inserting one of 3 fields causes the following
> > errormessage:
> >
> > The following error occurred while executing this line:
> > C:\webtest\Immonet\definitions\seite2basisdaten.xml:23: Unexpected
> > exception caught: com.gargoylesoftware.htmlunit.ScriptException:
> > TypeError: Cannot find function hasAttribute.
> >
> > The filling of that field calls a javascript-code, which contains
> > functions called by Scriptaculous. This "hasAttribute()" function is
> > given by Scriptaculous(http://script.aculo.us/).
> >
> > I don't have a clou how I can handle this problem.
> >
> > The used Javascritp is like this:
> >
> > Element.Methods.Simulated = {
> >   hasAttribute: function(element, attribute) {
> >     var t = Element._attributeTranslations, node;
> >     attribute = t.names[attribute] || attribute;
> >     node = $(element).getAttributeNode(attribute);
> >     return node && node.specified;
> >   }
> > };
> >
> >
> >
> > Can anybody help me with my issue?
> >
> >
> >
> >
> >
> > Dennis Winter
> >
> >
> >
> >
> >
> >
> >
>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>

------=_Part_5472_17540454.1199955096322
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

i hope this 2 test will be working :D<br><br>(with firefox header ive got error hasAttribute) (IE has not response during sleep :( )<br><br>&nbsp;&nbsp;&nbsp; &lt;target name=&quot;test&quot; depends=&quot;wt.defineMacros&quot;&gt;<br><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;webtest name=&quot;check Dojo-Container - firefox&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;config&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;header name=&quot;User-Agent&quot; value=&quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:<a href="http://1.8.1.3">
1.8.1.3</a>) Gecko/20070309 Firefox/2.0.0.3&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/config&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;invoke url=&quot;<a href="http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/Container.html">http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/Container.html
</a>&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;sleep seconds=&quot;10&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/webtest&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;webtest name=&quot;check Dojo-Container - ie&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;config&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;header name=&quot;User-Agent&quot; value=&quot;Mozilla/4.0 (compatible; MSIE 
6.0; Windows NT 5.1; SV1; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; <a href="http://bsalsa.com">http://bsalsa.com</a>) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM)&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/config&gt;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;invoke url=&quot;<a href="http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/Container.html">http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/Container.html</a>&quot; /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;sleep seconds=&quot;10&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/webtest&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;/target&gt;<br><br>Regards,<br>&nbsp;Robert<br>&nbsp;<br><br><br><div><span class="gmail_quote">2008/1/9, Marc Guillemot &lt;<a href="mailto:mguillemot@yahoo.fr">
mguillemot@yahoo.fr</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>support for hasAttribute will be provided by HtmlUnit 
1.14 which will be<br>released in the next hours. Then it will be quickly integrated in WebTest.<br><br>Cheers,<br>Marc.<br>--<br>Blog: <a href="http://mguillem.wordpress.com">http://mguillem.wordpress.com</a><br><br><br>
<a href="mailto:dennis.winter@immonet.de">dennis.winter@immonet.de</a> wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I am filling up some inputfields with the part of my script by using<br>&gt; &lt;setInputField&gt;. Inserting one of 3 fields causes the following
<br>&gt; errormessage:<br>&gt;<br>&gt; The following error occurred while executing this line:<br>&gt; C:\webtest\Immonet\definitions\seite2basisdaten.xml:23: Unexpected<br>&gt; exception caught: com.gargoylesoftware.htmlunit.ScriptException
:<br>&gt; TypeError: Cannot find function hasAttribute.<br>&gt;<br>&gt; The filling of that field calls a javascript-code, which contains<br>&gt; functions called by Scriptaculous. This &quot;hasAttribute()&quot; function is
<br>&gt; given by Scriptaculous(<a href="http://script.aculo.us/">http://script.aculo.us/</a>).<br>&gt;<br>&gt; I don&#39;t have a clou how I can handle this problem.<br>&gt;<br>&gt; The used Javascritp is like this:<br>&gt;
<br>&gt; Element.Methods.Simulated = {<br>&gt;&nbsp;&nbsp; hasAttribute: function(element, attribute) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; var t = Element._attributeTranslations, node;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; attribute = t.names[attribute] || attribute;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; node = $(element).getAttributeNode(attribute);
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; return node &amp;&amp; node.specified;<br>&gt;&nbsp;&nbsp; }<br>&gt; };<br>&gt;<br>&gt;<br>&gt;<br>&gt; Can anybody help me with my issue?<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; Dennis Winter<br>&gt;<br>&gt;<br>
&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<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_5472_17540454.1199955096322--