SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 7 of 7

Thread: Utility Tool...

  1. #1
    Junior Member
    Join Date
    Jun 2003
    Location
    San Francisco
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Utility Tool...

    Hello,

    Do I need an automation tool (WinRunner, SilkTest, etc) for utility such as WinDiff, to see the file diferences? Or can it be a stand alone utility?

    Any help is greatly appreciated!

    Thanks

  2. #2
    Moderator Joe Strazzere's Avatar
    Join Date
    May 2000
    Location
    USA
    Posts
    13,170
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Utility Tool...

    WDiff is a standalone tool.

    [ 06-18-2003, 12:54 PM: Message edited by: Joe Strazzere ]
    Joe Strazzere
    Visit my website: AllThingsQuality.com to learn more about quality, testing, and QA!

  3. #3
    Junior Member
    Join Date
    Jun 2003
    Location
    San Francisco
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Utility Tool...

    Hi,

    Any good/bad experience using WinDiff or any other tool as such? Any recomendation?

  4. #4
    Senior Member
    Join Date
    May 2001
    Location
    Ankh-Morpork
    Posts
    2,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Utility Tool...

    Having come from a UNIX background, I just ftp the files in question to a convenient UNIX server and run 'diff' on them (a standard UNIX commmand). If I need special abilities like ignoring certain fields (date/time perhaps?), I'll write a little Perl script to do that, such as:
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">#!/usr/bin/perl -w
    ################################################## ####################
    # compare two files, ignoring specified field.'
    #
    # USAGE: compare.pl file1_txt file2_txt start_int end_int
    ################################################## ####################
    use strict;

    sub usage # Print usage message
    {
    print &lt;&lt;EOT;
    USAGE: compare.pl file1 file2 start end
    Where: 'file1' and 'file2' are two files to compare
    'start' is position of 1st character to ignore
    'end' is position of last character to ignore\n
    EOT
    }

    if($#ARGV != 3) {
    usage();
    die &quot;Wrong number of arguments.\n&quot;;
    }

    my $file1 = $ARGV[0];
    my $file2 = $ARGV[1];
    my $fieldStart = $ARGV[2];
    my $fieldEnd = $ARGV[3];

    # open the two files to be compared:
    open(FILE1, &quot;$file1&quot or die &quot;Unable to open file $file1. $!\n&quot;;
    open(FILE2, &quot;$file2&quot or die &quot;Unable to open file $file2. $!\n&quot;;

    # make sure the field delimiters are integers:
    if($fieldStart =~ /^[^1-9][^0-9]*/)
    {
    usage();
    die &quot;Field start must be an integer\n&quot;;
    }
    if($fieldEnd =~ /^[^1-9][^0-9]*/)
    {
    usage();
    die &quot;Field start must be an integer\n&quot;;
    }


    my $lineCount = 1;
    my $line1;
    my $line2;
    my $line1mod;
    my $line2mod;

    while($line1 = &lt;FILE1&gt
    {
    chomp($line1);
    chomp($line2 = &lt;FILE2&gt;
    if($line1 ne &quot;&quot; &amp;&amp; $line2 ne &quot;&quot {
    $line1mod = substr($line1, 0, $fieldStart - 1) .
    substr($line1, $fieldEnd);
    $line2mod = substr($line2, 0, $fieldStart - 1) .
    substr($line2, $fieldEnd);
    }
    if($line1mod ne $line2mod) {
    print &quot;\n$file1\[$lineCount\]: $line1\n$file2\[$lineCount\]: $line2\n&quot;;
    }
    $lineCount++;
    }

    while($line2 = &lt;FILE2&gt
    {
    print &quot;\n$file1\[$lineCount\]:\n$file2\[$lineCount\]: $line2\n&quot;;
    }</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">
    web site | [url=http://www.ebookworm.us/[/url]

    [i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.&lt;/i] (The Song of Roland)

  5. #5
    Moderator Joe Strazzere's Avatar
    Join Date
    May 2000
    Location
    USA
    Posts
    13,170
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Utility Tool...

    Originally posted by Rus:
    Hi,

    Any good/bad experience using WinDiff or any other tool as such? Any recomendation?
    <font size="2" face="Verdana, Arial, Helvetica">I use WDiff every day.
    It's free, it's easy, and it meets all of my needs.

    My recommendation is to try 3 or 4 diff utilities yourself. Almost all of them offer a free download. And trying them all shouldn't take long. Plus it's a pretty low-risk decision, isn't it?
    Joe Strazzere
    Visit my website: AllThingsQuality.com to learn more about quality, testing, and QA!

  6. #6
    Member
    Join Date
    Apr 2003
    Location
    Bellevue, WA
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Utility Tool...

    Is Windiff actually free? I know it comes installed with Visual Studio.

  7. #7
    Junior Member
    Join Date
    Jun 2003
    Location
    San Francisco
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Utility Tool...

    No, its not....But if you know someone who has it, they can extract windiff and its .dll file for you...or just give you the cd [img]images/icons/wink.gif[/img]

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:20 PM.

Copyright BetaSoft Inc.