When verifyContent is used outside of a conditional statement, a "diff" is 
included in the WebTest report... but I can't figure out how to have the 
diff included when verifyContent is used within a conditional:

    <!-- verifyContent, and if step fails, then use daisyDiff -->
    <ifStep>
      <condition>
        <!-- Expect failure here -->
        <not> 
          <verifyContent referenceFile="$path/to/reference/file" />
        </not> 
      </condition>
      <then>
        <!-- Invoke daisyDiff -->
        <echo message="-=!! SOMETHING IS DIFFERENT! CHECK THE FILE: !!=-" 
/>

        <java
           jar="${utilityDir}/daisydiff/daisydiff.jar"
           classpath="${utilityDir}:${utilityDir}/daisydiff/"
           fork="true"
           resultProperty="returnCode"
           failonerror="true"
           >
          <arg line="$path/to/reference/file http://path/to/current/file"; 
/>
        </java>
 
        <java>
        <!-- Assert false here, because if daisyDiff was invoked, this 
means that
             we had a difference somewhere -->
        assert false; 
        </java>

      </then>
    </ifStep>

Kelcy Monday

Reply via email to