summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2011-01-03 13:09:08 +0100
committersb <sb@openoffice.org>2011-01-03 13:09:08 +0100
commitab514a1743c7d5c24182f1e38ecd44b8c059894b (patch)
tree58142ffc35bdc46d033366809fd2ff4318635697
parentc767c3cbeb4d18bdd4334fd23de446be86cb041d (diff)
parent0aea5f8fa50336696d98adfe70a0b3f06ffab90a (diff)
sb135: merged in DEV300_m96
-rw-r--r--qadevOOo/runner/graphical/OpenOfficeDatabaseReportExtractor.java21
-rw-r--r--qadevOOo/runner/org/openoffice/Runner.java2
-rw-r--r--[-rwxr-xr-x]testautomation/extensions/optional/includes/online_update.inc2
-rw-r--r--[-rwxr-xr-x]testautomation/extensions/optional/includes/publisher.inc4
-rw-r--r--testautomation/extensions/required/includes/e_update.inc14
-rw-r--r--testautomation/graphics/optional/includes/global/g_arrangealign.inc8
-rw-r--r--testautomation/graphics/optional/includes/global/g_character.inc16
-rw-r--r--testautomation/graphics/optional/includes/global/g_clipboard.inc9
-rw-r--r--testautomation/graphics/optional/includes/global/g_line.inc2
-rw-r--r--testautomation/graphics/optional/includes/global/g_tables.inc11
-rw-r--r--testautomation/graphics/optional/includes/global/g_tools.inc9
-rw-r--r--testautomation/graphics/optional/includes/impress/i_pengine.inc1
-rw-r--r--testautomation/graphics/optional/includes/impress/i_slidelayer.inc34
-rw-r--r--testautomation/graphics/optional/includes/impress/i_slideshow.inc6
-rw-r--r--testautomation/graphics/optional/includes/impress/i_slideshow3.inc2
-rw-r--r--testautomation/graphics/required/includes/global/id_opt_1.inc18
16 files changed, 99 insertions, 60 deletions
diff --git a/qadevOOo/runner/graphical/OpenOfficeDatabaseReportExtractor.java b/qadevOOo/runner/graphical/OpenOfficeDatabaseReportExtractor.java
index a0592d5ce143..c42a437028fc 100644
--- a/qadevOOo/runner/graphical/OpenOfficeDatabaseReportExtractor.java
+++ b/qadevOOo/runner/graphical/OpenOfficeDatabaseReportExtractor.java
@@ -373,13 +373,20 @@ public class OpenOfficeDatabaseReportExtractor extends Assurance
{
String sReportName = sElementNames[i];
XComponent xDoc = loadComponent(sReportName, _xNameAccess, _aPropertyList);
-// util.utils.shortWait(1000);
- // print? or store?
- String sDocumentPathName = storeComponent(sReportName, xDoc /*, _nType*/);
- aList.add(sDocumentPathName);
-// util.utils.shortWait(1000);
- closeComponent(xDoc);
-// util.utils.shortWait(1000);
+ if (xDoc != null)
+ {
+ // util.utils.shortWait(1000);
+ // print? or store?
+ String sDocumentPathName = storeComponent(sReportName, xDoc /*, _nType*/);
+ aList.add(sDocumentPathName);
+ // util.utils.shortWait(1000);
+ closeComponent(xDoc);
+ // util.utils.shortWait(1000);
+ }
+ else
+ {
+ System.out.println("Leave out maybe due to errors.");
+ }
// sBackPath contains the path where to find the extracted ODB Document
}
}
diff --git a/qadevOOo/runner/org/openoffice/Runner.java b/qadevOOo/runner/org/openoffice/Runner.java
index f6397deb3e2b..ca995bc9b4f4 100644
--- a/qadevOOo/runner/org/openoffice/Runner.java
+++ b/qadevOOo/runner/org/openoffice/Runner.java
@@ -184,7 +184,7 @@ public class Runner
public static boolean run(String... args)
{
- System.out.println("OOoRunner Main() version from 20100922 (yyyymmdd)");
+ System.out.println("OOoRunner Main() version from 20101118 (yyyymmdd)");
setStartTime(getTime());
diff --git a/testautomation/extensions/optional/includes/online_update.inc b/testautomation/extensions/optional/includes/online_update.inc
index 24739132beaa..ce3da2df0622 100755..100644
--- a/testautomation/extensions/optional/includes/online_update.inc
+++ b/testautomation/extensions/optional/includes/online_update.inc
@@ -82,7 +82,7 @@ testcase tExtensionUpdate
kontext "ExtensionUpdate"
if ( ExtensionUpdate.exists() ) then
printlog( "Close update-dialog. Good." )
- ExtensionUpdate.cancel()
+ ExtensionUpdate.close()
else
warnlog( "Extension update dialog is missing" )
endif
diff --git a/testautomation/extensions/optional/includes/publisher.inc b/testautomation/extensions/optional/includes/publisher.inc
index 739b28edaef8..4fec6ab1bab2 100755..100644
--- a/testautomation/extensions/optional/includes/publisher.inc
+++ b/testautomation/extensions/optional/includes/publisher.inc
@@ -155,7 +155,7 @@ testcase tExtensionPublisher
warnlog( "Update list for extensions is stalled (expected: 7), " & _
"found: " & AvailableUpdatesList.getItemCount() )
kontext "ExtensionUpdate"
- ExtensionUpdate.cancel()
+ ExtensionUpdate.close()
ExtensionUpdate.notExists( 2 )
kontext "PackageManager"
PackageManager.cancel()
@@ -258,7 +258,7 @@ testcase tExtensionPublisher
endif
kontext "ExtensionUpdate"
- ExtensionUpdate.cancel()
+ ExtensionUpdate.close()
ExtensionUpdate.notExists( 2 )
else
warnlog( "Extension Update dialog is not open" )
diff --git a/testautomation/extensions/required/includes/e_update.inc b/testautomation/extensions/required/includes/e_update.inc
index e563b5ae3a45..22fe13395413 100644
--- a/testautomation/extensions/required/includes/e_update.inc
+++ b/testautomation/extensions/required/includes/e_update.inc
@@ -44,7 +44,7 @@ testcase tExtensionManagerResources()
dim iFilterItems as integer
const MAX_ITERATIONS = 50
- const FILTER_ITEMS = 9 ' This is the number of filters/extension types we know
+ const FILTER_ITEMS = 10 ' This is the number of filters/extension types we know
printlog( "Ressource test for the Extension Manager UI" )
ToolsPackageManager
@@ -76,6 +76,16 @@ testcase tExtensionManagerResources()
warnlog( "The file type filter list is incorrect" )
printlog( "Expected: " & FILTER_ITEMS )
printlog( "Found...: " & iFilterItems )
+ '0: All files (*.*)
+ '1: Configuration Data
+ '2: Configuration Schema
+ '3: Extension
+ '4: UNO Components
+ '5: UNO Dynamic Library Component
+ '6: UNO Java Component
+ '7: UNO Java Type Library
+ '8: UNO Python Component
+ '9: UNO RDB Type Library
else
printlog( "The number of filters in Add Extensions Dialog is ok" )
endif
@@ -91,7 +101,7 @@ testcase tExtensionManagerResources()
kontext "ExtensionUpdate"
if ( ExtensionUpdate.exists( 2 ) ) then
call dialogtest( ExtensionUpdate )
- ExtensionUpdate.cancel()
+ ExtensionUpdate.close()
ExtensionUpdate.notExists( 3 )
else
warnlog( "Extenson Update dialog did not open" )
diff --git a/testautomation/graphics/optional/includes/global/g_arrangealign.inc b/testautomation/graphics/optional/includes/global/g_arrangealign.inc
index 1023ab88fd0a..929f139ed1ef 100644
--- a/testautomation/graphics/optional/includes/global/g_arrangealign.inc
+++ b/testautomation/graphics/optional/includes/global/g_arrangealign.inc
@@ -41,15 +41,15 @@ testcase tiDatei_Fuer_Anordnen_Erstellen
call hNewDocument
if gApplication = "DRAW" then
kontext "DocumentDraw"
- DocumentDraw.UseMenu
else
kontext "DocumentImpress"
DocumentImpress.UseMenu
+ hMenuSelectNr(4)
+ hMenuSelectNr(13)
+ call sSelectEmptyLayout
end if
- hMenuSelectNr(4)
- hMenuSelectNr(13)
- call sSelectEmptyLayout '/// new document ///'
+
if Dir(Datei)<>"" then app.Kill(Datei) ' kill old file
printlog "create 3 overlapping objects "
for Zaehler = 1 to 3
diff --git a/testautomation/graphics/optional/includes/global/g_character.inc b/testautomation/graphics/optional/includes/global/g_character.inc
index 8d58263c74d4..a1ee4285036b 100644
--- a/testautomation/graphics/optional/includes/global/g_character.inc
+++ b/testautomation/graphics/optional/includes/global/g_character.inc
@@ -404,35 +404,35 @@ testcase tSetFormatCharacter
Call hNewDocument
printlog "activate all languages in options "
- '///+ Tools->Options "
+ printlog " Tools->Options "
ToolsOptions
- '///+ select tabpage 'Languages' from set 'Language Settings' "
+ printlog " select tabpage 'Languages' from set 'Language Settings' "
hToolsOptions("LANGUAGESETTINGS","Languages")
kontext "TabSprachen"
- '///+ save state and check checkbox 'Asian languages support' "
+ printlog " save state and check checkbox 'Asian languages support' "
printlog "if the language is Asian, skip this part "
printlog "iSprache = " + iSprache
if bAsianLan = FALSE then
bAsian = Aktivieren.isEnabled
Aktivieren.check
endif
- '///+ save state and check checkbox 'Complex text layout (CTL) support' "
+ printlog " save state and check checkbox 'Complex text layout (CTL) support' "
bComplex = ComplexScriptEnabled.isEnabled
ComplexScriptEnabled.check
- '///+ close dialog 'Options' with OK "
+ printlog "close dialog 'Options' with OK "
Kontext "ExtrasOptionenDlg"
ExtrasOptionenDlg.OK
printlog "get count of languages "
- '///+ Format->Character "
+ printlog " Format->Character "
FormatCharacter
sleep 1
Kontext
- '///+ switch to tabpage 'Font' "
+ printlog "switch to tabpage 'Font' "
Messagebox.SetPage TabFont
kontext "TabFont"
sleep 1
- '///+ get count of languages for Western/Asian/CTL fonts "
+ printlog " get count of languages for Western/Asian/CTL fonts "
iWest = LanguageWest.getItemCount
iAsian = LanguageEast.getItemCount
iComplex = LanguageCTL.getItemCount
diff --git a/testautomation/graphics/optional/includes/global/g_clipboard.inc b/testautomation/graphics/optional/includes/global/g_clipboard.inc
index 70b387581329..d43c49610c26 100644
--- a/testautomation/graphics/optional/includes/global/g_clipboard.inc
+++ b/testautomation/graphics/optional/includes/global/g_clipboard.inc
@@ -136,7 +136,6 @@ testcase tiEditUndo
else
warnlog "File is missing."
endif
- Call hCloseDocument
printlog "Close document"
Call hCloseDocument
@@ -259,14 +258,14 @@ testcase tiEditClipboard
printlog "Get values for position variables"
Ueber_Text_4 = fGetPositionX()
Sleep 1
- printlog "<b> Edit->Copy </b>"
+ printlog " Edit->Copy"
EditCopy
- '///+ Type Key [Deletee]"
+ printlog " Type Key [Delete]"
hTypeKeys "<DELETE>"
- '///+ <i> Edit->Paste </i>"
+ printlog "Edit->Paste"
EditPaste
sleep 1
- '///+ Edit->Select All"
+ printlog "Edit->Select All"
EditSelectAll
sTemp = fGetPositionX()
printlog "TabPositionAndSize: comparing position with original position"
diff --git a/testautomation/graphics/optional/includes/global/g_line.inc b/testautomation/graphics/optional/includes/global/g_line.inc
index 2a6d5b315f89..eb672b3b9716 100644
--- a/testautomation/graphics/optional/includes/global/g_line.inc
+++ b/testautomation/graphics/optional/includes/global/g_line.inc
@@ -325,7 +325,7 @@ ZentriertLinks.Check
TabLinienenden.Cancel
sleep 2
- '///New part for line
+ 'New part for line
'EditSelectAll printlog "Select all objects in document"
'sleep 2
'hTypeKeys "<DELETE>" printlog "Delete objects"
diff --git a/testautomation/graphics/optional/includes/global/g_tables.inc b/testautomation/graphics/optional/includes/global/g_tables.inc
index 10774ab43d76..c3c8f99c551c 100644
--- a/testautomation/graphics/optional/includes/global/g_tables.inc
+++ b/testautomation/graphics/optional/includes/global/g_tables.inc
@@ -40,6 +40,9 @@ dim iItemIndex AS integer 'Counter for/next
testcase tiInsertTableUsingMenu
+qaerrorlog "#i116013# No table toolbar when inserting table via insert/table"
+goto endsub
+
printlog "Inserting table into doc using the menu."
Call hNewDocument
printlog "Switching between Draw/Impress"
@@ -60,6 +63,7 @@ testcase tiInsertTableUsingMenu
Kontext "InsertTableImpress"
if InsertTableImpress.Exists then
printlog "InsertTable Dialog is up."
+ InsertTableImpress.OK
else
warnlog "InsertTableDialog did not come up!"
endif
@@ -125,6 +129,9 @@ endcase 'tiInsertTableUsingMenu
testcase tiInsertTableUsingButton
+qaerrorlog "#i116013# No table toolbar when inserting table via insert/table"
+goto endsub
+
printlog " Inserting table using the button in standard toolbar."
Call hNewDocument
printlog "Open New Document."
@@ -204,6 +211,9 @@ endcase 'tiInsertTableUsingToolbarbutton
'-------------------------------------------------------------------------------
testcase tiTableObjectBar
+qaerrorlog "#i116013# No table toolbar when inserting table via insert/table"
+goto endsub
+
printlog "Testing TableObjectBar."
printlog "Inserting table into doc using the menu."
Call hNewDocument
@@ -244,6 +254,7 @@ testcase tiTableObjectBar
printlog "Table bar visible."
else
warnlog "Table bar is not up!"
+ ViewToolbarsTable
endif
printlog "Checking LinienStil."
diff --git a/testautomation/graphics/optional/includes/global/g_tools.inc b/testautomation/graphics/optional/includes/global/g_tools.inc
index 9faee3508c1b..e8e918b95cbb 100644
--- a/testautomation/graphics/optional/includes/global/g_tools.inc
+++ b/testautomation/graphics/optional/includes/global/g_tools.inc
@@ -459,11 +459,16 @@ endcase 'tiToolsHyphenation2
'-------------------------------------------------------------------------------
testcase tToolsMacro
+qaerrorlog( "#i116017# - [Automation]: TypeKeys executes wrong commands" )
+ goto endsub
+
+
Dim i as integer
Dim j as integer
Dim Zaehler as integer
Dim ZaehlerListe as integer
+ printlog "New document"
Call hNewDocument
ToolsMacro
@@ -474,7 +479,9 @@ testcase tToolsMacro
Zaehler=MakroAus.GetItemCount
MakroAus.typeKeys "<end>"
for i = 1 to Zaehler
- MakroAus.typeKeys "<+><up>"
+ MakroAus.typeKeys "<+>"
+ sleep 1
+ MakroAus.typeKeys "<up>"
next i
next j
Zaehler=MakroAus.GetItemCount
diff --git a/testautomation/graphics/optional/includes/impress/i_pengine.inc b/testautomation/graphics/optional/includes/impress/i_pengine.inc
index aed79a6ce827..2374ff28f572 100644
--- a/testautomation/graphics/optional/includes/impress/i_pengine.inc
+++ b/testautomation/graphics/optional/includes/impress/i_pengine.inc
@@ -210,7 +210,6 @@ testcase tSlideShowInteraction
setStartCurrentPage(FALSE) printlog "Set "start with current page to OFF"
printlog "call 'Insert->Slide' three times and name the slides 2, 3, 4 and create a rectangle on it "
- '///+ we now have 4 slides ?! :-)"
for i = 2 to 4
InsertSlide
sleep 2
diff --git a/testautomation/graphics/optional/includes/impress/i_slidelayer.inc b/testautomation/graphics/optional/includes/impress/i_slidelayer.inc
index 724aaa8b70a4..508394144663 100644
--- a/testautomation/graphics/optional/includes/impress/i_slidelayer.inc
+++ b/testautomation/graphics/optional/includes/impress/i_slidelayer.inc
@@ -49,23 +49,23 @@ testcase tiInsertExpandSlide
ViewWorkspaceOutlineView
Sleep 1
Kontext "DocumentImpressOutlineView"
- '///+ create a slide with some levels...and some more slides with just one level... "
- '///+ it should look like this: "
- '///+-------------------------------------------------- "
- '///+ Slide 1"
- '///+ - A "
- '///+ - - B"
- '///+ - - - C"
- '///+ - - - - D"
- '///+ - - - - - - F"
- '///+ - B"
- '///+ - C"
- '///+ - D"
- '///+ Slide 2 "
- '///+ Slide 3 "
- '///+ Slide 4 "
- '///+ Slide 5 "
- '///+-------------------------------------------------- "
+ 'create a slide with some levels...and some more slides with just one level... "
+ 'it should look like this: "
+ '-------------------------------------------------- "
+ 'Slide 1"
+ ' - A "
+ '- - B"
+ ' - - - C"
+ ' - - - - D"
+ ' - - - - - - F"
+ ' - B"
+ ' - C"
+ ' - D"
+ ' Slide 2 "
+ ' Slide 3 "
+ ' Slide 4 "
+ ' Slide 5 "
+ '-------------------------------------------------- "
DocumentImpressOutlineView.TypeKeys "Slide 1"
for i = 1 to 6
DocumentImpressOutlineView.TypeKeys "<return><tab>"
diff --git a/testautomation/graphics/optional/includes/impress/i_slideshow.inc b/testautomation/graphics/optional/includes/impress/i_slideshow.inc
index 2c51a83a509a..da96b13cc47d 100644
--- a/testautomation/graphics/optional/includes/impress/i_slideshow.inc
+++ b/testautomation/graphics/optional/includes/impress/i_slideshow.inc
@@ -1092,7 +1092,7 @@ testcase tSlideShowSlideTransition
select case i
case 1: printlog " click button 'Automatic Transition' "
if (TransitionAutomaticallyAfter.IsEnabled) then
- '///+ - + + Check Time '1' OR "
+ printlog " Check Time '1' OR "
sTemp = TransitionAutomaticallyAfterTime.GetText
if (sTemp <> TimerValue) then
Warnlog " Time is different :-( is: '" + sTemp + "' should be: '" + TimerValue + "'" '"00:00:01"
@@ -1101,11 +1101,11 @@ testcase tSlideShowSlideTransition
Warnlog " button 'Automatic Transition' not pressed ?"
end if
case 2: if (TransitionAutomaticallyAfter.IsChecked <> FALSE) then
- '///+ - + check button 'SemiAutomatic Transition' OR "
+ printlog " check button 'SemiAutomatic Transition' OR "
Warnlog " button 'Automatic Transition' is pressed ?"
end if
case 3: if (TransitionAutomaticallyAfter.IsChecked <> FALSE) then
- '///+ - + click button 'Manual Transition' "
+ printlog "click button 'Manual Transition' "
Warnlog " button 'Automatic Transition' is pressed ?"
end if
end select
diff --git a/testautomation/graphics/optional/includes/impress/i_slideshow3.inc b/testautomation/graphics/optional/includes/impress/i_slideshow3.inc
index 07ac2f0d9def..52858e22e7cf 100644
--- a/testautomation/graphics/optional/includes/impress/i_slideshow3.inc
+++ b/testautomation/graphics/optional/includes/impress/i_slideshow3.inc
@@ -560,7 +560,7 @@ testcase tExtrasPraesentationseinstellungen
printlog " Check state of navigator ! Expected: closed"
Kontext "Navigator"
if Navigator.exists then
- '///+ Close Navigator !"
+ printlog " Close Navigator !"
Navigator.Close
Warnlog "Navigator: Should have been closed. Closing now."
else
diff --git a/testautomation/graphics/required/includes/global/id_opt_1.inc b/testautomation/graphics/required/includes/global/id_opt_1.inc
index dcb6c38795bb..35874fe0495f 100644
--- a/testautomation/graphics/required/includes/global/id_opt_1.inc
+++ b/testautomation/graphics/required/includes/global/id_opt_1.inc
@@ -84,13 +84,17 @@ testcase tToolsOptionsDrawGeneral (sApplication as string)
Tabulatorabstand.SetText (sTabAbstand)
if (gApplication = "DRAW") then
+ printlog "Index Zeichnungsmasstab= " & iZeichnungsmasstab
+ printlog "Zeichnungsmasstab Item Count= " & (Zeichnungsmasstab.GetItemCount)
If ( Zeichnungsmasstab.GetItemCount <> iZeichnungsmasstab ) Then
- Zeichnungsmasstab.Select (Zeichnungsmasstab.GetItemCount) _
- Else Zeichnungsmasstab.Select (1)
- iTemp2 = Zeichnungsmasstab.GetSelIndex
- if irgendwas(6) Then SetzenAufKreis.UnCheck Else SetzenAufKreis.Check
+ Zeichnungsmasstab.Select (Zeichnungsmasstab.GetItemCount)
+ Else
+ Zeichnungsmasstab.Select (1)
endif
- else ' IMPRESS
+ iTemp2 = Zeichnungsmasstab.GetSelIndex
+ printlog "iTemp2= " & iTemp2
+ if irgendwas(6) Then SetzenAufKreis.UnCheck Else SetzenAufKreis.Check
+ else ' IMPRESS
if irgendwas(7) Then MitAutopilotStarten.UnCheck Else MitAutopilotStarten.Check
if irgendwas(8) Then MitAktuellerSeite.UnCheck Else MitAktuellerSeite.Check
if irgendwas(9) Then AlleAbsatzabstaendeAddieren.UnCheck Else AlleAbsatzabstaendeAddieren.Check
@@ -110,7 +114,7 @@ testcase tToolsOptionsDrawGeneral (sApplication as string)
Kontext "ExtrasOptionenDlg"
ExtrasOptionenDlg.OK
- printlog "Office quit - start"
+ printlog "-------> Office quit - start"
ExitRestartTheOffice
printlog "opening new doc to get the Options"
@@ -127,6 +131,8 @@ testcase tToolsOptionsDrawGeneral (sApplication as string)
If ( irgendwas(5) = ObjekteImmerVerschiebbar.IsChecked ) Then WarnLog "Objects Always Movable state changed"
if (gApplication = "DRAW") then
+ printlog "Index Zeichnungsmasstab= " & (Zeichnungsmasstab.GetSelIndex)
+ printlog "iTemp2= " & iTemp2
If ( Zeichnungsmasstab.GetSelIndex <> iTemp2 ) Then WarnLog "Drawing Scale state changed BUG #97391 is:"+Zeichnungsmasstab.GetSelIndex+"; should: "+iTemp2
If ( irgendwas(6) = SetzenAufKreis.IsChecked ) Then WarnLog "'Do not disort objects in curve' state changed"
else ' IMPRESS