Kaydet (Commit) 681a157f authored tarafından Joerg Skottke [jsk]'s avatar Joerg Skottke [jsk]

automationooo330m3: #i110184#/#i113761# - Changed handling of messageboxes, made…

automationooo330m3: #i110184#/#i113761# - Changed handling of messageboxes, made QA-ErrorLogs from Warnlogs, the test is now again functional.
üst d2913244
...@@ -58,7 +58,7 @@ testcase tMacroSecurityLevels( cFileFormat ) ...@@ -58,7 +58,7 @@ testcase tMacroSecurityLevels( cFileFormat )
dim iSecLevel as integer dim iSecLevel as integer
const EXPECTED_MESSAGECOUNT = 1 const EXPECTED_MESSAGECOUNT = 0
const ALLOW_ONE_EXTRA_MESSAGEBOX = 1 const ALLOW_ONE_EXTRA_MESSAGEBOX = 1
const ALLOW_NO_EXTRA_MESSAGEBOXES = 0 const ALLOW_NO_EXTRA_MESSAGEBOXES = 0
...@@ -90,7 +90,11 @@ testcase tMacroSecurityLevels( cFileFormat ) ...@@ -90,7 +90,11 @@ testcase tMacroSecurityLevels( cFileFormat )
case GC_MACRO_SECURITY_LEVEL_LOW : case GC_MACRO_SECURITY_LEVEL_LOW :
if ( not hIdentifyExecutedMacro() ) then if ( not hIdentifyExecutedMacro() ) then
warnlog( "#i110184# - Macro was not executed" ) if ( gApplication = "MATH" ) then
qaerrorlog( "#i110184# - Macro was not executed" )
else
warnlog( "Macro was not excuted" )
endif
endif endif
case GC_MACRO_SECURITY_LEVEL_MEDIUM : case GC_MACRO_SECURITY_LEVEL_MEDIUM :
...@@ -100,12 +104,19 @@ testcase tMacroSecurityLevels( cFileFormat ) ...@@ -100,12 +104,19 @@ testcase tMacroSecurityLevels( cFileFormat )
endif endif
if ( not hIdentifyExecutedMacro() ) then if ( not hIdentifyExecutedMacro() ) then
warnlog( "#i110184# - Macro was not executed" ) if ( gApplication = "MATH" ) then
qaerrorlog( "#i110184# - Macro was not executed" )
else
warnlog( "Macro was not excuted" )
endif
endif endif
case GC_MACRO_SECURITY_LEVEL_HIGH : case GC_MACRO_SECURITY_LEVEL_HIGH :
if ( not hHandleActivesOnLoad( EXPECTED_MESSAGECOUNT , ALLOW_ONE_EXTRA_MESSAGEBOX ) ) then kontext "Active"
hCloseDialog( Active, "ok" )
if ( not hHandleActivesOnLoad( EXPECTED_MESSAGECOUNT , ALLOW_NO_EXTRA_MESSAGEBOXES ) ) then
warnlog( "#i53710# unexpected second messagebox" ) warnlog( "#i53710# unexpected second messagebox" )
endif endif
...@@ -115,6 +126,9 @@ testcase tMacroSecurityLevels( cFileFormat ) ...@@ -115,6 +126,9 @@ testcase tMacroSecurityLevels( cFileFormat )
case GC_MACRO_SECURITY_LEVEL_VERYHIGH : case GC_MACRO_SECURITY_LEVEL_VERYHIGH :
kontext "Active"
hCloseDialog( Active, "ok" )
if ( not hHandleActivesOnLoad( EXPECTED_MESSAGECOUNT , ALLOW_NO_EXTRA_MESSAGEBOXES ) ) then if ( not hHandleActivesOnLoad( EXPECTED_MESSAGECOUNT , ALLOW_NO_EXTRA_MESSAGEBOXES ) ) then
warnlog( "#i53710# unexpected second messagebox" ) warnlog( "#i53710# unexpected second messagebox" )
endif endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment