Issue 92934 - [Automation] File I/O functions need returnvalue
Summary: [Automation] File I/O functions need returnvalue
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:33 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:33:39 UTC
Ensure that the file-I/O functions return a value so the test writer can react
to special conditions.
Comment 1 joerg.skottke 2008-08-20 07:34:16 UTC
CCing HDE
Comment 2 joerg.skottke 2008-08-20 08:53:26 UTC
Started.
Fixing the issue forces interface changes to all I/O functions.
Comment 3 joerg.skottke 2008-08-20 09:16:48 UTC
The initial design of the functions was to - as far as possible - to replicate
the functionality of the old functions including their shortcomings.

So the functions were designed to not return anything useful (as did the old ones).
However, hDateiOeffnen provided handling of the "Update links" dialog, which
made it essentially different from the other functions that did not provide such
functionality.

hFileOpen currently replicates this behavior, this is to be removed. The
functions now return the values as they come from hFileWait - negative numbers
indicate presence of dialogs, positive numbers including 0 give the time it took
to load the document if no dialogs are in the way.
Comment 4 joerg.skottke 2008-08-20 11:56:06 UTC
Moving target, this cannot be done for 3.0
Funny enough i cannot set the target 3.1, so i set it to 3.x.
Comment 5 joerg.skottke 2008-08-26 14:16:38 UTC
Fixed - let's give it a try
Comment 6 joerg.skottke 2008-08-26 14:23:58 UTC
Set fixed
Comment 7 joerg.skottke 2008-10-08 08:18:22 UTC
As discussed in the automation meeting we opted for the "small" solution,
meaning that the functions only return TRUE if the document is completely loaded
and FALSE if it is blocked by some dialog.

Verified.
Comment 8 joerg.skottke 2009-10-09 08:11:30 UTC
Close