summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-11-15 09:25:32 +0100
committersb <sb@openoffice.org>2010-11-15 09:25:32 +0100
commite6a6893c5e2c3d031eb9926a82586cb352956280 (patch)
tree835130c33d747645c178c4a57670117c6df674ae
parentsb135: merged in DEV300_m92 (diff)
parentCWS-TOOLING: integrate CWS automationdev300m91 (diff)
downloadcore-e6a6893c5e2c3d031eb9926a82586cb352956280.tar.gz
core-e6a6893c5e2c3d031eb9926a82586cb352956280.zip
sb135: merged in DEV300_m93
-rw-r--r--qadevOOo/runner/stats/Summarizer.java2
-rw-r--r--qadevOOo/tests/java/mod/_forms/GenericModelTest.java28
-rw-r--r--[-rwxr-xr-x]testautomation/dbaccess/optional/includes/ctrl_General.inc92
-rw-r--r--[-rwxr-xr-x]testautomation/dbaccess/optional/includes/ctrl_Several2.inc4
-rw-r--r--[-rwxr-xr-x]testautomation/dbaccess/optional/includes/ctrl_Wizards.inc8
-rw-r--r--[-rwxr-xr-x]testautomation/dbaccess/tools/dbcreatetools.inc11
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/toolpanels/TaskPaneComponentUI.xdl2
-rwxr-xr-xtestautomation/global/hid/hid.lst2
-rw-r--r--testautomation/global/required/includes/g_printing.inc2
-rw-r--r--testautomation/global/system/includes/master.inc4
-rw-r--r--[-rwxr-xr-x]testautomation/global/tools/includes/optional/t_control_objects.inc2
-rw-r--r--testautomation/global/win/dial_d_h.win2
-rw-r--r--testautomation/global/win/edia_i_o.win1
-rw-r--r--testautomation/global/win/sys_dial.win5
-rw-r--r--testautomation/graphics/required/includes/impress/im_003_.inc6
-rw-r--r--[-rwxr-xr-x]testautomation/spreadsheet/optional/includes/import_general/c_import_general.inc27
-rw-r--r--testautomation/spreadsheet/optional/includes/so7pp1/c_so7_pp1_ibis.inc6
-rw-r--r--testautomation/writer/optional/includes/contextmenu/w_contextmenu1.inc13
-rw-r--r--testautomation/writer/optional/includes/drawing/w_drawing_tools2.inc37
-rw-r--r--[-rwxr-xr-x]testautomation/writer/optional/includes/fields/w_fields1.inc12
-rw-r--r--testautomation/writer/required/includes/w_001b_.inc1
-rwxr-xr-xtestautomation/writer/tools/includes/w_tools.inc24
22 files changed, 210 insertions, 81 deletions
diff --git a/qadevOOo/runner/stats/Summarizer.java b/qadevOOo/runner/stats/Summarizer.java
index b1fe5fe61dd3..5f4a58cc31f8 100644
--- a/qadevOOo/runner/stats/Summarizer.java
+++ b/qadevOOo/runner/stats/Summarizer.java
@@ -78,7 +78,7 @@ public class Summarizer
{
if (states.elementAt(j).equals("not part of the job"))
{
- state = "Not possible since not all Interfaces/Services have been checked";
+ state = "PASSED(some interfaces/services not tested).OK";
}
else
{
diff --git a/qadevOOo/tests/java/mod/_forms/GenericModelTest.java b/qadevOOo/tests/java/mod/_forms/GenericModelTest.java
index dce88234885f..5ac071c38eb5 100644
--- a/qadevOOo/tests/java/mod/_forms/GenericModelTest.java
+++ b/qadevOOo/tests/java/mod/_forms/GenericModelTest.java
@@ -27,6 +27,7 @@
package mod._forms;
import com.sun.star.beans.NamedValue;
import com.sun.star.beans.PropertyValue;
+import com.sun.star.container.XIndexAccess;
import java.io.PrintWriter;
import lib.StatusException;
@@ -251,11 +252,10 @@ public class GenericModelTest extends TestCase {
if (m_ConnectionColsed) return;
try {
+ XIndexAccess forms = UnoRuntime.queryInterface( XIndexAccess.class,
+ FormTools.getForms( WriterTools.getDrawPage( m_xTextDoc ) ) );
XForm myForm = (XForm) AnyConverter.toObject(new Type(XForm.class),
- (FormTools.getForms(
- WriterTools.getDrawPage(
- m_xTextDoc)))
- .getByName("Standard"));
+ forms.getByIndex(0));
if (debug){
if (myForm == null){
@@ -269,18 +269,20 @@ public class GenericModelTest extends TestCase {
}
- XPropertySet xSetProp = (XPropertySet) UnoRuntime.queryInterface(
- XPropertySet.class, myForm);
- XConnection connection = (XConnection) AnyConverter.toObject(
- new Type(XConnection.class),
- xSetProp.getPropertyValue("ActiveConnection"));
- if (debug && connection == null){
- log.println("ERROR: could not get property 'ActiveConnection' from the XForm");
+ XPropertySet xSetProp = UnoRuntime.queryInterface( XPropertySet.class, myForm );
+ XConnection connection = UnoRuntime.queryInterface( XConnection.class, xSetProp.getPropertyValue( "ActiveConnection" ) );
+ if ( connection == null )
+ {
+ if ( debug )
+ log.println("ERROR: could not get property 'ActiveConnection' from the XForm");
+ }
+ else
+ {
+ connection.close();
}
-
- connection.close();
} catch (Exception e) {
log.println("ERROR: Can't close the connection: " + e.toString());
+ e.printStackTrace( log );
}
log.println("closing data source...");
diff --git a/testautomation/dbaccess/optional/includes/ctrl_General.inc b/testautomation/dbaccess/optional/includes/ctrl_General.inc
index 9e137f4c7a70..b0ee0bea81dc 100755..100644
--- a/testautomation/dbaccess/optional/includes/ctrl_General.inc
+++ b/testautomation/dbaccess/optional/includes/ctrl_General.inc
@@ -38,13 +38,14 @@ sub ctrl_General
call tPosAndSize_Protect_Position
call tPosAndSize_Protect_Size
call tPosAndSize_Keyboard
- call tPosAndSize_Dialog
+ call tPosAndSize_Dialog
call tPosAndSize_KeepRatio
'TODO Control the Setting on tabpage Rotation & Slant (should be inactive).
call tTabStop
call tActivationOrder
call tAddFields
+ call tLabelFieldSelection
end sub
@@ -1033,7 +1034,96 @@ testcase tAddFields
call hCloseDocument
endcase
+'-------------------------------------------------------------------------
+testcase tLabelFieldSelection
+ ' check if the assignment of lables to text fields work
+ dim sLabelText as String
+
+ printlog "Open a new document,"
+ call hNewDocument
+ Kontext "DocumentWriter"
+ DocumentWriter.TypeKeys "tt_doc" , true
+ sleep(1)
+
+ printlog "open the form control toolbar"
+ call hToolbarSelect("FormControls",true)
+
+ Kontext "FormControls"
+ Label.Click
+ sleep(1)
+
+ printlog "insert a label field"
+ call hDrawingWithSelection ( 20, 20, 30, 30 )
+ sleep(2)
+
+ Kontext "FormControls"
+ Edit.Click
+ sleep(1)
+
+ printlog "insert a text field"
+ call hDrawingWithSelection ( 40, 40, 50, 50 )
+ sleep(2)
+
+ printlog "open the control property browser"
+ call fOpenControlPropertyBrowser
+
+ Kontext "ControlPropertiesTabControl"
+ ControlPropertiesTabControl.setPage TabGeneralControl 'make shure that tabpage general in property is choosen
+ sleep(2)
+
+ printlog "click on button behind the lable field to open the field selection dialog"
+ Kontext "TabGeneralControl"
+ LabelFieldButton.Click
+ sleep(1)
+
+ printlog "select the lable fiiel in the tree list box"
+ Kontext "LabelFieldSelection"
+ LabelFieldSelection.TypeKeys "<DOWN>",TRUE
+ LabelFieldSelection.TypeKeys "<DOWN>",TRUE
+ sleep(1)
+ printlog "close the field selection dialog"
+ LabelFieldSelection.OK
+ sleep(1)
+ printlog "check if the lable field property contains some text"
+ 'TODO: check for the correct text this has a language dependencie
+ Kontext "TabGeneralControl"
+ sLabelText = LabelField.getText()
+ if(sLabelText = "") then
+ warnlog "the lable for a text field is not set"
+ else
+ printlog "the label for the text field is set"
+ endif
+
+ printlog "click on button behind the lable field to open the field selection dialog"
+ Kontext "TabGeneralControl"
+ LabelFieldButton.Click
+ sleep(1)
+
+ Kontext "LabelFieldSelection"
+ LabelFieldSelection.TypeKeys "<DOWN>",TRUE
+ LabelFieldSelection.TypeKeys "<DOWN>",TRUE
+ sleep(1)
+ printlog "select the lable field and check the checkbox 'no assignment'"
+ CBNoAssignment.check
+ printlog "close the field selection dialog"
+ LabelFieldSelection.OK
+ sleep(1)
+
+ printlog "check if the lable field property contains no text"
+ Kontext "TabGeneralControl"
+ sLabelText = LabelField.getText()
+ if(sLabelText <> "") then
+ warnlog "the lable for a text field is not deleted"
+ else
+ printlog "the label for the text field is deleted"
+ endif
+
+ printlog "close the document"
+ call hCloseDocument
+
+endcase
+'-------------------------------------------------------------------------
function fOpenPositionAndSizeDialog
call hToolbarSelect("FormDesignTools",true)
diff --git a/testautomation/dbaccess/optional/includes/ctrl_Several2.inc b/testautomation/dbaccess/optional/includes/ctrl_Several2.inc
index 82fa9229b1f8..717cf149b902 100755..100644
--- a/testautomation/dbaccess/optional/includes/ctrl_Several2.inc
+++ b/testautomation/dbaccess/optional/includes/ctrl_Several2.inc
@@ -293,7 +293,7 @@ testcase tImageControl
sleep(2)
'/// set HelpURL
printlog "set HelpURL"
- fsetControlProperty("ImageControl","HelpURL","HID:1234567")
+ fsetControlProperty("ImageControl","HelpURL","customcontrol2")
'/// save the document
printlog "save the document"
hFileSaveAsKill ( gOfficePath + ConvertPath("user/work/TT_ImageControl.odt"))
@@ -315,7 +315,7 @@ testcase tImageControl
Kontext "TabGeneralControl"
dim bScrOK as boolean 'control variable if all properties are correct
bScrOK = true
- if fgetControlProperty("ImageControl","HelpURL") <> "HID:1234567" then
+ if fgetControlProperty("ImageControl","HelpURL") <> "customcontrol2" then
warnlog "the imagecontrol is not saved with property: HelpURL"
bScrOK = false
endif
diff --git a/testautomation/dbaccess/optional/includes/ctrl_Wizards.inc b/testautomation/dbaccess/optional/includes/ctrl_Wizards.inc
index 49bcaceb6ac7..2f51183a40a1 100755..100644
--- a/testautomation/dbaccess/optional/includes/ctrl_Wizards.inc
+++ b/testautomation/dbaccess/optional/includes/ctrl_Wizards.inc
@@ -239,7 +239,7 @@ testcase tGroupBoxWithDatasource
Kontext "TabGeneralControl"
TabGeneralControl.TypeKeys "<TAB>" , true 'this tab is importent, I don't not why but it is.
sleep(1)
- HelpURL.setText "HID:123456"
+ HelpURL.setText "customcontrol1"
HelpURL.TypeKeys "<RETURN>",true
sleep(1)
Kontext "ControlPropertiesDialog"
@@ -276,7 +276,7 @@ testcase tGroupBoxWithDatasource
Kontext "TabGeneralControl"
TabGeneralControl.TypeKeys "<TAB>" , true 'this tab is importent, I don't not why but it is.
sleep(1)
- HelpURL.setText "HID:1234567"
+ HelpURL.setText "customcontrol2"
HelpURL.TypeKeys "<RETURN>", true
sleep(1)
Kontext "ControlPropertiesDialog"
@@ -314,7 +314,7 @@ testcase tGroupBoxWithDatasource
Kontext "TabGeneralControl"
TabGeneralControl.TypeKeys "<TAB>" , true ' this tab is importent, I don't not why but it is.
- HelpURL.setText "HID:12345678"
+ HelpURL.setText "customcontrol3"
HelpURL.TypeKeys "<RETURN>", true
sleep(1)
Kontext "ControlPropertiesDialog"
@@ -660,7 +660,7 @@ testcase tListBox
warnlog "The dropdown style is not active."
endif
sleep(1)
- fSetControlProperty("ListBox","HelpURL","HID:123456")
+ fSetControlProperty("ListBox","HelpURL","customcontrol1")
sleep(1)
'/// save the document
printlog "save the document"
diff --git a/testautomation/dbaccess/tools/dbcreatetools.inc b/testautomation/dbaccess/tools/dbcreatetools.inc
index 2658281f65be..cc99d8d203c5 100755..100644
--- a/testautomation/dbaccess/tools/dbcreatetools.inc
+++ b/testautomation/dbaccess/tools/dbcreatetools.inc
@@ -1375,8 +1375,17 @@ function fRegisterDatabaseFile( sFileName, sName)
NewBtn.Click
sleep(1)
Kontext "CreateDatabaseLink"
- DatabaseFile.setText(sFileName)
+
RegisteredName.setText(sName)
+
+ ' this does not work due to issue 115468
+ ' DatabaseFile.setText(sFileName)
+ ' workaround
+ CreatedatabaseLink.typeKeys("<shift tab>")
+ CreatedatabaseLink.typeKeys("<shift tab>")
+ CreatedatabaseLink.typeKeys(sFileName)
+ ' -
+
CreateDatabaseLink.OK
sleep(1)
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/toolpanels/TaskPaneComponentUI.xdl b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/toolpanels/TaskPaneComponentUI.xdl
index 7820e3d52c59..75e1ceb1e019 100755
--- a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/toolpanels/TaskPaneComponentUI.xdl
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/toolpanels/TaskPaneComponentUI.xdl
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
-<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="Dialog1" dlg:left="192" dlg:top="127" dlg:width="174" dlg:height="147" dlg:closeable="true" dlg:moveable="true" dlg:help-url="HID:123456" dlg:withtitlebar="false">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="Dialog1" dlg:left="192" dlg:top="127" dlg:width="174" dlg:height="147" dlg:closeable="true" dlg:moveable="true" dlg:help-url="customcontrol1" dlg:withtitlebar="false">
<dlg:bulletinboard>
<dlg:button dlg:id="CommandButton1" dlg:tab-index="0" dlg:left="6" dlg:top="8" dlg:width="64" dlg:height="20" dlg:value="a wonderful button"/>
<dlg:textfield dlg:id="TextField1" dlg:textarea-vertical-align="top" dlg:tab-index="1" dlg:left="6" dlg:top="38" dlg:width="64" dlg:height="59" dlg:value="a wonderful text"/>
diff --git a/testautomation/global/hid/hid.lst b/testautomation/global/hid/hid.lst
index 3257e92a9066..a07f54c87773 100755
--- a/testautomation/global/hid/hid.lst
+++ b/testautomation/global/hid/hid.lst
@@ -1,5 +1,3 @@
-DEV300.m85 010101010101010
-
1 1
SID_OPENDOC 5501
SID_SAVEASDOC 5502
diff --git a/testautomation/global/required/includes/g_printing.inc b/testautomation/global/required/includes/g_printing.inc
index 15ee12c4308d..2d0bd716e551 100644
--- a/testautomation/global/required/includes/g_printing.inc
+++ b/testautomation/global/required/includes/g_printing.inc
@@ -408,7 +408,7 @@ testcase tPrintLayout()
endif
endif
- lb_test( PrintOrder, 2, 1, "" )
+ lb_test( PrintOrder, 4, 1, "" )
cb_test( BorderAroundPages, false, "" )
select case( gApplication )
diff --git a/testautomation/global/system/includes/master.inc b/testautomation/global/system/includes/master.inc
index 3825dadff409..40a1f504ed64 100644
--- a/testautomation/global/system/includes/master.inc
+++ b/testautomation/global/system/includes/master.inc
@@ -84,6 +84,10 @@ sub GetUseFiles
Call GetIniInformation '///+<li><b>GetIniInformation</b>: Get all information out of the <i>testtool.ini/.testtoolrc</i> and set it on global variables (iniinfo.inc)</li>
Call GetOfficeInformation '///+<li><b>GetOfficeInformation</b>: Set <i>sAppExe</i> for startup (iniinfo.inc)</li>
+ gVersionsnummer = FindBuildID
+ ' split versionstring into its parts
+ call hSetBuildVersionInformation(False)
+
Call LoadDeclaration '///+<ul><li><b>LoadDeclaration</b>: Load all declaration files (master.inc)</li>
Call FirstOfficeStart '///+<li><b>FirstOfficeStart</b>: Try to start the office for first time (master.inc)</li>
diff --git a/testautomation/global/tools/includes/optional/t_control_objects.inc b/testautomation/global/tools/includes/optional/t_control_objects.inc
index b1da7d7e8d95..4ee8b908c93f 100755..100644
--- a/testautomation/global/tools/includes/optional/t_control_objects.inc
+++ b/testautomation/global/tools/includes/optional/t_control_objects.inc
@@ -115,7 +115,7 @@ function lb_test( oControl as object, items as integer, preset as integer, issue
endif
endif
- for con_iterator = 1 to items
+ for con_iterator = 1 to con_items
oControl.select( con_iterator )
next con_iterator
diff --git a/testautomation/global/win/dial_d_h.win b/testautomation/global/win/dial_d_h.win
index 6a80e4209cbc..ba6673edb39d 100644
--- a/testautomation/global/win/dial_d_h.win
+++ b/testautomation/global/win/dial_d_h.win
@@ -401,7 +401,7 @@ Schattenfarbe sym:svx:ListBox:RID_SVXDLG_FONTWORK:CLB_SHADOW_COLOR
FormName sym:sw:Edit:DLG_NUM_NAMES:ED_FORM
FormListe sym:sw:ListBox:DLG_NUM_NAMES:LB_FORM
-*FormularNavigator .uno:ShowFmExplorer
+*FormularNavigator sym:SFXDOCKINGWINDOW_ShowFmExplorer
Liste sym:SVX_HID_FORM_NAVIGATOR
*FussnoteBearbeiten .uno:EditFootnote
diff --git a/testautomation/global/win/edia_i_o.win b/testautomation/global/win/edia_i_o.win
index ca8fb3659c1d..39d90d8d1c97 100644
--- a/testautomation/global/win/edia_i_o.win
+++ b/testautomation/global/win/edia_i_o.win
@@ -154,6 +154,7 @@ RightFieldCell sym:DBACCESS_HID_RELATIONDIALOG_RIGHTFIELDCELL
*LabelFieldSelection sym:extensions:ModalDialog:RID_DLG_SELECTLABELCONTROL
+CBNoAssignment sym:extensions:CheckBox:RID_DLG_SELECTLABELCONTROL:1
*JPGOptions sym:svtools:ModalDialog:DLG_EXPORT
Exportwidth sym:svtools:MetricField:DLG_EXPORT:MF_SIZEX
diff --git a/testautomation/global/win/sys_dial.win b/testautomation/global/win/sys_dial.win
index b63417e56b9f..15e8035d8b74 100644
--- a/testautomation/global/win/sys_dial.win
+++ b/testautomation/global/win/sys_dial.win
@@ -126,3 +126,8 @@ OrdnerName sym:fpicker:Edit:DLG_SVT_QUERYFOLDERNAME:ED_SVT_QUERYFOLDERNAME_DLG_N
' ****
*TranslationWindow sym:svtools:WorkWindow:TT_INLINE_TRANSLATION svtools:FloatingWindow:TT_INLINE_TRANSLATION
+' **** specal longnames for bas test
+' **** author marc.neumann@oracle.com
+*MSC_Special_Dialog sym:customcontrol1
+*MSC_Special_Dialog2 sym:customcontrol2
+*MSC_Special_Dialog3 sym:customcontrol3 \ No newline at end of file
diff --git a/testautomation/graphics/required/includes/impress/im_003_.inc b/testautomation/graphics/required/includes/impress/im_003_.inc
index 744c24fb9a86..2674433034b9 100644
--- a/testautomation/graphics/required/includes/impress/im_003_.inc
+++ b/testautomation/graphics/required/includes/impress/im_003_.inc
@@ -201,14 +201,14 @@ testcase tiViewToolbar_1
printlog "open application "
Call hNewDocument
+
+ printlog "use the empty layout"
Call sSelectEmptyLayout
+
printlog "delete default content"
hUseAsyncSlot( "EditSelectAll" )
Kontext "DocumentImpress"
DocumentImpress.typeKeys("<DELETE>",true)
-
- printlog "use the empty layout"
- call sSelectEmptyLayout
printlog "Insert->Graphic... : global\input\graf_inp\desp.bmp "
hUseAsyncSlot( "InsertGraphicsFromFile" )
diff --git a/testautomation/spreadsheet/optional/includes/import_general/c_import_general.inc b/testautomation/spreadsheet/optional/includes/import_general/c_import_general.inc
index d53c23fbbe3d..a12fbb764115 100755..100644
--- a/testautomation/spreadsheet/optional/includes/import_general/c_import_general.inc
+++ b/testautomation/spreadsheet/optional/includes/import_general/c_import_general.inc
@@ -57,31 +57,6 @@ end sub
'
'-------------------------------------------------------------------------------
'
-function IsItLoaded as boolean
- '/// IsItLoaded
- '/// Wait until document is loaded
- Dim iLoop as integer
-
- IsItLoaded = FALSE
- sleep(3)
- for iLoop =1 to 20
- try
- 'Calling slot 'IsDocLoading'
- IsItLoaded = IsDocLoading
- catch
- IsItLoaded = FALSE
- endcatch
-
- if IsItLoaded = TRUE then
- exit for
- end if
- sleep(1)
- next iLoop
- sleep(2)
-end function
-'
-'-------------------------------------------------------------------------------
-'
testcase tLoadSpreadsheetDocument (SourceFile)
Dim sOnlyFileName as string
@@ -102,7 +77,7 @@ testcase tLoadSpreadsheetDocument (SourceFile)
if sOnlyFileName > "" then
'Some extensions make no sense to load
if sOnlyFileExtension <> "so" AND sOnlyFileExtension <> "tmp" AND sOnlyFileExtension <> "dbt" then
- if fCalcFileOpen(SourceFile) AND IsItLoaded()then
+ if fCalcFileOpen(SourceFile) then
if (hIsNamedDocLoaded (SourceFile)) then
printlog "- loaded"
sleep(15)
diff --git a/testautomation/spreadsheet/optional/includes/so7pp1/c_so7_pp1_ibis.inc b/testautomation/spreadsheet/optional/includes/so7pp1/c_so7_pp1_ibis.inc
index 9e25d898d8ce..f55bd6318ffd 100644
--- a/testautomation/spreadsheet/optional/includes/so7pp1/c_so7_pp1_ibis.inc
+++ b/testautomation/spreadsheet/optional/includes/so7pp1/c_so7_pp1_ibis.inc
@@ -125,10 +125,10 @@ testcase tIBIS111158
Kontext "TabGeneralControl"
'/// Enter in 'Help URL' as value exactly 'HID:123456'
TabGeneralControl.TypeKeys "<TAB>" , true
- HelpURL.setText "HID:123456"
+ HelpURL.setText "customcontrol1"
HelpURL.TypeKeys "<RETURN>",true
- if HelpURL.GetText <> "HID:123456" then
- warnlog "'HID:123456' has not been accepted as 'Help URL' value."
+ if HelpURL.GetText <> "customcontrol1" then
+ warnlog "'customcontrol1' has not been accepted as 'Help URL' value."
end if
Kontext "ControlPropertiesDialog"
diff --git a/testautomation/writer/optional/includes/contextmenu/w_contextmenu1.inc b/testautomation/writer/optional/includes/contextmenu/w_contextmenu1.inc
index 75db278c25ef..729659dfc54d 100644
--- a/testautomation/writer/optional/includes/contextmenu/w_contextmenu1.inc
+++ b/testautomation/writer/optional/includes/contextmenu/w_contextmenu1.inc
@@ -194,7 +194,14 @@ testcase tPickGraphic
Call wOpenContextMenu(true)
printlog " Select 'ImageMap' in context menu"
- Call hMenuSelectNr(9)
+ try
+ CALL hMenuFindSelect (".uno:ImageMapDialog", true, 11, true) 'Find "ImageMap" and call the slot.
+ wait 500
+ catch
+ Warnlog "Unable to open context menu"
+ Call hCloseDocument
+ goto endsub
+ endcatch
Printlog " The graphic has to be selected and the context menu has to show graphics related commands"
Kontext "ImageMapEditor"
if Not ImageMapEditor.Exists(3) then
@@ -240,13 +247,13 @@ testcase tPickHyperlink
printlog " Empty clipboard"
SetClipBoard = ""
printlog " Insert a hyperlink in document"
- Call wTypeKeys "www.sun.com"
+ Call wTypeKeys "www.oracle.com"
Call wTypeKeys " "
Call wTypeKeys "<HOME>"
printlog " Open context menu on hyperlink"
Call wTypeKeys "<SHIFT F10>"
printlog " Last entry in menu has to be 'Open hyperlink' ...."
- CALL hMenuFindSelect (10955, true, 17, true) 'Find "Hyperlink-dialog" and call the slot.
+ CALL hMenuFindSelect (10955, false, 17, true) 'Find "Hyperlink-dialog" and call the slot.
kontext "TabHyperlinkInternet"
if TabHyperlinkInternet.Exists(3) then
Warnlog "Hyperlink-Dialog opened!"
diff --git a/testautomation/writer/optional/includes/drawing/w_drawing_tools2.inc b/testautomation/writer/optional/includes/drawing/w_drawing_tools2.inc
index 25a762297df7..08ebbfed45d4 100644
--- a/testautomation/writer/optional/includes/drawing/w_drawing_tools2.inc
+++ b/testautomation/writer/optional/includes/drawing/w_drawing_tools2.inc
@@ -283,7 +283,7 @@ testcase tGroup_6
Sleep 2
Call gMouseClick(80,80)
- Call wObjektSelektieren ( 28, 28, 70, 80 )
+ Call wObjektSelektieren ( 31, 31, 70, 80 )
Sleep 2
FormatGroupGroup
Sleep 1
@@ -351,7 +351,7 @@ testcase tGroup_7
Sleep 2
Call gMouseClick(80,80)
- Call wObjektSelektieren ( 28, 28, 70, 80 )
+ Call wObjektSelektieren ( 31, 31, 70, 80 )
Sleep 2
FormatGroupGroup
Sleep 1
@@ -667,7 +667,7 @@ testcase tEncapsulatedGroup_1
Sleep 1
Call wZeichenobjektEinfuegen("ELLIPSE", 40, 45, 60, 70, false)
Sleep 1
- Call wObjektSelektieren ( 28, 28, 70, 80 )
+ Call wObjektSelektieren ( 31, 31, 70, 80 )
Sleep 1
FormatGroupGroup
@@ -677,20 +677,37 @@ testcase tEncapsulatedGroup_1
PrintLog "- insert 2 drawing objects (rectangle and ellipse) in the group"
Call wZeichenobjektEinfuegen("RECHTECK", 35, 40, 38, 45, false)
- Call wZeichenobjektEinfuegen("ELLIPSE", 52, 40, 78, 45, false)
- Call wObjektSelektieren ( 28, 38, 80, 48 )
+ Call wZeichenobjektEinfuegen("ELLIPSE", 40, 40, 58, 45, false, true)
+ Call wObjektSelektieren ( 31, 31, 80, 80 )
+
+ Sleep 1
+ PrintLog "- generate a new group"
try
- PrintLog "- generate a new group"
FormatGroupGroup
- PrintLog "- edit the new group"
+ catch
+ Warnlog "Unable to execute Format / Group"
+ endcatch
+
+ PrintLog "- edit the new group"
+ try
FormatGroupEditGroup
- PrintLog "- leave the new group"
+ catch
+ Warnlog "Unable to execute Group / Enter Group"
+ endcatch
+
+ PrintLog "- leave the new group"
+ try
FormatGroupExitGroup
- PrintLog "- Undo the new group"
+ catch
+ Warnlog "Unable to exceute Format / Exit Group"
+ endcatch
+
+ PrintLog "- Undo the new group"
+ try
FormatGroupUnGroup
catch
- Warnlog "Something wrong where operating the Encapsulated group!"
+ Warnlog "Unable to execute Format / Ungroup"
endcatch
Call hCloseDocument
diff --git a/testautomation/writer/optional/includes/fields/w_fields1.inc b/testautomation/writer/optional/includes/fields/w_fields1.inc
index 2f727260b6c2..c6caf2c5fade 100755..100644
--- a/testautomation/writer/optional/includes/fields/w_fields1.inc
+++ b/testautomation/writer/optional/includes/fields/w_fields1.inc
@@ -151,13 +151,23 @@ testcase tInsertFieldsTime
if NOT Len(sTime2) > 7 then Warnlog "Time-format is wrong !"
printlog "Stop for a while ..."
+
'/// Stop for a while , check if the time is still correct
Sleep 2
+ ' update fields
+ Call wTypeKeys "<F9>"
+ ' read field content
Call wTypeKeys "<MOD1 Home>"
Call wTypeKeys "<Shift Right>"
EditCopy
if GetClipboard <> sTime1 then Warnlog "Fixed time is wrong !"
-
+
+ '/// Stop for a while , check if the time is still correct
+ Sleep 2
+ ' update fields
+ Call wTypeKeys "<F9>"
+ ' read field content
+ Call wTypeKeys "<MOD1 Home>"
Call wTypeKeys "<Down><Home>"
Call wTypeKeys "<Shift Right>"
EditCopy
diff --git a/testautomation/writer/required/includes/w_001b_.inc b/testautomation/writer/required/includes/w_001b_.inc
index 297d04b579bb..4d8e6883891a 100644
--- a/testautomation/writer/required/includes/w_001b_.inc
+++ b/testautomation/writer/required/includes/w_001b_.inc
@@ -198,6 +198,7 @@ testcase tFileSendOutlineToClipboard
PrintLog "Paste outline in new document"
hUseAsyncSlot( "EditPaste" )
+ WaitSlot(1000)
Call wTypeKeys("<Up>", 6)
Call wTypeKeys("<Home><Shift End>")
hUseAsyncSlot( "EditCopy" )
diff --git a/testautomation/writer/tools/includes/w_tools.inc b/testautomation/writer/tools/includes/w_tools.inc
index e6bd4f92afa0..cfe0aa6e07f3 100755
--- a/testautomation/writer/tools/includes/w_tools.inc
+++ b/testautomation/writer/tools/includes/w_tools.inc
@@ -141,11 +141,14 @@ end function
' -----------------------------------------------------------------------
-sub wZeichenobjektEinfuegen ( Objekt$, xStart%, yStart%, xEnde%, yEnde%, optional sCloseToolbar as boolean )
+sub wZeichenobjektEinfuegen ( Objekt$, xStart%, yStart%, xEnde%, yEnde%, optional sCloseToolbar as boolean, optional bLeaveSelected as boolean )
Kontext "DrawBar"
if Not DrawBar.Exists then Call hToolbarSelect("Drawing", true)
Sleep 2
+ if IsMissing(bLeaveSelected) then
+ bLeaveSelected = false
+ endif
Objekt = UCase( Objekt )
select case Objekt
@@ -187,8 +190,10 @@ sub wZeichenobjektEinfuegen ( Objekt$, xStart%, yStart%, xEnde%, yEnde%, optiona
end if
if Objekt <> "TEXT" and Objekt <> "VTEXT" then
Kontext "DocumentWriter"
- Call gMouseClick (10, 10)
- wait 100
+ if bLeaveSelected = false then
+ Call gMouseClick (10, 10)
+ wait 100
+ endif
end if
Case "MASTERDOCUMENT"
@@ -205,8 +210,10 @@ sub wZeichenobjektEinfuegen ( Objekt$, xStart%, yStart%, xEnde%, yEnde%, optiona
end if
if Objekt <> "TEXT" and Objekt <> "VTEXT" then
Kontext "DocumentMasterDoc"
- Call gMouseClick (10, 10)
- wait 100
+ if bLeaveSelected = false then
+ Call gMouseClick (10, 10)
+ wait 100
+ endif
end if
end select
sleep (1)
@@ -215,18 +222,21 @@ end sub
' -----------------------------------------------------------------------
sub wObjektSelektieren ( xStart%, yStart%, xEnde%, yEnde% )
- ' Call gMouseClick(90,90)
Call hToolbarSelect("DRAWING",true)
- Auswahl.Click
+ if Auswahl.Getstate(2) = 0 then
+ Auswahl.Click
+ endif
Select Case gApplication
Case "WRITER"
Kontext "DocumentWriter"
DocumentWriter.MouseDown xStart%, yStart%
+ wait 500
DocumentWriter.MouseMove xEnde%, yEnde%
DocumentWriter.MouseUp xEnde%, yEnde%
Case "MASTERDOCUMENT"
Kontext "DocumentMasterDoc"
DocumentMasterDoc.MouseDown xStart%, yStart%
+ wait 500
DocumentMasterDoc.MouseMove xEnde%, yEnde%
DocumentMasterDoc.MouseUp xEnde%, yEnde%
end select