[Httpunit-commit] CVS: httpunit/doc Cookbook.html,1.2,1.3 release_notes.txt,1.38,1.39
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2001-06-19 14:43:52
|
Update of /cvsroot/httpunit/httpunit/doc
In directory usw-pr-cvs1:/tmp/cvs-serv672/doc
Modified Files:
Cookbook.html release_notes.txt
Log Message:
Minor documentation / example fixes
Index: Cookbook.html
===================================================================
RCS file: /cvsroot/httpunit/httpunit/doc/Cookbook.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Cookbook.html 2000/10/04 15:45:46 1.2
+++ Cookbook.html 2001/06/19 14:43:49 1.3
@@ -10,14 +10,14 @@
which it does via cookies returned by the server. To use it, one must create a
<A HREF="api/com/meterware/httpunit/WebRequest.html">request</A> and ask the WebConversation for a response.<BR>
For example:
-<PRE><CODE> WebConversation wc = new WebConversation;
+<PRE><CODE> WebConversation wc = new WebConversation();
WebRequest req = new GetMethodWebRequest( "http://www.meterware.com/testpage.html" );
WebResponse resp = wc.getResponse( req );
</CODE></PRE>
The <A HREF="api/com/meterware/httpunit/WebResponse.html">response</A> may now be manipulated either as
pure text (via the <CODE>toString()</CODE> method), as a DOM (via the <CODE>getDOM()</CODE> method),
or by using the various other methods described below. Because the above sequence is so common, it can be abbreviated to:
-<PRE><CODE> WebConversation wc = new WebConversation;
+<PRE><CODE> WebConversation wc = new WebConversation();
WebResponse resp = wc.getResponse( "http://www.meterware.com/testpage.html" );
</CODE></PRE>
@@ -25,7 +25,7 @@
The simplest and most common form of navigation among web pages is via links. HttpUnit allows users to find links
by the text within them, and to use those links as new page requests. For example, this page contains a link to the JavaDoc
for the <CODE>WebResponse</CODE> class, above. That page could therefore be obtained as follows:
-<PRE><CODE> WebConversation wc = new WebConversation;
+<PRE><CODE> WebConversation wc = new WebConversation();
WebResponse resp = wc.getResponse( "http://httpunit.sourceforge.net/doc/Cookbook.html" ); // read this page
WebLink link = resp.getLinkWith( "response" ); // find the link
WebRequest req = link.getRequest(); // convert it to a request
@@ -132,7 +132,7 @@
which are currently active. Each response replaces the contents of the appropriate frame, which is not necessarily
the topmost frame ("_top"). In the following scenation, there are two active subframes, named "overview" and "details":
-<PRE><CODE> WebConversation wc = new WebConversation;
+<PRE><CODE> WebConversation wc = new WebConversation();
WebResponse top = wc.getResponse( "http://www.meterware.com/Frames.html" ); // read a page with two frames
WebResponse summary = wc.getFrameContents( "summary" ); // read the summary frame
WebLink link = summary.getLinkWith( "Cake Recipe" ); // find the link (which targets "details" );
Index: release_notes.txt
===================================================================
RCS file: /cvsroot/httpunit/httpunit/doc/release_notes.txt,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- release_notes.txt 2001/06/18 20:21:30 1.38
+++ release_notes.txt 2001/06/19 14:43:49 1.39
@@ -11,6 +11,11 @@
Revision History:
+19-Jun-2001
+Problems corrected:
+ 1. The cookbook was missing parentheses for its constructors
+ 2. Updated the NearWords example to accomodate changes to the Merriam-Webster site
+
18-Jun-2001 1.2.5
Acknowledgements:
Thanks to Rolf Schmidiger for corrected behavior when failing to find a site
|