summaryrefslogtreecommitdiff
path: root/smoketestoo_native
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2006-12-01 15:32:54 +0000
committerRüdiger Timm <rt@openoffice.org>2006-12-01 15:32:54 +0000
commit74abf28b7a9ca4ddee4be7612aaf9911c52eeea4 (patch)
treef6aeeb75a56cd2ec77d56f1b9aba9dcf87541c72 /smoketestoo_native
parent53240e34a969800ac3197a14875b0faace1949ed (diff)
INTEGRATION: CWS smoketest11 (1.3.26); FILE MERGED
2006/11/27 16:06:03 kz 1.3.26.1: #i71115# new test for extensions
Diffstat (limited to 'smoketestoo_native')
-rwxr-xr-xsmoketestoo_native/data/scripts/Test_10er.xba50
1 files changed, 49 insertions, 1 deletions
diff --git a/smoketestoo_native/data/scripts/Test_10er.xba b/smoketestoo_native/data/scripts/Test_10er.xba
index b26ee3387eee..af787af823e1 100755
--- a/smoketestoo_native/data/scripts/Test_10er.xba
+++ b/smoketestoo_native/data/scripts/Test_10er.xba
@@ -7,7 +7,7 @@ const sSDLogFileName = &quot;sdlog.dat&quot;, sSMathLogFileName = &quot;smalog.d
const sSImDLogFileName = &quot;simlog.dat&quot;, sSChartLogFileName = &quot;schlog.dat&quot;
const sSHptLogFileName = &quot;shptlog.dat&quot;, sSMessageLogFileName = &quot;smeslog.dat&quot;
const sSDrawLogFileName = &quot;sdrwlog.dat&quot;, sJavaLogFileName = &quot;javalog.dat&quot;
-const sSDBLogFileName = &quot;dblog.dat&quot;
+const sSDBLogFileName = &quot;dblog.dat&quot;, sExtLogFileName = &quot;extlog.dat&quot;
const sLogFileName = &quot;log.dat&quot;
const cTempFileName = &quot;ttt&quot;
@@ -121,6 +121,9 @@ Sub DeleteAllLogFiles()
If FileExists (sWorkPath+sSDBLogFileName) then
Kill (sWorkPath+sSDBLogFileName)
End If
+ If FileExists (sWorkPath+sExtLogFileName) then
+ Kill (sWorkPath+sExtLogFileName)
+ End If
end Sub
Function OpenLogDat (sFileName as String) as Integer
@@ -167,6 +170,8 @@ Function ConvertPathToWin (sTmpWorkPath as string) as string
end Function
Sub TestAllDocs()
+DIM sDocURL as String, sDocPath as String
+DIM nStrPos as Long
sWorkPath = GetWorkPath
sWorkPathURL = GetWorkURL
@@ -174,6 +179,30 @@ Sub TestAllDocs()
if GetSystem (sWorkPath) = &quot;windows&quot; then
sWorkPath = ConvertPathToWin (sWorkPath)
end if
+
+ &apos;search ExtensionURL
+ sExtensionURL = sWorkPathURL
+ If not FileExists (sExtensionURL + cExtensionFileName) then
+ if bShowTable then
+ sDocURL = gOutPutDoc.URL
+ CompatibilityMode(true)
+ nStrPos = InStrRev (sDocURL, &quot;/&quot; )
+ CompatibilityMode(false)
+ if nStrPos then
+ sDocURL = Left (sDocURL, nStrPos)
+ sExtensionURL = sDocURL
+ If not FileExists (sExtensionURL + cExtensionFileName) then
+ bMakeExtensionTest = false &apos; test is not possible then
+ end if
+ else
+ bMakeExtensionTest = false &apos; test is not possible then
+ end if
+
+ else
+ bMakeExtensionTest = false &apos; test is not possible then
+ end if
+
+ end if
call DeleteAllSavedFiles()
call DeleteAllLogFiles()
@@ -206,6 +235,9 @@ Sub TestAllDocs()
if bMakeDBTest then
call Test_DB.TestDB (frmDataBase)
end if
+ if bMakeExtensionTest then
+ call Test_Ext.TestExtensions (frmExtension)
+ end if
Close #MainFileChannel
end Sub
@@ -240,6 +272,9 @@ Sub WriteTestSequence (FileChannel as integer)
if bMakeDBTest then
WriteDBTests (&quot;Database : &quot;, FileChannel)
end if
+ if bMakeExtensionTest then
+ WriteExtensionTests (&quot;Extension : &quot;, FileChannel)
+ end if
Print #FileChannel
end Sub
@@ -294,6 +329,17 @@ Sub WriteDBTests (sText as string, nFileChannel as integer)
Print #nFileChannel, sWriteStr
end Sub
+Sub WriteExtensionTests (sText as string, nFileChannel as integer)
+ Dim sWriteStr as string
+
+ sWriteStr = sText
+ sWriteStr = sWriteStr + &quot;services&quot;
+ sWriteStr = sWriteStr + &quot;, install&quot;
+ sWriteStr = sWriteStr + &quot;, uninstall&quot;
+
+ Print #nFileChannel, sWriteStr
+end Sub
+
Sub MakeDocTest (FilterType as Integer)
Dim oDoc as Object
Dim sFileNameXML$, sFileName50$, sFileName8$
@@ -608,6 +654,8 @@ Function GetLogFileName (DocType as Integer) as String
GetLogFileName = sJavaLogFileName &apos;Java
case frmDataBase
GetLogFileName = sSDBLogFileName &apos;Database
+ case frmExtension
+ GetLogFileName = sExtLogFileName &apos;Extension
case else
GetLogFileName = &quot;&quot;
end Select