AW: [Webtest] JavaScript error

Ralf Mühle Ralf Mühle
Fri, 22 Aug 2008 10:01:02 +0200


This is a multi-part message in MIME format.
--------------040708060003000105090801
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi

today I had the time to test it with the latest snapshot 
(webtest_R_1714) and I get the same JavaScript Error

Has someone an idea how I can fix this problem?

Thanks
Ralf

Ralf Mühle schrieb:
> Hi Marc
>
> No I use WebTest 2.6. Tomorrow I try the Latest Snapshot
>
> Regards
> Ralf
>
> -----Ursprüngliche Nachricht-----
> Von: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] Im
> Auftrag von Marc Guillemot
> Gesendet: Mittwoch, 13. August 2008 16:13
> An: webtest@lists.canoo.com
> Betreff: Re: [Webtest] JavaScript error
>
> Hi Ralf,
>
> welcome to WebTest.
>
> If you don't get any error in your "normal" browser, then it means that it
> is a problem on HtmlUnit's side. Do you use the latest WebTest build to have
> the latest HtmlUnit version?
>
> Cheers,
> Marc.
> --
> Blog: http://mguillem.wordpress.com
>
>
> Ralf Mühle wrote:
>   
>> Hi
>>
>> I'm new to webtest and wrote a simple webtest for a simple JSF page. For
>> this JSF Page we use only the taglibs from the reference implemention.
>> The application is running under Tomcat 6
>>
>> For the tests I do the following steps (see below):
>> Step 1: call jsf page
>> Step 2. check if clear button works
>> Step 3: check with entering a wrong value
>>
>> After Step 2 I get the following error message:
>> JavaScript error loading page http://localhost:8080/lxone/login.jsf:
>> ReferenceError: "oamSetHiddenInput" is not defined. (onclick event for
>> HtmlSubmitInput[<input id="login:login" name="login:login" type="submit"
>> value="Login" onclick="if(typeof
>>
>>     
> window.clearFormHiddenParams_login!=&apos;undefined&apos;){clearFormHiddenPa
> rams_login(&apos;login&apos;);}if(typeof
>   
> window.getScrolling!=&apos;undefined&apos;){oamSetHiddenInput(&apos;login&ap
> os;,&apos;autoScroll&apos;,getScrolling());}"
>   
>> class="btnS">]#1)
>>
>> <...>
>> <group description="call mobileClient">
>>    &gotoLogin;
>> </group>
>> <group description="check clear button">
>>    <setInputField name="login:positionID" value="${positionID}" />
>>    <setInputField name="login:user" value="${user}" />
>>    <setInputField description="Set password field login:password: kb"
>> name="login:password" value="${password}" />
>>    <clickButton label="${clear}" />
>>    <verifyInputField name="login:positionID" value="" />
>>    <verifyInputField name="login:user" value="" />
>>    <verifyInputField name="login:password" value="" />
>> </group>
>> <!-- call login page again, else we get an JavaScript error. Why??? -->
>> <!--
>> <group description="call mobileClient">
>>    &gotoLogin;
>> </group>
>> -->
>> <group description="check empty id">
>>    <setInputField name="login:positionID" value="" />
>>    <setInputField name="login:user" value="${user}" />
>>    <setInputField description="Set password field" name="login:password"
>> value="${password}" />
>>    <clickButton label="${login}" />
>>    <verifyText description="Verify that text is contained in the page"
>> text="${positionRequired}" />
>> </group>
>> </...>
>>
>> Can someone help me to find the error?
>>
>> Thanks
>> Ralf
>> _______________________________________________
>> WebTest mailing list
>> 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
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>   


--------------040708060003000105090801
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi<br>
<br>
today I had the time to test it with the latest snapshot
(webtest_R_1714) and I get the same JavaScript Error<br>
<br>
Has someone an idea how I can fix this problem?<br>
<br>
Thanks<br>
Ralf<br>
<br>
Ralf M&uuml;hle schrieb:
<blockquote
 cite="mid:!&amp;!AAAAAAAAAAAYAAAAAAAAAEE6yYuQLupHuglSk851fArCgAAAEAAAAErH6%2FC5b2NNj0eWSLab154BAAAAAA==@ralfmuehle.de"
 type="cite">
  <pre wrap="">Hi Marc

No I use WebTest 2.6. Tomorrow I try the Latest Snapshot

Regards
Ralf

