summaryrefslogtreecommitdiff
path: root/testautomation/framework
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2010-06-18 13:09:52 +0200
committerThomas Lange [tl] <tl@openoffice.org>2010-06-18 13:09:52 +0200
commita83ebbd9b525459779930efdc23c7a05dce0b511 (patch)
tree529a79ba08f6b2d53baf7d4c12c2140d8f6b1756 /testautomation/framework
parent92408b42032982a21911e44443cef767272f9298 (diff)
parent924eab5afc99b0b0ecfa76ac4606a058e0d67328 (diff)
cws tl79: merge with DEV300_m83
Diffstat (limited to 'testautomation/framework')
-rwxr-xr-xtestautomation/framework/optional/includes/basic_gridcontrol.inc33
-rwxr-xr-xtestautomation/framework/optional/input/gridcontrol.odtbin12000 -> 12600 bytes
-rwxr-xr-xtestautomation/framework/required/includes/script_organizers.inc49
3 files changed, 67 insertions, 15 deletions
diff --git a/testautomation/framework/optional/includes/basic_gridcontrol.inc b/testautomation/framework/optional/includes/basic_gridcontrol.inc
index f2d2f74cbdd4..b23e2318d657 100755
--- a/testautomation/framework/optional/includes/basic_gridcontrol.inc
+++ b/testautomation/framework/optional/includes/basic_gridcontrol.inc
@@ -55,6 +55,7 @@ testcase tGridcontrolLoad
printlog "Start the macro, that performs the test"
Kontext "GridControlDialogStarter"
+ ' FAILS IF DOCUMENT IS READONLY....
ShowGridcontrol.typeKeys "<space>"
Kontext "GridControlDialog"
if GridControlDialog.exists(5) then
@@ -63,6 +64,37 @@ testcase tGridcontrolLoad
printlog " " + i + ":"+a+": '" + gridcontrolcontrol.getitemtype (i,a) + "' '" + gridcontrolcontrol.getitemtext (i,a) + "'"
next a
next i
+ gridcontrolcontrol.select 5
+
+ kontext
+ if active.exists(5) then
+ printlog active.gettext
+ active.ok
+ else
+ warnlog "No selection Event by .select"
+ endif
+
+ Kontext "GridControlDialog"
+ gridcontrolcontrol.typeKeys("<down>")
+
+ kontext
+ if active.exists(5) then
+ printlog active.gettext
+ active.ok
+ else
+ warnlog "No selection event by .typeKeys <down>"
+ endif
+ Kontext "GridControlDialog"
+ gridcontrolcontrol.typeKeys("<up>")
+ kontext
+ if active.exists(5) then
+ printlog active.gettext
+ active.ok
+ else
+ warnlog "No selection event by .typeKeys <up>"
+ endif
+
+ Kontext "GridControlDialog"
GridControlDialog.close
else
warnlog "Gridcontrol Dialog did not come up after pressing button"
@@ -75,3 +107,4 @@ testcase tGridcontrolLoad
endif
endcase
+
diff --git a/testautomation/framework/optional/input/gridcontrol.odt b/testautomation/framework/optional/input/gridcontrol.odt
index d11d70cfbc09..46be0c44a065 100755
--- a/testautomation/framework/optional/input/gridcontrol.odt
+++ b/testautomation/framework/optional/input/gridcontrol.odt
Binary files differ
diff --git a/testautomation/framework/required/includes/script_organizers.inc b/testautomation/framework/required/includes/script_organizers.inc
index feb72680c9c3..6d14b7f77f6e 100755
--- a/testautomation/framework/required/includes/script_organizers.inc
+++ b/testautomation/framework/required/includes/script_organizers.inc
@@ -32,21 +32,39 @@
'\******************************************************************************
testcase tUpdtScriptCount
+ dim sDialog as string
printlog( "Resource test for macros and scripts / related dialogs" )
const SCRIPTING_DIALOGS = 5
dim aScriptCount( SCRIPTING_DIALOGS )
+ ' JavaScript
aScriptCount( 1 ) = 10
+ ' BeanShell
aScriptCount( 2 ) = 14
- aScriptCount( 3 ) = 10
- if ( gOOo ) then
- aScriptCount( 4 ) = 585
- aScriptCount( 5 ) = 601
- else
- aScriptCount( 4 ) = 586
- aScriptCount( 5 ) = 602
- endif
+ if ( lcase( gPlatform ) = "osx" ) then
+ ' Python
+ aScriptCount( 3 ) = 8
+ else
+ ' Python
+ aScriptCount( 3 ) = 10
+ endif
+ if ( lcase( gPlatform ) = "osx" ) then
+ ' Run Macro
+ aScriptCount( 5 ) = 600
+ else
+ ' Run Macro
+ aScriptCount( 5 ) = 602
+ endif
+ if ( gOOo ) then
+ ' Makro Organizer
+ aScriptCount( 4 ) = 585
+ ' Run Macro
+ aScriptCount( 5 ) = aScriptCount( 5 ) - 1
+ else
+ ' Makro Organizer
+ aScriptCount( 4 ) = 586
+ endif
dim iCurrentDialog as integer
dim iCurrentScriptCount as integer
@@ -57,37 +75,39 @@ testcase tUpdtScriptCount
printlog( "" )
select case iCurrentDialog
- case 1: printlog( "JavaScript" )
+ case 1: sDialog = "JavaScript"
ToolsMacrosOrganizeMacrosJavaScript
kontext "ScriptOrganizer"
iCurrentScriptCount = hExpandAllNodes( ScriptTreeList )
ScriptOrganizer.cancel()
- case 2: printlog( "BeanShell" )
+ case 2: sDialog = "BeanShell"
ToolsMacrosOrganizeMacrosBeanShell
kontext "ScriptOrganizer"
iCurrentScriptCount = hExpandAllNodes( ScriptTreeList )
ScriptOrganizer.cancel()
- case 3: printlog( "Python" )
+ case 3: sDialog = "Python"
ToolsMacrosOrganizeMacrosPython
kontext "ScriptOrganizer"
iCurrentScriptCount = hExpandAllNodes( ScriptTreeList )
ScriptOrganizer.cancel()
- case 4: printlog( "Makro Organizer" )
+ case 4: sDialog = "Makro Organizer"
ToolsMacro_uno
Kontext "Makro"
hExpandAllNodes( MakroAus )
iCurrentScriptCount = hGetScriptCount( MakroAus, MakroListe )
Makro.close()
- case 5: printlog( "Run Macro" )
+ case 5: sDialog = "Run Macro"
ToolsMacrosRunMacro
kontext "ScriptSelector"
hExpandAllNodes( LibraryTreeList )
iCurrentScriptCount = hGetScriptCount( LibraryTreeList, ScriptList )
ScriptSelector.cancel()
end select
+
+ printlog sDialog
if ( aScriptCount( iCurrentDialog ) <> iCurrentScriptCount ) then
- warnlog( "Incorrect number of scripts for this dialog: " & iCurrentScriptCount )
+ warnlog( "Incorrect number of scripts for this dialog: '" + sDialog + "' expected:" + aScriptCount( iCurrentDialog ) + ", but is:" & iCurrentScriptCount )
else
printlog( "Number of scripts is ok" )
endif
@@ -95,7 +115,6 @@ testcase tUpdtScriptCount
next iCurrentDialog
hCloseDocument()
-
endcase