[Webtest] [webtest][JIRA] Created: (WT-168) compareToExpected says two identical files differ

Ryan Grier (JIRA) webtest@lists.canoo.com
Tue, 28 Mar 2006 21:28:49 +0200 (CEST)


compareToExpected says two identical files differ
-------------------------------------------------

         Key: WT-168
         URL: http://webtest-community.canoo.com/jira/browse/WT-168
     Project: WebTest
        Type: Bug
    Versions: 2.0    
 Environment: Webtest 2.0, Ant 1.6.5, Java 1.5
    Reporter: Ryan Grier
 Attachments: files.zip

We have a set of tests which are getting some odd responses.  The actual result and expected results match perfectly, but Webtest's compareToExpected tag says that they differ.  I am uploading both files (aptly named).  I am also uploading the results.xml file. 

Now, this works in most of our test modules.  But for some reason, it does not work in this specific one - even though the files match.  

Here is how the webtest tag is called:
<target name = "test.execute.webtest" description="Runs the WebTest portion of the test.">
        <webtest name = "${webtest.name}">
            <!-- Config data for the following transactions. -->
            <config host = "${server.host}" port = "${server.port}"
		protocol = "${server.protocol}" basepath = "/${server.basepath}"
                saveresponse = "${webtest.config.saveresponse}" 
                summary = "${webtest.config.summary}" 
                haltonerror = "${webtest.config.haltonerror}" 
                haltonfailure = "${webtest.config.haltonfailure}" 
                savePrefix = "${test.name}" >
                <!-- Ensure this is sent as a binary payload. -->
                <header name="Content-type" value="application/octet-stream"/>
            </config>
            <steps>
                <invoke description = "Send the Protocol Message to the server" 
                    url = "/${server.servlet}?"
                    contentFile = "${basedir}/requests/${filename}" method = "POST" />
                    
                <!-- Compare the current respone with the expected response. -->
                <compareToExpected toFile="${basedir}/expected/${filename}" />
            </steps>
        </webtest>
    </target>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira