Quality First Software GmbHgradient
Quality First Software GmbH
ProfessionalTest Automation
Home|Contact
QF-Test  –  The GUI Test Tool for Java and Web Demo VideoDownloadQF-Test BookletQF-Test

Mailing List Archive

Search mailing list archive only
 

[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