Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<target name="simpleTest">
<excelant fileName="${xls.file}">
<test name="checkValue" showFailureDetail="true">
<evaluate showDelta="true" cell="'MortgageCalculator'!$B$3" expectedValue="13" precision="1.0e-4" />
</test>
</excelant>
</target>

 

</project>

in the project , a test case can be added like

<test name="checkValue" showFailureDetail="true">
<evaluate showDelta="true" cell="'MortgageCalculator'!$B$3" expectedValue="13" precision="1.0e-4" />
</test>

it is a check point for a float value in cell '$B$3'.

run test case by 'ant 'your target name'', in this sample, you should be type "ant simpleTest".

here is the result.

Image Added