summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-02-14 11:15:55 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-02-14 11:15:55 +0100
commit68bcb8d2fa5021af8ba67309eee65dc2028adf63 (patch)
treec62e51105b75f0e415bded15ff887c6bac83839e
parentf6da0ecba9329d3b4f9d5840cbeaa01c7659f0c4 (diff)
debuglevels: fixed various issues around the test closure's log file
-rwxr-xr-xsmoketestdoc/data/Global.xml94
-rwxr-xr-xsmoketestdoc/data/Test_10er.xml115
-rwxr-xr-xsmoketestdoc/data/Test_DB.xml18
-rwxr-xr-xsmoketestdoc/data/Test_Ext.xml22
4 files changed, 134 insertions, 115 deletions
diff --git a/smoketestdoc/data/Global.xml b/smoketestdoc/data/Global.xml
index d437eafe3457..53f913234227 100755
--- a/smoketestdoc/data/Global.xml
+++ b/smoketestdoc/data/Global.xml
@@ -38,7 +38,7 @@ global const cExtensionFileName = &quot;TestExtension.oxt&quot;
global const cDocNew = 0, cDocSaveOpen8 = 1, cDocSaveOpenXML = 2, cDocClose = 3
global const cDBService = 0, cDBOpen = 1, cDBInsert = 2, cDBDelete = 3, cDBSeek = 4, cDBClose = 5
global const cEXTService = 0, cEXTInstall = 1, cEXTUninstall = 2
-global const cOtherSetupDoc = 0, cOtherWriteStatus = 1
+global const cTestClosureSetupDoc = 0, cTestClosureWriteStatus = 1
global const cLogfileFailed = 255
global const cStWriter = 0, cStCalc = 1, cStPraesentation = 2, cStZeichnen = 3
@@ -54,7 +54,7 @@ global const frmWriter = 1, frmCalc = 2, frmImpress = 4
global const frmMath = 5, frmChart = 7, frmHyperText = 8, frmDraw = 9
global const frmDataBase = 10, frmJava = 13
global const frmExtension = 14
-global const frmTestGlue = 15
+global const frmTestClosure = 15
Global gCurrentDocTest As Integer
Global gCurrentTestCase As Integer
@@ -139,11 +139,23 @@ Sub AssertionHandler( sMessage as String )
End Sub
Sub Main
- gCurrentDocTest = frmTestGlue
- gCurrentTestCase = cOtherSetupDoc
-
On Local Error Goto MainError
- CaptureAssertions( &quot;AssertionHandler&quot; )
+
+ gCurrentDocTest = frmTestClosure
+ gCurrentTestCase = cLogfileFailed
+
+ DeleteAllSavedFiles()
+ DeleteAllLogFiles()
+ SetupWorkPath()
+
+ if GetSystem (sWorkPath) = &quot;windows&quot; then
+ sWorkPath = ConvertPathToWin (sWorkPath)
+ end if
+
+ LocalTestLog% = OpenLogDat( GetLogFileName( gCurrentDocTest ) )
+
+ gCurrentTestCase = cTestClosureSetupDoc
+ CaptureAssertions( "AssertionHandler" )
call SetGlobalDoc
@@ -158,10 +170,13 @@ Sub Main
LogTestResult( GetTestGlueDescription( gCurrentTestCase ), TRUE )
+ Dim nPreserveFileHandle%
+ nPreserveFileHandle% = LocalTestLog%
Call Test_10er.Main
+ LocalTestLog% = nPreserveFileHandle%
- gCurrentDocTest = frmTestGlue
- gCurrentTestCase = cOtherWriteStatus
+ gCurrentDocTest = frmTestClosure
+ gCurrentTestCase = cTestClosureWriteStatus
if bShowTable then
call CreateStatusTable2
call CreateStatusTable
@@ -170,7 +185,13 @@ Sub Main
&apos; do this LogTestResult call before CreateSecondState, since the latter accesses (and displays) the result
call CreateSecondState
gOutputDoc.CurrentController.ViewCursor.JumpToFirstPage
- end if
+ Else
+ LogTestResult( GetTestGlueDescription( gCurrentTestCase ), TRUE )
+ End If
+
+ &apos; print the &apos;test complete&apos; marker
+ Print #LocalTestLog%, &quot;---&quot;
+ LocalTestLog% = 0
gOutputDoc.setModified( bWasModified )
@@ -178,15 +199,22 @@ Sub Main
Exit Sub
MainError:
- LogTestResult( GetTestGlueDescription( gCurrentTestCase ), FALSE )
+ If ( gCurrentTestCase = cLogfileFailed ) then
+ LogTestResult( &quot;&quot;, False )
+ Exit Sub
+ else
+ LogTestResult( &quot;testclosure &quot; + GetTestGlueDescription( gCurrentTestCase ), FALSE )
+ Close #LocalTestLog%
+ LocalTestLog = 0
+ End If
End Sub
Function GetTestGlueDescription( nTestCase as Integer )
Select Case ( nTestCase )
- case cOtherSetupDoc
- GetTestGlueDescription = &quot;setup test document&quot;
- case cOtherWriteStatus
- GetTestGlueDescription = &quot;write test status&quot;
+ case cTestClosureSetupDoc
+ GetTestGlueDescription = &quot;setup&quot;
+ case cTestClosureWriteStatus
+ GetTestGlueDescription = &quot;write_status&quot;
case Else
GetTestGlueDescription = &quot;&quot;
End Select
@@ -259,8 +287,8 @@ Sub CreateStatusTable2
tableRows2(cEXTUninstall ) = &quot;uninstall&quot;
dim tableRows3(1) as string
- tableRows3(cOtherSetupDoc ) = &quot;setup test&quot;
- tableRows3(cOtherWriteStatus ) = &quot;write test result&quot;
+ tableRows3(cTestClosureSetupDoc ) = &quot;setup test&quot;
+ tableRows3(cTestClosureWriteStatus ) = &quot;write test result&quot;
aDoc = gOutputDoc
@@ -380,24 +408,29 @@ Sub LogTestResult( sTestCaseDescription as String, bSuccess as Boolean )
If ( gCurrentTestCase = cLogfileFailed ) Then
Dim sAnnotation as String
sAnnotation = &quot;creating logfile &apos;&quot; + GetLogFileName( gCurrentDocTest ) + &quot;&apos; failed&quot;
- LogState( FALSE, sAnnotation, MainFileChannel )
- SetStatus( 0, FALSE, sAnnotation )
+ LogState( FALSE, sAnnotation, GlobalTestLog )
+ RecordTestCaseStatus( 0, FALSE, sAnnotation )
Else
- If ( LocalFileChannel &lt;&gt; 0 ) Then
- LogState( bSuccess, sTestCaseDescription, LocalFileChannel )
+ bSuccess = RecordTestCaseStatus( gCurrentTestCase, bSuccess, sTestCaseDescription )
+ If ( LocalTestLog &lt;&gt; 0 ) Then
+ LogState( bSuccess, sTestCaseDescription, LocalTestLog )
EndIf
- if ( MainFileChannel &lt;&gt; 0 ) Then
- LogState( bSuccess, sTestCaseDescription, MainFileChannel )
+ if ( GlobalTestLog &lt;&gt; 0 ) Then
+ LogState( bSuccess, sTestCaseDescription, GlobalTestLog )
EndIf
- SetStatus( gCurrentTestCase, bSuccess, sTestCaseDescription )
End If
End Sub
-Sub SetStatus( nAction as Integer, bState as Boolean, sFailureAnnotation as String )
+Function RecordTestCaseStatus( nAction as Integer, bState as Boolean, sFailureAnnotation as String ) as Boolean
Dim nStatusType as Integer
Dim nState as integer
nStatusType = GetStatusType( gCurrentDocTest )
- If nStatusType = cStNone then Exit Sub
+ If nStatusType = cStNone then Exit Function
+
+ If ( gErrorState( nStatusType, nAction ) = cLogFalse ) Then
+ &apos; don't overwrite a previous &quot;failed&quot; state for this test
+ bState = FALSE
+ End If
if bState then
nState = cLogTrue
@@ -405,17 +438,14 @@ Sub SetStatus( nAction as Integer, bState as Boolean, sFailureAnnotation as Stri
nState = cLogFalse
end If
- If ( gErrorState( nStatusType, nAction ) = cLogFalse ) Then
- &apos; don't overwrite a previous &quot;failed&quot; state for this this
- nState = cLogFalse
- End If
-
gErrorState (nStatusType, nAction) = nState
If ( nState = cLogFalse ) And ( sFailureAnnotation &lt;&gt; &quot;&quot; ) Then
gTestCaseAnnotations( nStatusType, nAction ) = gTestCaseAnnotations( nStatusType, nAction ) + sFailureAnnotation + chr(13)
End If
-end Sub
+
+ RecordTestCaseStatus = bState
+End Function
Function GetStatusType (nDocType as Integer) as Integer
Select Case ( nDocType )
@@ -435,7 +465,7 @@ Function GetStatusType (nDocType as Integer) as Integer
GetStatusType = cStChart &apos; chart
case frmJava
GetStatusType = cStJava &apos;Java
- case frmTestGlue
+ case frmTestClosure
GetStatusType = cStTestGlue &apos; test framework
case frmDataBase
GetStatusType = cStDataBase &apos;DataBase
diff --git a/smoketestdoc/data/Test_10er.xml b/smoketestdoc/data/Test_10er.xml
index 68d69d46991d..b929caccb1b8 100755
--- a/smoketestdoc/data/Test_10er.xml
+++ b/smoketestdoc/data/Test_10er.xml
@@ -36,7 +36,7 @@ const sSDrawLogFileName = &quot;sdrwlog.dat&quot;, sJavaLogFileName = &quot;java
const sSDBLogFileName = &quot;dblog.dat&quot;, sExtLogFileName = &quot;extlog.dat&quot;
const sTestGlueLogFileName = &quot;testclosure.log&quot;
const sLogFileName = &quot;smoketest.log&quot;
-const cTempFileName = &quot;ttt&quot;
+const cTempFileName = &quot;smoketest_file&quot;
const cMessageSaveOpen8Doc = &quot;Save/Open open Documents (8.0)&quot;
const cMessageSaveOpenXMLDoc = &quot;Save/Open Document XML (6/7)&quot;
@@ -45,8 +45,8 @@ const cMessageCloseDoc = &quot;Close Document&quot;
Global sWorkPath$
Global sWorkPathURL$
-Global LocalFileChannel%
-Global MainFileChannel%
+Global LocalTestLog%
+Global GlobalTestLog%
Sub Main
call TestAllDocs()
@@ -141,15 +141,13 @@ Function OpenLogDat (sFileName as String) as Integer
OpenLogDat = LocaleFileChannel%
end Function
-Function GetWorkPath as string
- sTemp = &quot;$(userpath)/temp/&quot;
- GetWorkPath = CreateUnoService(&quot;com.sun.star.config.SpecialConfigManager&quot;).SubstituteVariables(sTemp)
-End Function
+Sub SetupWorkPath
+ Dim configManager as Object
+ configManager = CreateUnoService( &quot;com.sun.star.config.SpecialConfigManager&quot; )
-Function GetWorkURL as string
- sTemp = &quot;$(userurl)/temp/&quot;
- GetWorkURL = CreateUnoService(&quot;com.sun.star.config.SpecialConfigManager&quot;).SubstituteVariables(sTemp)
-End Function
+ sWorkPath = configManager.SubstituteVariables( &quot;$(userpath)/temp/&quot; )
+ sWorkPathURL = configManager.SubstituteVariables( &quot;$(userurl)/temp/&quot; )
+End Sub
Function GetSystem (sTmpWorkPath as string) as string
GetSystem = &quot;&quot;
@@ -178,13 +176,6 @@ Sub TestAllDocs()
DIM sDocURL as String, sDocPath as String
DIM nStrPos as Long
- sWorkPath = GetWorkPath
- sWorkPathURL = GetWorkURL
-
- if GetSystem (sWorkPath) = &quot;windows&quot; then
- sWorkPath = ConvertPathToWin (sWorkPath)
- end if
-
&apos;search ExtensionURL
sDocURL = gOutputDoc.URL
CompatibilityMode(true)
@@ -192,9 +183,7 @@ DIM nStrPos as Long
CompatibilityMode(false)
sExtensionURL = Left (sDocURL, nStrPos)
- call DeleteAllSavedFiles()
- call DeleteAllLogFiles()
- MainFileChannel = OpenLogDat (sLogFileName)
+ GlobalTestLog = OpenLogDat (sLogFileName)
call WriteTestSequence
if bMakeWriterTest then
gCurrentDocTest = frmWriter
@@ -237,47 +226,47 @@ DIM nStrPos as Long
call Test_Ext.TestExtensions
end if
- Close #MainFileChannel
- MainFileChannel = 0
+ Close #GlobalTestLog
+ GlobalTestLog = 0
end Sub
Sub WriteTestSequence
- Print #MainFileChannel, &quot;Sequence of testing&quot;
+ Print #GlobalTestLog, &quot;Sequence of testing&quot;
if bMakeWriterTest then
- WriteTests (&quot;writer : &quot;, true, MainFileChannel)
+ WriteTests (&quot;writer : &quot;, true, GlobalTestLog)
end if
if bMakeCalcTest then
- WriteTests (&quot;calc : &quot;, true, MainFileChannel)
+ WriteTests (&quot;calc : &quot;, true, GlobalTestLog)
end if
if bMakeImpressTest then
- WriteTests (&quot;impress : &quot;, true, MainFileChannel)
+ WriteTests (&quot;impress : &quot;, true, GlobalTestLog)
end if
if bMakeDrawTest then
- WriteTests (&quot;draw : &quot;, true, MainFileChannel)
+ WriteTests (&quot;draw : &quot;, true, GlobalTestLog)
end if
if bMakeHTMLTest then
- WriteTests (&quot;HTML : &quot;, true, MainFileChannel)
+ WriteTests (&quot;HTML : &quot;, true, GlobalTestLog)
end if
if bMakeChartTest then
- WriteTests (&quot;chart : &quot;, false, MainFileChannel)
+ WriteTests (&quot;chart : &quot;, false, GlobalTestLog)
end if
if bMakeMathTest then
- WriteTests (&quot;math : &quot;, false, MainFileChannel)
+ WriteTests (&quot;math : &quot;, false, GlobalTestLog)
end if
if bMakeJavaTest then
- WriteTests (&quot;Java : &quot;, false, MainFileChannel)
+ WriteTests (&quot;Java : &quot;, false, GlobalTestLog)
end if
if bMakeDBTest then
- WriteDBTests (&quot;Database : &quot;, MainFileChannel)
+ WriteDBTests (&quot;Database : &quot;, GlobalTestLog)
end if
if bMakeExtensionTest then
- WriteExtensionTests (&quot;Extension : &quot;, MainFileChannel)
+ WriteExtensionTests (&quot;Extension : &quot;, GlobalTestLog)
end if
- Print #MainFileChannel, &quot;testclosure : setup, write_status&quot;
+ Print #GlobalTestLog, &quot;testclosure : setup, write_status&quot;
- Print #MainFileChannel
+ Print #GlobalTestLog
end Sub
Sub WriteTests (sText as string, bTestAll as boolean)
@@ -302,7 +291,7 @@ Sub WriteTestSequence
sWriteStr = sWriteStr + &quot;, close&quot;
- Print #MainFileChannel, sWriteStr
+ Print #GlobalTestLog, sWriteStr
end Sub
Sub WriteDBTests (sText as string, nFileChannel as integer)
@@ -336,7 +325,7 @@ Sub MakeDocTest
On Local Error GoTo DOCTESTERROR
gCurrentTestCase = cLogfileFailed
- LocalFileChannel% = OpenLogDat (GetLogFileName(gCurrentDocTest))
+ LocalTestLog% = OpenLogDat (GetLogFileName(gCurrentDocTest))
gCurrentTestCase = cDocNew
oDoc = LoadDoc (&quot;private:factory/&quot; + GetDocFilter(gCurrentDocTest or cFltNewDoc))
LogTestResult( GetDocFilter(gCurrentDocTest or cFltNewDoc)+&quot; &quot;+ cMessageNewDoc, not IsNull (oDoc) )
@@ -381,19 +370,19 @@ Sub MakeDocTest
end if
end If
- Print #LocalFileChannel, &quot;---&quot;
- Close #LocalFileChannel%
- LocalFileChannel = 0
+ Print #LocalTestLog, &quot;---&quot;
+ Close #LocalTestLog%
+ LocalTestLog = 0
Exit Sub &apos; Without error
DOCTESTERROR:
If ( gCurrentTestCase = cLogfileFailed ) then
- LogTestResult( "", False )
+ LogTestResult( &quot; &quot;, False )
Exit Sub
else
LogTestResult( GetDocFilter(gCurrentDocTest or cFltNewDoc)+&quot; &quot;+ GetErrorMessage(gCurrentTestCase), False )
- Close #LocalFileChannel%
- LocalFileChannel = 0
+ Close #LocalTestLog%
+ LocalTestLog = 0
End If
Exit Sub &apos; With error
End Sub
@@ -403,7 +392,7 @@ Sub MakeNewDoc
Dim bSuccess as Boolean
On Local Error GoTo DOCTESTERROR2
gCurrentTestCase = cLogfileFailed
- LocalFileChannel% = OpenLogDat (GetLogFileName(gCurrentDocTest))
+ LocalTestLog% = OpenLogDat (GetLogFileName(gCurrentDocTest))
gCurrentTestCase = cDocNew
&apos; oDoc = Documents.Add(GetDocFilter(gCurrentDocTest))
oDoc = LoadDoc (&quot;private:factory/&quot; + GetDocFilter(gCurrentDocTest or cFltNewDoc))
@@ -413,19 +402,19 @@ Sub MakeNewDoc
bSuccess = CloseDoc( oDoc )
LogTestResult( GetDocFilter(gCurrentDocTest)+&quot; &quot;+ cMessageCloseDoc, bSuccess )
end If
- Print #LocalFileChannel, &quot;---&quot;
- Close #LocalFileChannel%
- LocalFileChannel = 0
+ Print #LocalTestLog, &quot;---&quot;
+ Close #LocalTestLog%
+ LocalTestLog = 0
Exit Sub &apos; Without error
DOCTESTERROR2:
If ( gCurrentTestCase = cLogfileFailed ) then
- LogTestResult( "", False )
+ LogTestResult( &quot; &quot;, False )
Exit Sub
else
LogTestResult( GetDocFilter(gCurrentDocTest or cFltNewDoc)+&quot; &quot;+ GetErrorMessage(gCurrentTestCase), False )
- Close #LocalFileChannel%
- LocalFileChannel = 0
+ Close #LocalTestLog%
+ LocalTestLog = 0
End If
Exit Sub &apos; With error
End Sub
@@ -439,7 +428,7 @@ Sub MakeChartTest
Dim bSuccess as Boolean
On Local Error GoTo CHARTTESTERROR
gCurrentTestCase = cLogfileFailed
- LocalFileChannel% = OpenLogDat (GetLogFileName(gCurrentDocTest))
+ LocalTestLog% = OpenLogDat (GetLogFileName(gCurrentDocTest))
gCurrentTestCase = cDocNew
oDoc = LoadDoc (&quot;private:factory/&quot; + GetDocFilter(frmCalc or cFltNewDoc))
if not IsNull (oDoc) then
@@ -452,19 +441,19 @@ Sub MakeChartTest
else
LogTestResult( GetDocFilter(frmCalc or cFltNewDoc)+&quot; &quot;+ cMessageNewDoc, FALSE )
End if
- Print #LocalFileChannel, &quot;---&quot;
- Close #LocalFileChannel%
- LocalFileChannel = 0
+ Print #LocalTestLog, &quot;---&quot;
+ Close #LocalTestLog%
+ LocalTestLog = 0
Exit Sub &apos; Without error
CHARTTESTERROR:
If ( gCurrentTestCase = cLogfileFailed ) then
- LogTestResult( "", False )
+ LogTestResult( &quot; &quot;, False )
Exit Sub
else
LogTestResult( GetDocFilter(gCurrentDocTest or cFltNewDoc)+&quot; &quot;+ GetErrorMessage(gCurrentTestCase), FALSE )
- Close #LocalFileChannel%
- LocalFileChannel = 0
+ Close #LocalTestLog%
+ LocalTestLog = 0
End If
Exit Sub &apos; With error
End Sub
@@ -566,7 +555,7 @@ Function GetLogFileName (DocType as Integer) as String
GetLogFileName = sSChartLogFileName &apos; chart
case frmJava
GetLogFileName = sJavaLogFileName &apos;Java
- case frmOther
+ case frmTestClosure
GetLogFileName = sTestGlueLogFileName &apos; test framework
case frmDataBase
GetLogFileName = sSDBLogFileName &apos;Database
@@ -602,14 +591,14 @@ End Function
Function TestJava
Dim oObj as Object
gCurrentTestCase = cLogfileFailed
- LocalFileChannel% = OpenLogDat (GetLogFileName(gCurrentDocTest))
+ LocalTestLog% = OpenLogDat (GetLogFileName(gCurrentDocTest))
gCurrentTestCase = cDocNew
oObj = createUnoService( cUnoJavaLoader )
LogTestResult( &quot;Java &quot;+ cMessageNewDoc, not IsNull (oObj) )
- Print #LocalFileChannel, &quot;---&quot;
- Close #LocalFileChannel%
- LocalFileChannel = 0
+ Print #LocalTestLog, &quot;---&quot;
+ Close #LocalTestLog%
+ LocalTestLog = 0
TestJava = not IsNull (oObj)
End Function
diff --git a/smoketestdoc/data/Test_DB.xml b/smoketestdoc/data/Test_DB.xml
index a9f1fc2e316d..1f5667cae5a5 100755
--- a/smoketestdoc/data/Test_DB.xml
+++ b/smoketestdoc/data/Test_DB.xml
@@ -46,7 +46,7 @@ Sub TestDB
On Local Error GoTo DBERROR
gCurrentTestCase = cLogfileFailed
- LocalFileChannel% = OpenLogDat (GetLogFileName(gCurrentDocTest))
+ LocalTestLog% = OpenLogDat (GetLogFileName(gCurrentDocTest))
gCurrentTestCase = cDBService
sCurrentMessage = cMessageDatabaseService + &quot; &quot; + cUnoDatabaseContext
@@ -63,8 +63,8 @@ Sub TestDB
LogTestResult( &quot;Database &quot;+ cMessageDatabaseOpen, not IsNull (oDBConnection) )
if (IsNull(oDBConnection)) then
- Close #LocalFileChannel%
- LocalFileChannel = 0
+ Close #LocalTestLog%
+ LocalTestLog = 0
Exit Sub
End If
@@ -128,19 +128,19 @@ Sub TestDB
oDBConnection.Dispose()
LogTestResult( &quot;Database &quot;+ cMessageDatabaseClose, True )
- Print #LocalFileChannel, &quot;---&quot;
- Close #LocalFileChannel%
- LocalFileChannel = 0
+ Print #LocalTestLog, &quot;---&quot;
+ Close #LocalTestLog%
+ LocalTestLog = 0
Exit Sub &apos; Without error
DBERROR:
If ( gCurrentTestCase = cLogfileFailed ) then
- LogTestResult( "", False )
+ LogTestResult( &quot; &quot;, False )
Exit Sub
else
LogTestResult( &quot;Database &quot;+ sCurrentMessage, FALSE )
- Close #LocalFileChannel%
- LocalFileChannel = 0
+ Close #LocalTestLog%
+ LocalTestLog = 0
End If
Exit Sub &apos; With error
End Sub
diff --git a/smoketestdoc/data/Test_Ext.xml b/smoketestdoc/data/Test_Ext.xml
index 735aae537596..ac39f4816d7b 100755
--- a/smoketestdoc/data/Test_Ext.xml
+++ b/smoketestdoc/data/Test_Ext.xml
@@ -42,7 +42,7 @@ Sub TestExtensions
On Local Error GoTo EXTERROR
gCurrentTestCase = cLogfileFailed
- LocalFileChannel% = OpenLogDat (GetLogFileName(gCurrentDocTest))
+ LocalTestLog% = OpenLogDat (GetLogFileName(gCurrentDocTest))
sCurrentMessage = cMessageExtensionService
gCurrentTestCase = cEXTService
@@ -59,8 +59,8 @@ Sub TestExtensions
LogTestResult( &quot;Extension &quot;+ cMessageExtensionService, not IsNull (ext_mgr) )
if (IsNull(ext_mgr)) then
- Close #LocalFileChannel%
- LocalFileChannel = 0
+ Close #LocalTestLog%
+ LocalTestLog = 0
Exit Sub
End If
@@ -79,8 +79,8 @@ Sub TestExtensions
bResult = (oTestExtension.getImplementationName = sImplementationNameString)
LogTestResult( &quot;Extension &quot;+ cMessageExtensionInstall, bResult )
if (not bResult) then
- Close #LocalFileChannel%
- LocalFileChannel = 0
+ Close #LocalTestLog%
+ LocalTestLog = 0
Exit Sub
End If
@@ -96,19 +96,19 @@ Sub TestExtensions
&apos;The service must not be available anymore. Therefor isNull must return true.
LogTestResult( &quot;Extension &quot;+ cMessageExtensionUninstall, IsNull (oTestExtension) )
- Print #LocalFileChannel, &quot;---&quot;
- Close #LocalFileChannel%
- LocalFileChannel = 0
+ Print #LocalTestLog, &quot;---&quot;
+ Close #LocalTestLog%
+ LocalTestLog = 0
Exit Sub &apos; Without error
EXTERROR:
If ( gCurrentTestCase = cLogfileFailed ) then
- LogTestResult( "", False )
+ LogTestResult( &quot; &quot;, False )
Exit Sub
else
LogTestResult( &quot;Extension &quot;+ sCurrentMessage, False )
- Close #LocalFileChannel%
- LocalFileChannel = 0
+ Close #LocalTestLog%
+ LocalTestLog = 0
End If
Exit Sub &apos; With error