summaryrefslogtreecommitdiff
path: root/testautomation/framework/optional/includes/basic_spectemplate.inc
diff options
context:
space:
mode:
Diffstat (limited to 'testautomation/framework/optional/includes/basic_spectemplate.inc')
-rw-r--r--[-rwxr-xr-x]testautomation/framework/optional/includes/basic_spectemplate.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/testautomation/framework/optional/includes/basic_spectemplate.inc b/testautomation/framework/optional/includes/basic_spectemplate.inc
index eeed6b047141..7fc265837f78 100755..100644
--- a/testautomation/framework/optional/includes/basic_spectemplate.inc
+++ b/testautomation/framework/optional/includes/basic_spectemplate.inc
@@ -94,10 +94,12 @@ testcase tBasicSpecTemplate
printlog( "Load the file again" )
hFileOpen( cWorkFile )
hAllowMacroExecution()
+
+ ' This sleep here is needed after loading the document otherwise the document is closed too early during execution of the macros, which results in basic runtime error messagebox, that can not be handled.
+ SLEEP(1)
printlog( "Cleanup: Close the document and delete the file" )
hDestroyDocument()
hDeleteFile( cWorkFile )
-
endcase