Forum Discussion

sushma_n's avatar
sushma_n
New Contributor
14 years ago

Automation of Comparison of Reports in a Delphi Application

Hi,



I have to automate the comparison of two Reports which are part of my DELPHI Application using TestComplete. One Report is an SQL Report and the other is an ADVANTAGE Report. The Reports are generated using RBBuilder.



TestComplete is unable to identify the text within the generated Report.



I have tried using the Regions.AddPicture and Regions.Compare. However, there are Date and Time Stamps within the Report due to which, I cannot go in for Regions.Compare. Although the content of the Reports are the same, the Reports will never match as the Date and Timestamps are different. I also tried to use the Transparent Parameter in order to exclude the Date and Time Stamps during comparison. However, since we have to generate the Reports dynamically and compare them, adding transparencies also is not feasible.



Please let me know if there is an alternative method to automate the comparison of these Reports, or if I am missing anything.



Thanks and Regards,

Sushma.
  • Hi Sushma,

    Except for the Transparent parameter, there's one more technique to exclude certain areas from image comparison - Comparison Mask. That is, instead of adding transparencies to the generated images, you may specify one predefined image denoting which areas should be compared and which should be ignored.

    When both of your reports are equal, except for date-time stamps, and the latter are located at some fixed area of the report, the comparison mask may be the solution you need.

    To create a comparison mask, you can use the Region Checkpoint Wizard.



    Happy automation!