2018 up to now | 2017 | 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,


-----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,

Attachment: diffexample.qft
Description: diffexample.qft