Issue 96566 - [Automation] e_location.bas incorrectly interprets returnvalue from hFileOpen
Summary: [Automation] e_location.bas incorrectly interprets returnvalue from hFileOpen
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-11-25 08:02 UTC by joerg.skottke
Modified: 2013-08-07 15:07 UTC (History)
1 user (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-11-25 08:02:38 UTC
Found in DEV300m35 / CWS jl105:

The function hOpenFile has been adjusted to correctly return "FALSE" in case of
a blocking open dialog.

This causes the test to issue a warning which is incorrect as the Macro Security
Warning is expected at this point.

Change the code to something like:
    '///<ul>
    '///+<li>Load the testdocument</li>
    brc = hFileOpen( cWorkPath & DOCUMENT_NAME )
    if ( not brc ) then
        '///+<li>Allow macro execution</li>
        brc = hAllowMacroExecution()
        if ( not brc ) then
            warnlog( "Macro execution warning is missing" )
        endif
    else
        warnlog( "Macro execution dialog missing" )
    endif
Comment 1 joerg.skottke 2008-11-27 08:13:41 UTC
Sending        location.inc
Transmitting file data .
Committed revision 264448.
Comment 2 joerg.skottke 2008-11-27 08:14:27 UTC
set verified
Comment 3 joerg.skottke 2009-01-08 10:01:21 UTC
good in m38, closing