Issue 92936 - [Automation] File I/O functions need warnlogs on error
Summary: [Automation] File I/O functions need warnlogs on error
Status: CLOSED FIXED
Alias: None
Product: QA
Classification: Unclassified
Component: testscripts (show other issues)
Version: current
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: joerg.skottke
QA Contact: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-20 07:51 UTC by joerg.skottke
Modified: 2013-08-07 15:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description joerg.skottke 2008-08-20 07:51:31 UTC
Under certain conditions saving files might fail.
We need a warnlog in that case.
Comment 1 joerg.skottke 2008-08-20 07:52:19 UTC
CCing HDE
Comment 2 joerg.skottke 2008-08-20 09:24:53 UTC
hFileWait() has been modified to take an optional boolean parameter that - if
set to TRUE - forces the function to issue a warnlog if any dialog appears after
triggering the File I/O operation.

This is enabled for all hFileSave*() functions by default and is a tribute to
lazy test writers who do not want to check the outcome of their file-ops manually.

This change is high risk.
Comment 3 joerg.skottke 2008-08-20 12:18:16 UTC
Note that the new warning mechanism is turned *off* for the hFileOpen* functions
because a change to the function interfaces would be necessary (explicitly turn
off the warnings) and this again would require changes to quite a lot of test
scripts.
Comment 4 joerg.skottke 2008-08-21 10:58:25 UTC
Changed interface:

   hFileWait( optional bWarnlog ) as integer

Where bWarnlog = true prints a warnlog if any dialog pops up. This is the
default. This should never happen when writing files.

Verified with a number of tests on Windows and Linux spread over multiple modules.
Comment 5 joerg.skottke 2008-08-21 10:58:53 UTC
Verified
Comment 6 joerg.skottke 2008-09-17 08:49:07 UTC
In m6. Closed.