-----Urspr&uuml;ngliche Nachricht-----
Von: <a class="moz-txt-link-abbreviated" href="mailto:webtest-admin@lists.canoo.com">webtest-admin@lists.canoo.com</a> [<a class="moz-txt-link-freetext" href="mailto:webtest-admin@lists.canoo.com">mailto:webtest-admin@lists.canoo.com</a>] Im
Auftrag von Marc Guillemot
Gesendet: Mittwoch, 13. August 2008 16:13
An: <a class="moz-txt-link-abbreviated" href="mailto:webtest@lists.canoo.com">webtest@lists.canoo.com</a>
Betreff: Re: [Webtest] JavaScript error

Hi Ralf,

welcome to WebTest.

If you don't get any error in your "normal" browser, then it means that it
is a problem on HtmlUnit's side. Do you use the latest WebTest build to have
the latest HtmlUnit version?

Cheers,
Marc.
--
Blog: <a class="moz-txt-link-freetext" href="http://mguillem.wordpress.com">http://mguillem.wordpress.com</a>


Ralf M&uuml;hle wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi

I'm new to webtest and wrote a simple webtest for a simple JSF page. For
this JSF Page we use only the taglibs from the reference implemention.
The application is running under Tomcat 6

For the tests I do the following steps (see below):
Step 1: call jsf page
Step 2. check if clear button works
Step 3: check with entering a wrong value

After Step 2 I get the following error message:
JavaScript error loading page <a class="moz-txt-link-freetext" href="http://localhost:8080/lxone/login.jsf:">http://localhost:8080/lxone/login.jsf:</a>
ReferenceError: "oamSetHiddenInput" is not defined. (onclick event for
HtmlSubmitInput[&lt;input id="login:login" name="login:login" type="submit"
value="Login" onclick="if(typeof

    </pre>
  </blockquote>
  <pre wrap=""><!---->window.clearFormHiddenParams_login!=&amp;apos;undefined&amp;apos;){clearFormHiddenPa
rams_login(&amp;apos;login&amp;apos;);}if(typeof
  </pre>
  <pre wrap=""><!---->window.getScrolling!=&amp;apos;undefined&amp;apos;){oamSetHiddenInput(&amp;apos;login&amp;ap
os;,&amp;apos;autoScroll&amp;apos;,getScrolling());}"
  </pre>
  <blockquote type="cite">
    <pre wrap="">class="btnS"&gt;]#1)

&lt;...&gt;
&lt;group description="call mobileClient"&gt;
   &amp;gotoLogin;
&lt;/group&gt;
&lt;group description="check clear button"&gt;
   &lt;setInputField name="login:positionID" value="${positionID}" /&gt;
   &lt;setInputField name="login:user" value="${user}" /&gt;
   &lt;setInputField description="Set password field login:password: kb"
name="login:password" value="${password}" /&gt;
   &lt;clickButton label="${clear}" /&gt;
   &lt;verifyInputField name="login:positionID" value="" /&gt;
   &lt;verifyInputField name="login:user" value="" /&gt;
   &lt;verifyInputField name="login:password" value="" /&gt;
&lt;/group&gt;
&lt;!-- call login page again, else we get an JavaScript error. Why??? --&gt;
&lt;!--
&lt;group description="call mobileClient"&gt;
   &amp;gotoLogin;
&lt;/group&gt;
--&gt;
&lt;group description="check empty id"&gt;
   &lt;setInputField name="login:positionID" value="" /&gt;
   &lt;setInputField name="login:user" value="${user}" /&gt;
   &lt;setInputField description="Set password field" name="login:password"
value="${password}" /&gt;
   &lt;clickButton label="${login}" /&gt;
   &lt;verifyText description="Verify that text is contained in the page"
text="${positionRequired}" /&gt;
&lt;/group&gt;
&lt;/...&gt;

Can someone help me to find the error?

Thanks
Ralf
_______________________________________________
WebTest mailing list
<a class="moz-txt-link-abbreviated" href="mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com</a>
<a class="moz-txt-link-freetext" href="http://lists.canoo.com/mailman/listinfo/webtest">http://lists.canoo.com/mailman/listinfo/webtest</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
WebTest mailing list
<a class="moz-txt-link-abbreviated" href="mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com</a>
<a class="moz-txt-link-freetext" href="http://lists.canoo.com/mailman/listinfo/webtest">http://lists.canoo.com/mailman/listinfo/webtest</a>

_______________________________________________
WebTest mailing list
<a class="moz-txt-link-abbreviated" href="mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com</a>
<a class="moz-txt-link-freetext" href="http://lists.canoo.com/mailman/listinfo/webtest">http://lists.canoo.com/mailman/listinfo/webtest</a>
  </pre>
</blockquote>
<br>
</body>
</html>

--------------040708060003000105090801--