[Webtest] Re: richFaces Ajax + content not updated

stefan.grzybek@novartis.com stefan.grzybek@novartis.com
Wed, 9 Jul 2008 13:26:22 +0200


This is a multipart message in MIME format.
--=_alternative 003ED6CFC1257481_=
Content-Type: text/plain; charset="US-ASCII"

Dear Florian,

see http://webtest.canoo.com/webtest/manual/verifyText.html:
"This step verifies the existence of the specified string somewhere in the 
response received from server (ie the changes that may have occured since 
the page has been loaded are not seen by this step)."

You'll need to use e.g. verifyXpath to investigate changed content.

Best regards,
Stefan




"Keusch Florian" <florian.keusch@elca.ch> 
Sent by: webtest-admin@lists.canoo.com
09-07-2008 12:56
Please respond to
webtest@lists.canoo.com


To
<webtest@lists.canoo.com>
cc

Subject
[Webtest] Re: richFaces Ajax + content not updated






hi,
 
i've a simple test applied on the richFaces demo to show this problem:
 
<webtest name="richFaces demo - test ajax commandButton">
   <invoke
url="http://livedemo.exadel.com/richfaces-demo/richfaces/commandButton.j
sf?c=commandButton"/>
   <setInputField name="j_id221:j_id224" value="florian"/>
   <clickButton label="Say Hello" name="j_id221:j_id225"/>
   <verifyText description="Verify that text is contained in the page"
text="Hello florian! "/>
</webtest>

You'll see that the step verifyText fails because the page content was
not updated! I used a http proxy 

Using webtest r_1710 (with htmlunit 2.1)



Greetings Florian
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest


_________________________

CONFIDENTIALITY NOTICE

The information contained in this e-mail message is intended only for the 
exclusive use of the individual or entity named above and may contain 
information that is privileged, confidential or exempt from disclosure 
under applicable law. If the reader of this message is not the intended 
recipient, or the employee or agent responsible for delivery of the 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. If you have received this communication in error, please 
notify the sender immediately by e-mail and delete the material from any 
computer.  Thank you.

--=_alternative 003ED6CFC1257481_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Dear Florian,</font>
<br>
<br><font size=2 face="sans-serif">see http://webtest.canoo.com/webtest/manual/verifyText.html:</font>
<br><font size=2 face="sans-serif">&quot;This step verifies the existence
of the specified string somewhere in the response received from server
(ie the changes that may have occured since the page has been loaded are
not seen by this step).&quot;</font>
<br>
<br><font size=2 face="sans-serif">You'll need to use e.g. verifyXpath
to investigate changed content.</font>
<br>
<br><font size=2 face="sans-serif">Best regards,</font>
<br><font size=2 face="sans-serif">Stefan</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Keusch Florian&quot;
&lt;florian.keusch@elca.ch&gt;</b> </font>
<br><font size=1 face="sans-serif">Sent by: webtest-admin@lists.canoo.com</font>
<p><font size=1 face="sans-serif">09-07-2008 12:56</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
webtest@lists.canoo.com</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">&lt;webtest@lists.canoo.com&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[Webtest] Re: richFaces Ajax + content
not updated</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>hi,<br>
 <br>
i've a simple test applied on the richFaces demo to show this problem:<br>
 <br>
&lt;webtest name=&quot;richFaces demo - test ajax commandButton&quot;&gt;<br>
 &nbsp; &lt;invoke<br>
url=&quot;http://livedemo.exadel.com/richfaces-demo/richfaces/commandButton.j<br>
sf?c=commandButton&quot;/&gt;<br>
 &nbsp; &lt;setInputField name=&quot;j_id221:j_id224&quot; value=&quot;florian&quot;/&gt;<br>
 &nbsp; &lt;clickButton label=&quot;Say Hello&quot; name=&quot;j_id221:j_id225&quot;/&gt;<br>
 &nbsp; &lt;verifyText description=&quot;Verify that text is contained
in the page&quot;<br>
text=&quot;Hello florian! &quot;/&gt;<br>
&lt;/webtest&gt;<br>
<br>
You'll see that the step verifyText fails because the page content was<br>
not updated! I used a http proxy <br>
<br>
Using webtest r_1710 (with htmlunit 2.1)<br>
<br>
<br>
<br>
Greetings Florian<br>
_______________________________________________<br>
WebTest mailing list<br>
WebTest@lists.canoo.com<br>
http://lists.canoo.com/mailman/listinfo/webtest<br>
</font></tt>
<br><font size=2 face="sans-serif"><br>
_________________________<br>
<br>
CONFIDENTIALITY NOTICE<br>
<br>
The information contained in this e-mail message is intended only for the
exclusive use of the individual or entity named above and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If the reader of this message is not the intended recipient, or the
employee or agent responsible for delivery of the message to the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this communication is strictly prohibited. If you have received
this communication in error, please notify the sender immediately by e-mail
and delete the material from any computer. &nbsp;Thank you.<br>
</font>
--=_alternative 003ED6CFC1257481_=--