summaryrefslogtreecommitdiff
path: root/testautomation/extensions/optional
diff options
context:
space:
mode:
Diffstat (limited to 'testautomation/extensions/optional')
-rwxr-xr-x[-rw-r--r--]testautomation/extensions/optional/includes/publisher.inc97
-rw-r--r--[-rwxr-xr-x]testautomation/extensions/optional/input/dependencies/version30.oxtbin766 -> 1493 bytes
-rw-r--r--testautomation/extensions/optional/input/dependencies/version31.oxtbin1440 -> 1495 bytes
-rw-r--r--testautomation/extensions/optional/input/dependencies/version310.oxtbin0 -> 1493 bytes
-rw-r--r--testautomation/extensions/optional/input/dependencies/version33.oxtbin0 -> 1494 bytes
-rw-r--r--testautomation/extensions/optional/input/dependencies/version330.oxtbin0 -> 1494 bytes
-rw-r--r--testautomation/extensions/optional/input/dependencies/version34.oxtbin0 -> 1494 bytes
-rw-r--r--[-rwxr-xr-x]testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/genfiles.properties1
-rw-r--r--[-rwxr-xr-x]testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/private/private.properties1
-rw-r--r--[-rwxr-xr-x]testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project-uno.properties1
-rw-r--r--[-rwxr-xr-x]testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project.properties1
-rwxr-xr-xtestautomation/extensions/optional/input/files.txt7
-rw-r--r--testautomation/extensions/optional/input/issues/111434.oxtbin0 -> 1166 bytes
13 files changed, 59 insertions, 49 deletions
diff --git a/testautomation/extensions/optional/includes/publisher.inc b/testautomation/extensions/optional/includes/publisher.inc
index fcf4400ae748..ca8e31bb07b6 100644..100755
--- a/testautomation/extensions/optional/includes/publisher.inc
+++ b/testautomation/extensions/optional/includes/publisher.inc
@@ -43,15 +43,15 @@ testcase tExtensionPublisher
' Specification document
' http://specs.openoffice.org/appwide/packagemanager/online_update_for_extensions.odt
' http://specs.openoffice.org/appwide/packagemanager/online_update_for_extensions.odt
-
+
' This is the path where the test-extensions and the info file are located
dim cBasePath as string
cBasePath = gTesttoolPath & "extensions/optional/input/publisher/"
cBasePath = convertpath( cBasePath )
-
+
' Modify this file to add test cases or attributes
dim cInfoFile as string : cinfoFile = cBasePath & "extension.info"
-
+
' The number of files to test. Information about this is stored in the file
' specified by cInfoFile
dim iFileCount as integer
@@ -60,72 +60,73 @@ testcase tExtensionPublisher
dim iExitCounter as integer
dim iCurrentExtensionCount as integer : iCurrentExtensionCount = 0
dim iTry as integer
-
+
' This is the data we get from the configuration file
dim cCurrentFileName as string
dim cHasReleaseNotes as string
dim cReleaseNotes as string
dim cHasPublisher as string
dim cPublisher as string
-
+
' This is where we store the configuration data. This array must have more
' lines than cInfoFile contains.
dim cConfigArray( 60 ) as string
-
+
dim cTestString as string
dim bInstallationComplete as boolean : bInstallationComplete = false
-
+
iExtensionCount = hGetExtensionCount()
-
-
+
+
hGetDataFileSection( cInfoFile, cConfigArray(), "info", "", "" )
iFileCount = int( hGetValueForKeyAsString( cConfigArray() , "filecount" ) )
printlog( cInfoFile & " specifies " & iFileCount & " documents to load" )
-
+
iExtensionCount = iExtensionCount + iFileCount
printlog( "Expected number of extensions after installation: " & iExtensionCount )
printlog( "Installing extensions" )
for iCurrentFile = 1 to iFileCount
-
+
hGetDataFileSection( cInfoFile, cConfigArray(), iCurrentFile, "", "" )
cCurrentFileName = hGetValueForKeyAsString( cConfigArray() , "file" )
cCurrentFileName = cBasePath & cCurrentFileName
sExtensionCLI( "add" , cCurrentFileName )
wait 1000 ' This is required, sExtensionCLI is asynchronous.
-
+
next iCurrentFile
printlog( "Finished installing extensions, now verifying..." )
-
+
hNewDocument()
ToolsPackageManager
-
+
kontext "PackageManager"
if ( PackageManager.exists( 3 ) ) then
-
- for iTry = 1 to 30
-
+
+ for iTry = 1 to 30
+
iCurrentExtensionCount = BrowsePackages.getItemCount()
-
+
if ( iCurrentExtensionCount = iExtensionCount ) then
printlog( "All extensions have been installed, good." )
bInstallationComplete = true
exit for
endif
-
+
printlog( "Waiting for listbox: Number of extensions: " & iCurrentExtensionCount )
-
+ wait( 1000 ) ' Required, the list takes considerable time to fill.
+
next iTry
-
+
' If one or more extensions have not been added to the list we better abort the
' test as the remaining parts need all extensions to be installed causing
' lots of cryptig errors to appear in the log.
if ( not bInstallationComplete ) then
warnlog( "Not all extensions have been installed. Aborting test." )
- kontext "PackageManager"
+ kontext "PackageManager"
if ( PackageManager.exists() ) then
PackageManager.cancel()
- PackageManager.notExists( 2 )
+ PackageManager.notExists( 2 )
endif
goto endsub
endif
@@ -133,24 +134,24 @@ testcase tExtensionPublisher
warnlog( "The Extension Manager did not open, Aborting test" )
goto endsub
endif
-
-
+
+
kontext "PackageManager"
printlog( "Going for the update-dialog" )
if ( Updates.isEnabled() ) then
-
+
printlog( "Updates-button is enabled" )
Updates.click()
-
+
kontext "ExtensionUpdate"
if ( ExtensionUpdate.exists( 2 ) ) then
-
+
iExitCounter = 0
- do while ( AvailableUpdatesList.getItemCount() < iFileCount )
+ do while ( AvailableUpdatesList.getItemCount() < iFileCount )
printlog( "Waiting for Updates List to populate..." )
wait( 1000 )
iExitCounter = iExitCounter + 1
- if ( iExitCounter = 200 ) then
+ if ( iExitCounter = 200 ) then
warnlog( "Update list for extensions is stalled (expected: 7), " & _
"found: " & AvailableUpdatesList.getItemCount() )
kontext "ExtensionUpdate"
@@ -162,7 +163,7 @@ testcase tExtensionPublisher
goto endsub
endif
loop
-
+
if ( ShowAllUpdates.exists() ) then
if ( ShowAllUpdates.isEnabled() ) then
warnlog( """Show all updates"" should be disabled" )
@@ -172,29 +173,29 @@ testcase tExtensionPublisher
else
qaerrorlog( """Show all updates"" checkbox could not be accessed" )
endif
-
+
if ( AvailableUpdatesList.isEnabled() ) then
-
+
printlog( "Available updates list populated in " & iExitCounter & " seconds" )
-
+
if ( iExitCounter < 20 ) then
for iCurrentFile = 1 to iFileCount
-
+
hGetDataFileSection( cInfoFile, cConfigArray(), iCurrentFile, "", "" )
cCurrentFileName = hGetValueForKeyAsString( cConfigArray() , "display_name" )
-
+
cHasReleaseNotes = hGetValueForKeyAsString( cConfigArray() , "has_release_notes" )
cReleaseNotes = hGetValueForKeyAsString( cConfigArray() , "release_notes" )
-
+
cHasPublisher = hGetValueForKeyAsString( cConfigArray() , "has_publisher" )
cPublisher = hGetValueForKeyAsString( cConfigArray() , "publisher" )
-
+
AvailableUpdatesList.select( iCurrentFile )
-
+
if ( AvailableUpdatesList.getText() = cCurrentFileName ) then
printlog( "Testing extension: " & cCurrentFileName )
-
+
if ( lcase( cHasReleaseNotes ) = "yes" ) then
if ( ReleaseNotesText.isVisible() ) then
printlog( " - Release notes text is visible. Good." )
@@ -217,7 +218,7 @@ testcase tExtensionPublisher
printlog( " - No release notes for this extension." )
endif
endif
-
+
if ( lcase( cHasPublisher ) = "yes" ) then
if ( UpdatePublisherText.isVisible() ) then
printlog( " - Publisher text is visible. Good." )
@@ -240,14 +241,14 @@ testcase tExtensionPublisher
printlog( " - No Publisher for this extension." )
endif
endif
-
+
else
- warnlog( "The extension is not at the expected position" )
+ printlog( "The extension is not at the expected position" )
printlog( "Expected: " & cCurrentFileName )
printlog( "Found...: " & AvailableUpdatesList.getText() )
exit for
endif
-
+
next iCurrentFile
else
warnlog( "Updates list not fully populated in 15 seconds -> fail" )
@@ -262,15 +263,15 @@ testcase tExtensionPublisher
else
warnlog( "Extension Update dialog is not open" )
endif
-
+
else
warnlog( "Update-button on extension manager ui is disabled" )
endif
-
+
kontext "PackageManager"
PackageManager.close()
PackageManager.notExists( 2 )
-
+
printlog( "Removing extensions" )
for iCurrentFile = 1 to iFileCount
hGetDataFileSection( cInfoFile, cConfigArray(), iCurrentFile, "", "" )
@@ -278,7 +279,7 @@ testcase tExtensionPublisher
sExtensionCLI( "remove" , cCurrentFileName )
next iCurrentFile
printlog( "Finished removing extensions" )
-
+
hFileCloseAll()
endcase
diff --git a/testautomation/extensions/optional/input/dependencies/version30.oxt b/testautomation/extensions/optional/input/dependencies/version30.oxt
index 8750e712f8cd..59b8dc545973 100755..100644
--- a/testautomation/extensions/optional/input/dependencies/version30.oxt
+++ b/testautomation/extensions/optional/input/dependencies/version30.oxt
Binary files differ
diff --git a/testautomation/extensions/optional/input/dependencies/version31.oxt b/testautomation/extensions/optional/input/dependencies/version31.oxt
index 870b4cc97a9a..843cb02f10ec 100644
--- a/testautomation/extensions/optional/input/dependencies/version31.oxt
+++ b/testautomation/extensions/optional/input/dependencies/version31.oxt
Binary files differ
diff --git a/testautomation/extensions/optional/input/dependencies/version310.oxt b/testautomation/extensions/optional/input/dependencies/version310.oxt
new file mode 100644
index 000000000000..40b66db99b65
--- /dev/null
+++ b/testautomation/extensions/optional/input/dependencies/version310.oxt
Binary files differ
diff --git a/testautomation/extensions/optional/input/dependencies/version33.oxt b/testautomation/extensions/optional/input/dependencies/version33.oxt
new file mode 100644
index 000000000000..11525f5be3bd
--- /dev/null
+++ b/testautomation/extensions/optional/input/dependencies/version33.oxt
Binary files differ
diff --git a/testautomation/extensions/optional/input/dependencies/version330.oxt b/testautomation/extensions/optional/input/dependencies/version330.oxt
new file mode 100644
index 000000000000..abc13cdc07a2
--- /dev/null
+++ b/testautomation/extensions/optional/input/dependencies/version330.oxt
Binary files differ
diff --git a/testautomation/extensions/optional/input/dependencies/version34.oxt b/testautomation/extensions/optional/input/dependencies/version34.oxt
new file mode 100644
index 000000000000..e14671c77e92
--- /dev/null
+++ b/testautomation/extensions/optional/input/dependencies/version34.oxt
Binary files differ
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/genfiles.properties b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/genfiles.properties
index e4e5fc11997d..2f144fe1f264 100755..100644
--- a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/genfiles.properties
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/genfiles.properties
@@ -1,3 +1,4 @@
+# x-no-translate
build.xml.data.CRC32=2b754fcd
build.xml.script.CRC32=0a20deac
build.xml.stylesheet.CRC32=d5b6853a
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/private/private.properties b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/private/private.properties
index c090eb0e8f9c..1b26762e782d 100755..100644
--- a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/private/private.properties
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/private/private.properties
@@ -1,3 +1,4 @@
+# x-no-translate
compile.on.save=false
do.depend=false
do.jar=true
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project-uno.properties b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project-uno.properties
index 35a0535e7d02..8abadd201d42 100755..100644
--- a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project-uno.properties
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project-uno.properties
@@ -1,3 +1,4 @@
+# x-no-translate
uno.project.type=office.component.project
project.name=TaskPaneComponent
registration.classname=com.example.TaskPaneComponent
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project.properties b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project.properties
index b6059cf3113c..7ca12dec0468 100755..100644
--- a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project.properties
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project.properties
@@ -1,3 +1,4 @@
+# x-no-translate
application.args=
application.title=TaskPaneComponent
application.vendor=qamsc
diff --git a/testautomation/extensions/optional/input/files.txt b/testautomation/extensions/optional/input/files.txt
index 5e37bbd64659..369cb99b74d2 100755
--- a/testautomation/extensions/optional/input/files.txt
+++ b/testautomation/extensions/optional/input/files.txt
@@ -29,8 +29,12 @@ dependencies\version25.oxt;0,0,1,0,0
dependencies\version30.oxt;0,0,1,0,0
dependencies\version300.oxt;0,0,1,0,0
dependencies\version301.oxt;0,0,1,0,0
+dependencies\version310.oxt;0,0,1,0,0
+dependencies\version330.oxt;0,0,1,0,0
dependencies\versionempty.oxt;0,0,1,0,0
-dependencies\version31.oxt;1,0,0,0,0
+dependencies\version31.oxt;0,0,1,0,0
+dependencies\version33.oxt;0,0,1,0,0
+dependencies\version34.oxt;1,0,0,0,0
dependencies\version937.oxt;1,0,0,0,0
dependencies\versionnone.oxt;0,0,1,0,0
versions/plain.oxt;0,0,1,0,0
@@ -43,3 +47,4 @@ versions/version_1.2.4.7/plain.oxt;0,0,1,0,2
versions/version_1.02.4.7.0/plain.oxt;0,0,1,0,1
versions/version_1.2.3/plain.oxt;0,0,1,0,2
versions/version_1.2.15.3/plain.oxt;0,0,1,0,2
+issues/111434.oxt;0,1,1,0,0
diff --git a/testautomation/extensions/optional/input/issues/111434.oxt b/testautomation/extensions/optional/input/issues/111434.oxt
new file mode 100644
index 000000000000..d88965e803f1
--- /dev/null
+++ b/testautomation/extensions/optional/input/issues/111434.oxt
Binary files differ