I use SilkTest to make comparisons of Word documents produced by the application I am testing with versions of the same documents from previous versions of the application. The documents contain a date, which is the date they were created, and this causes a comparison error with the new documents. My question is, is there any way of telling SilkTest to ignore the date within a document, so that the comparison does not produce an error if only the date differs??
1.Capture the date declaration.
2.Edit the date declaration with wildcard characters.
if date is like
<font class="small">Code:</font><hr /><pre>
tag "7?23?08" // '/' will be recognized as '?'
make it as follows
3.save & run the script.
hope this helps.
Try and fail, but don't fail to try