[Webtest] how does followframe work ?

Parker, Michael webtest@lists.canoo.com
Fri, 30 Jul 2004 12:51:26 +0200


Hi Mittie,

thanks for the deeper insight !

Now I get

[testSpec] Sending:: Accept-Encoding: gzip
 [testSpec] Header:: HTTP/1.1 200 OK
 [testSpec] Header:: ETag: W/"3122-1091181130101"
 [testSpec] Header:: Last-Modified: Fri, 30 Jul 2004 09:52:10 GMT
 [testSpec] Header:: Content-Type: text/javascript
 [testSpec] Header:: Content-Length: 3122
 [testSpec] Header:: Date: Fri, 30 Jul 2004 10:35:43 GMT
 [testSpec] Header:: Server: Apache-Coyote/1.1
 [testSpec] Sending:: User-Agent: httpunit/1.5


> The log statements below stem from the patches that we applied to
> httpunit. If they don't appear although you have set the log4j
> properties to the DEBUG level, chances are high that the patches
> are not used at all. This happens typically when the patch is
> not in the classpath or not loaded _BEFORE_ the original
> httpunit classes.

The reason is easier (hopefully): 
We use also a slightly modified httpunit-1.5.4.jar.
But that shouldn't matter.


In /lib there is just httpunit-patch.jar
In /lib/base "our" httpunit-1.5.4.jar.

I checked

 		<path id="build.class.path">
            <!--pathelement location="${canoo.dir}/build/classes"/--> 
            <fileset dir="${canoo.dir}" includes="lib/*.jar"/>   
            <fileset dir="${canoo.dir}" includes="lib/base/*.jar"/>   
        </path>

        <taskdef file="${canoo.dir}/webtestTaskdefs.properties">  
            <classpath refid="build.class.path"/>
        </taskdef>

and put even the classes-tag into a comment.



 
> 
> ${webtest.home}/lib MUST NOT contain httpunit-1.5.4.jar any longer,
> but only httpunit-1.5.4-patch.jar.
> httpunit-1.5.4.jar is only to appear in ${webtest.home}/lib/base.

 
> BTW:
> When installing the latest build, you should delete the old
> ${webtest.home} first. (I assume you have a "left-over" httpunit.jar)

I deleteted the older version.


Well, I call canoo from a launch-configuration out of eclipse with a
slightly different classpath:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" path="src"/>
	<classpathentry sourcepath="D:/webentw/canoo/canoo474/src"
kind="lib" path="deploy/plain/httpunit-patch.jar"/>
	<classpathentry kind="lib" path="deploy/plain/webtest.jar"/>
	<classpathentry kind="lib" path="lib/ant.jar"/>
	<classpathentry kind="lib" path="lib/antrunner.jar"/>
	<classpathentry sourcepath="D:/webentw/httpunit/httpunit-1.5.4/src"
kind="lib" path="lib/base/httpunit-1.5.4.jar"/>
	<classpathentry kind="lib" path="lib/dom4j-1.4.jar"/>
	<classpathentry kind="lib" path="lib/easymock.jar"/>
	<classpathentry kind="lib" path="lib/httpunit-patch.jar"/>
	<classpathentry kind="lib" path="lib/jakarta-oro-2.0.4.jar"/>
	<classpathentry kind="lib" path="lib/jcert.jar"/>
	<classpathentry kind="lib" path="lib/jnet.jar"/>
	<classpathentry kind="lib" path="lib/js.jar"/>
	<classpathentry kind="lib" path="lib/jsse.jar"/>
	<classpathentry kind="lib" path="lib/jtidy-r7.jar"/>
	<classpathentry kind="lib" path="lib/junit.jar"/>
	<classpathentry kind="lib" path="lib/log4j-1.2.8.jar"/>
	<classpathentry kind="lib" path="lib/mailapi.jar"/>
	<classpathentry kind="lib" path="lib/optional.jar"/>
	<classpathentry kind="lib" path="lib/pdfbox.jar"/>
	<classpathentry kind="lib" path="lib/pdfUnit-1.0.jar"/>
	<classpathentry kind="lib" path="lib/servlet.jar"/>
	<classpathentry kind="lib" path="lib/webtest.jar"/>
	<classpathentry kind="lib" path="lib/xalan.jar"/>
	<classpathentry kind="lib" path="lib/xercesImpl.jar"/>
	<classpathentry kind="lib" path="lib/xml-apis.jar"/>
	<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="output" path="build/classes"/>
</classpath>


Michael


------------------------------------------------------------------------------
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist. Diese Nachricht  ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen.
----------------------------
For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately.

==============================================================================