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

Paul King (JIRA) webtest@lists.canoo.com
Wed, 14 Jun 2006 14:20:20 +0200 (CEST)


     [ http://webtest-community.canoo.com/jira/browse/WT-168?page=all ]
     
Paul King closed WT-168:
------------------------

    Fix Version: future versions
     Resolution: Fixed

Update fix version

> 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
>     Assignee: Paul King
>      Fix For: future versions
>  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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira