Logo QF-Test

Finding valuable answers
in the Mailing List Archive.

 

Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2007


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] Feature Request


  • Subject: Re: [QF-Test] Feature Request
  • From: "Annie Connell" <anne.connell@?.com>
  • Date: Thu, 27 Dec 2007 18:51:07 -0000

Thanks, Gregor.

If it's of any interest, I've implemented this successfully in Windows
by using the DOS command FC:

fc "$(fileA)" "$(fileB)" /N /L

Best regards,

Anne.

-----Original Message-----
From: Gregor Schmid, QFS Support [mailto:support@?.de] 
Sent: 27 December 2007 07:54
To: Annie Connell
Cc: Martin.Moser@?.de
Subject: Re: [QF-Test] Feature Request



Hi Annie,

Martin's on vacation so I'll answer.

When comparing files that are supposed to be identical the easiest
method is to run an external diff command using an "Execute shell
script" node. Follow that with a "Wait for client to terminate" and
check for exit code 0. If the files differ you'll get an
UnexpectedExitCode exception that you can turn into an error message
using Try/Catch. Also, the diff command should output the differences
between the files and they will be stored in the run-log.

I'm attaching a suite with a simple example below. 

What I don't know is how well the Windows diff program is performing.
We're always using Unix tools - even on Windows - for that task. Perhaps
Martin had something different in mind. In that case he'll get back to
you after his vacation.

Best regards,
    Greg

Attachment: diffexample.qft
Description: diffexample.qft


Videos Downloads Documentation Buy Free Trial