summaryrefslogtreecommitdiff
path: root/testautomation
diff options
context:
space:
mode:
authorVladimir Glazunov <vg@openoffice.org>2011-01-05 15:48:52 +0100
committerVladimir Glazunov <vg@openoffice.org>2011-01-05 15:48:52 +0100
commit8b6c5db130c88bf84b007bd4aa43a1773cb66a6f (patch)
tree801644c74f2ac1971935dad1f3201f9bfb3297db /testautomation
parentba973d7fba682aa951bea428e6fed80c5d414897 (diff)
parent38af65d1b4f83de02e9d95f85349932990830947 (diff)
CWS-TOOLING: integrate CWS automationdev300m95
Diffstat (limited to 'testautomation')
-rw-r--r--[-rwxr-xr-x]testautomation/framework/optional/includes/f_usage_tracking.inc2
-rw-r--r--[-rwxr-xr-x]testautomation/global/required/includes/g_option.inc11
-rw-r--r--testautomation/writer/optional/includes/textframes/w_textframes2.inc4
-rw-r--r--[-rwxr-xr-x]testautomation/writer/tools/includes/w_tool6.inc4
4 files changed, 15 insertions, 6 deletions
diff --git a/testautomation/framework/optional/includes/f_usage_tracking.inc b/testautomation/framework/optional/includes/f_usage_tracking.inc
index ef20c2a2f1e5..c52ae61c0945 100755..100644
--- a/testautomation/framework/optional/includes/f_usage_tracking.inc
+++ b/testautomation/framework/optional/includes/f_usage_tracking.inc
@@ -100,7 +100,7 @@ testcase tUsageTracking3
kontext "Active"
if ( Active.exists( 2 ) ) then
- qaerrorlog( "Messagebox not required as control should not be enabled (see #i97340#)" )
+ warnlog( "Messagebox not required as control should not be enabled (see #i97340#)" )
Active.ok()
kontext "TextImport"
diff --git a/testautomation/global/required/includes/g_option.inc b/testautomation/global/required/includes/g_option.inc
index 2f7b6aa33ac2..0c40d3c3d08e 100755..100644
--- a/testautomation/global/required/includes/g_option.inc
+++ b/testautomation/global/required/includes/g_option.inc
@@ -756,7 +756,7 @@ testcase tToolsOptionsImprovementProgram
Active.ok()
else
if ( NOT bImportDialogHasBeenDisplayed ) then
- qaerrorlog( "#i97340# Show Data button enabled but no logged data found" )
+ warnlog( "#i97340# Show Data button enabled but no logged data found" )
endif
endif
@@ -767,8 +767,13 @@ testcase tToolsOptionsImprovementProgram
endif
Kontext "OptionenDlg"
- OptionenDlg.cancel()
-
+ if OptionenDlg.Exists then
+ OptionenDlg.cancel()
+ endif
+
+ if GetDocumentCount = 1 then
+ Call hCloseDocument
+ endif
else
' hDeleteFile() returns FALSE if the file is still present for some weird reason
' We should warn about this because the test breaks at a later point then.
diff --git a/testautomation/writer/optional/includes/textframes/w_textframes2.inc b/testautomation/writer/optional/includes/textframes/w_textframes2.inc
index 4fca2bdbddb6..466b0c99ab15 100644
--- a/testautomation/writer/optional/includes/textframes/w_textframes2.inc
+++ b/testautomation/writer/optional/includes/textframes/w_textframes2.inc
@@ -868,7 +868,7 @@ testcase tTextframes_28
printlog "Insert a frame"
Call fInsertFrame(30, 30, 60, 60)
-
+ Sleep 2
printlog "Naming the frame"
Call fFormatFrame("TabZusaetze")
ObjektName.SetText sFrameName1
@@ -885,7 +885,7 @@ testcase tTextframes_28
printlog "Insert another frame"
Call fInsertFrame(50, 50, 80, 80)
-
+ Sleep 2
printlog "Naming the frame"
Call fFormatFrame("TabZusaetze")
ObjektName.SetText sFrameName2
diff --git a/testautomation/writer/tools/includes/w_tool6.inc b/testautomation/writer/tools/includes/w_tool6.inc
index 33ddca87709e..9bc7ed688d9b 100755..100644
--- a/testautomation/writer/tools/includes/w_tool6.inc
+++ b/testautomation/writer/tools/includes/w_tool6.inc
@@ -38,6 +38,10 @@ sub wOfficeRestart
FileExit "SynchronMode", TRUE
Call hStartTheOffice
+
+ ' Open new document
+ Call hNewDocument
+
end sub
'--------------------------------------------------------------