Hi, detail about a failed step is only provided when the step causes the <webtest> to fail. verifyContent doesn't behave differently than other steps. Nevertheless I agree that it could be helpful... even if I think that <ifStep> should be avoided when possible.
Cheers, Marc. -- Web: http://www.efficient-webtesting.com Blog: http://mguillem.wordpress.com Kelcy Monday wrote: > 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 _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

