summaryrefslogtreecommitdiff
path: root/smoketestoo_native
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2006-12-01 15:32:41 +0000
committerRüdiger Timm <rt@openoffice.org>2006-12-01 15:32:41 +0000
commit53240e34a969800ac3197a14875b0faace1949ed (patch)
tree1db050a500ccfd1bd46f4715708fdfb7d24e4d9b /smoketestoo_native
parent7669b13ed648051b784bf08b63f536f55e1141d9 (diff)
INTEGRATION: CWS smoketest11 (1.5.6); FILE MERGED
2006/11/27 19:58:13 kz 1.5.6.2: #i71115# fixes 2006/11/27 16:06:02 kz 1.5.6.1: #i71115# new test for extensions
Diffstat (limited to 'smoketestoo_native')
-rwxr-xr-xsmoketestoo_native/data/scripts/Global.xba42
1 files changed, 39 insertions, 3 deletions
diff --git a/smoketestoo_native/data/scripts/Global.xba b/smoketestoo_native/data/scripts/Global.xba
index 361694d775d7..ed2b4da08ecc 100755
--- a/smoketestoo_native/data/scripts/Global.xba
+++ b/smoketestoo_native/data/scripts/Global.xba
@@ -7,15 +7,19 @@ const cMaxErrorStates = 13
const cCoGreen = 4057917, cCoRed = 16711680, cCoGrey = 12632256
const cParagraphBreak = 0
+global const cExtensionFileName = &quot;TestExtension.oxt&quot;
+
global const cDocNew = 0, cDocCut = 1, cDocPaste = 2, cDocSaveOpen8 = 3, cDocSaveOpenXML = 4, cDocSaveOpen50 = 5, cDocClose = 6, cDocWrite = 7
global const cNewsInit = 0, cNewsSend = 1, cNewsRead = 2
global const cDBService = 0, cDBOpen = 1, cDBInsert = 2, cDBDelete = 3, cDBSeek = 4, cDBClose = 5
+global const cEXTService = 0, cEXTInstall = 1, cEXTUninstall = 2
global const cScheduleDateRead = 0
global const cLogfileFailed = 255
global const cStWriter = 0, cStCalc = 1, cStPraesentation = 2, cStZeichnen = 3
-global const cStMessage = 11, cStHTML = 6, cStChart = 4, cStJava = 7
+global const cStMessage = 12, cStHTML = 6, cStChart = 4, cStJava = 7
global const cStMath = 5, cStNews = 10, cStSchedule = 8, cStDataBase = 9
+global const cStExtension = 11
global const cStNone = -1
global const cFlt8 = 0, cFlt50 = 32, cFltNewDoc = 64, cFltXML = 128
@@ -23,6 +27,7 @@ global const cFlt8 = 0, cFlt50 = 32, cFltNewDoc = 64, cFltXML = 128
global const frmWriter = 1, frmCalc = 2, frmMessage = 3, frmImpress = 4
global const frmMath = 5, frmImage = 6, frmChart = 7, frmHyperText = 8, frmDraw = 9
global const frmDataBase = 10, frmSchedule = 11, frmNews = 12, frmJava = 13
+global const frmExtension = 14
global const cLogUnknown = 0, cLogFalse = 1, cLogTrue = 2
@@ -45,11 +50,15 @@ Global const cUnoTextGraphi2 = cUnoPrefix + &quot;text.Graphic&quot;
Global const cUnoJavaLoader = cUnoPrefix + &quot;loader.Java&quot;
Global const cUnoDatabaseContext = cUnoPrefix + &quot;sdb.DatabaseContext&quot;
Global const cUnoRowSet = cUnoPrefix + &quot;sdb.RowSet&quot;
+Global const cUnoSmoketestTestExtension = cUnoPrefix + &quot;comp.smoketest.TestExtension&quot;
+Global const cUnoSmoketestCommandEnvironment = cUnoPrefix + &quot;deployment.test.SmoketestCommandEnvironment&quot;
+Global const cUnothePackageManagerFactory = cUnoPrefix + &quot;deployment.thePackageManagerFactory&quot;
&apos;UserFieldNames
Global const cUserFieldTestWriter = &quot;Writer&quot;, cUserFieldTestCalc = &quot;Calc&quot;, cUserFieldTestImpress = &quot;Impress&quot;
Global const cUserFieldTestDraw = &quot;Draw&quot;, cUserFieldTestMath = &quot;Math&quot;, cUserFieldTestChart = &quot;Chart&quot;
Global const cUserFieldTestHTML = &quot;HTML&quot;, cUserFieldTestJava = &quot;Java&quot;, cUserFieldTestDatabase = &quot;Database&quot;
+Global const cUserFieldTestExtension = &quot;Extension&quot;
Global const cUserFieldTestOpenSaveXML = &quot;SaveOpenXML&quot;, cUserFieldTestOpenSave50 = &quot;SaveOpen50&quot;, cUserFieldTestCut = &quot;Cut&quot;
Global const cUserFieldTestPaste = &quot;Paste&quot;, cUserFieldTestTerminateAfterTest = &quot;Terminate&quot;, cUserFieldTestOpenSave8 = &quot;SaveOpen8&quot;
@@ -68,10 +77,13 @@ Dim bTestSchedule as Boolean, bTestAdr as Boolean
Global bMakeWriterTest as boolean, bMakeCalcTest as boolean, bMakeImpressTest as boolean
Global bMakeDrawTest as Boolean, bMakeMathTest as boolean, bMakeChartTest as boolean
Global bMakeHTMLTest as boolean, bMakeJavaTest as boolean, bMakeDBTest as boolean
+Global bMakeExtensionTest as boolean
Global bMakeSaveOpenXMLTest as boolean, bMakeSaveOpen50Test as boolean, bMakeCutTest as boolean
Global bMakePasteTest as boolean, bMakeTerminateAfterTest as boolean, bShowTable as boolean
Global bMakeSaveOpen8Test as boolean
+global sExtensionURL as string
+
Dim gDlgState as Integer
Sub SetGlobalDoc
@@ -192,7 +204,7 @@ Sub CreateStatusTable2
dim tableHeaders(5) as string
tableHeaders(cStDataBase-9) = &quot;Database&quot;
tableHeaders(1) = &quot;&quot;
- tableHeaders(2) = &quot;&quot;
+ tableHeaders(cStExtension-9) = &quot;Extension&quot;
tableHeaders(3) = &quot;&quot;
tableHeaders(4) = &quot;&quot;
@@ -204,6 +216,11 @@ Sub CreateStatusTable2
tableColums(cDBSeek ) = &quot;seek&quot;
tableColums(cDBClose ) = &quot;close&quot;
+ dim tableColums2(3) as string
+ tableColums2(cEXTService ) = &quot;services&quot;
+ tableColums2(cEXTInstall ) = &quot;install&quot;
+ tableColums2(cEXTUninstall ) = &quot;uninstall&quot;
+
aDoc = gOutPutDoc
xText = aDoc.Text
@@ -253,6 +270,19 @@ Sub CreateStatusTable2
xCell.BackTransparent = False
xCell.BackColor = cCoGrey
next i%
+
+ tableCursor.gotoStart(FALSE)
+ tableCursor.goRight(2,FALSE)
+
+ for i% = 0 to 3
+ tableCursor.goDown(1,FALSE)
+ cName = tableCursor.getRangeName()
+ xCell = table.getCellByName(cName)
+ xCell.String=tableColums2(i%)
+
+ xCell.BackTransparent = False
+ xCell.BackColor = cCoGrey
+ next i%
end Sub
@@ -361,6 +391,8 @@ Function GetStatusType (nDocType as Integer) as Integer
GetStatusType = cStNews &apos;News
case frmDataBase
GetStatusType = cStDataBase &apos;DataBase
+ case frmExtension
+ GetStatusType = cStExtension &apos;Extension
case else
GetStatusType = cStNone
end Select
@@ -455,6 +487,7 @@ Sub SetOptions
SetUserFieldState (cUserFieldTestChart, -(gOptionsDialog.getControl(&quot;cbChartTest&quot;).getState), gOutPutDoc)
SetUserFieldState (cUserFieldTestJava, -(gOptionsDialog.getControl(&quot;cbJavaTest&quot;).getState), gOutPutDoc)
SetUserFieldState (cUserFieldTestDatabase, -(gOptionsDialog.getControl(&quot;cbDatabaseTest&quot;).getState), gOutPutDoc)
+ SetUserFieldState (cUserFieldTestExtension, -(gOptionsDialog.getControl(&quot;cbExtensionTest&quot;).getState), gOutPutDoc)
SetUserFieldState (cUserFieldTestOpenSaveXML, -(gOptionsDialog.getControl(&quot;cbSaveOpenXMLTest&quot;).getState), gOutPutDoc)
SetUserFieldState (cUserFieldTestOpenSave50, -(gOptionsDialog.getControl(&quot;cbSaveOpen50Test&quot;).getState), gOutPutDoc)
SetUserFieldState (cUserFieldTestOpenSave8, -(gOptionsDialog.getControl(&quot;cbSaveOpen8Test&quot;).getState), gOutPutDoc)
@@ -474,6 +507,7 @@ Sub GetOptions
gOptionsDialog.getControl(&quot;cbChartTest&quot;).setState( -( GetUserFieldState (cUserFieldTestChart, gOutPutDoc)))
gOptionsDialog.getControl(&quot;cbJavaTest&quot;).setState( -( GetUserFieldState (cUserFieldTestJava, gOutPutDoc)))
gOptionsDialog.getControl(&quot;cbDatabaseTest&quot;).setState( -( GetUserFieldState (cUserFieldTestDatabase, gOutPutDoc)))
+ gOptionsDialog.getControl(&quot;cbExtensionTest&quot;).setState( -( GetUserFieldState (cUserFieldTestExtension, gOutPutDoc)))
gOptionsDialog.getControl(&quot;cbSaveOpenXMLTest&quot;).setState( -( GetUserFieldState (cUserFieldTestOpenSaveXML, gOutPutDoc)))
gOptionsDialog.getControl(&quot;cbSaveOpen50Test&quot;).setState( -( GetUserFieldState (cUserFieldTestOpenSave50, gOutPutDoc)))
gOptionsDialog.getControl(&quot;cbSaveOpen8Test&quot;).setState( -( GetUserFieldState (cUserFieldTestOpenSave8, gOutPutDoc)))
@@ -494,6 +528,7 @@ Sub ReadOptions
bMakeChartTest = GetUserFieldState (cUserFieldTestChart, gOutPutDoc)
bMakeJavaTest = GetUserFieldState (cUserFieldTestJava, gOutPutDoc)
bMakeDBTest = GetUserFieldState (cUserFieldTestDatabase, gOutPutDoc)
+ bMakeExtensionTest = GetUserFieldState (cUserFieldTestExtension, gOutPutDoc)
bMakeSaveOpenXMLTest = GetUserFieldState (cUserFieldTestOpenSaveXML, gOutPutDoc)
bMakeSaveOpen50Test = GetUserFieldState (cUserFieldTestOpenSave50, gOutPutDoc)
bMakeSaveOpen8Test = GetUserFieldState (cUserFieldTestOpenSave8, gOutPutDoc)
@@ -513,6 +548,7 @@ Sub SetDefaultOptions
bMakeChartTest = true
bMakeJavaTest = true
bMakeDBTest = true
+ bMakeExtensionTest = true
bMakeSaveOpenXMLTest = true
REM Disable StarOffice 5.0 tests in case binfilter has not been included
if Environ(&quot;WITH_BINFILTER&quot;) = &quot;NO&quot; then
@@ -688,4 +724,4 @@ Sub WriteExtUserField(nIndex as Integer, aCursor as Object, aDoc as Object)
aCursor.Text.InsertTextContent (aCursor, aUserField, True)
aUserField.Fix = True
End Sub
-</script:module> \ No newline at end of file
+</script:module>