Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2009
    Posts
    3

    Default Ignore footer in BC2

    Hi guys

    I am using BC2 as part of an automated regression pack which compares reports created in Systest and UAT and outputs the diffs. We have the PDF plug in and all works well, except that some diffs are only in the fotter with time stamps.

    Is there any way to ignore these as it will save having to check results that say they differ when in fact we are not worried about them.

    Thanks

    Steve

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    4,677

    Default

    Yes, it is possible to ignore differences in the BC2 File Viewer.

    With the files open in the File Viewer, select "Tools > Edit Current Rules".
    Go to the Importance tab.

    In the Unimportant Text section, check a difference to ignore, or click New to define ignored text with delimiters, columns, or regular expressions.

    Back in the main File Viewer window, toggling "View > Ignore Unimportant Differences" will show or hide the differences you marked to ignore.

    For more details, see the "Rules > File Importance Rules" section of Beyond
    Compare's help file.

    The unimportant text settings will also be used for Rules-based comparison criteria (set in "Session > Comparison Control") in the Folder Viewer.
    Chris K Scooter Software

  3. #3
    Join Date
    Jul 2009
    Posts
    3

    Default

    Thanks Chris

    I am struggling with this though as you can select to ignore a header but not a footer.
    The problem I have is that the data is not the same on each report as it is a date and time, so there is no hard and fast rule I can apply to say ignore text that starts with "Date:" as there is no label.
    Literally all I get is this...

    2-JUL-09 10:11:12

    Is there a way I can ignore footer text that is not constant?

  4. #4
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,788

    Default

    Hello,

    You can create a new Unimportant element that matches on the text specifically using regular expressions:
    ^\s*\d{1,2}-\w{3}-\d{2}\s\d\d:\d\d:\d\d\s*$

    The above matches on:
    ^ beginning of line
    \s* optional whitespace
    \d{1,2} 1 or 2 digits
    - dash
    \w{3} 3 alphanumeric characters
    -dash
    \d{2} 2 digits
    \s whitespace
    \d\d:\d\d:\d\d 2digits:2digits:2digits
    \s*$ optional whitespace until end of line.
    Aaron P Scooter Software

  5. #5
    Join Date
    Jul 2009
    Posts
    3

    Default

    I shall give that a try - thanks for your help.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •