diff --git a/wst/trunk/tests/test_suite/test_generators.pas b/wst/trunk/tests/test_suite/test_generators.pas index f773f5de0..6c27a3160 100644 --- a/wst/trunk/tests/test_suite/test_generators.pas +++ b/wst/trunk/tests/test_suite/test_generators.pas @@ -112,7 +112,7 @@ begin locDoc := CreateDoc(); g := CreateGenerator(locDoc); g.Execute(tr,mdl.Name); - WriteXMLFile(locDoc,'.\class_properties_default.xsd'); + //WriteXMLFile(locDoc,'.\class_properties_default.xsd'); locExistDoc := LoadXmlFromFilesList('class_properties_default.xsd'); Check(CompareNodes(locExistDoc.DocumentElement,locDoc.DocumentElement),'generated document differs from the existent one.'); finally @@ -183,7 +183,7 @@ begin locDoc := CreateDoc(); g := CreateGenerator(locDoc); g.Execute(tr,mdl.Name); - WriteXMLFile(locDoc,'.\class_properties_extended_metadata.xsd'); + //WriteXMLFile(locDoc,'.\class_properties_extended_metadata.xsd'); locExistDoc := LoadXmlFromFilesList('class_properties_extended_metadata.xsd'); Check(CompareNodes(locExistDoc,locDoc),'generated document differs from the existent one.'); finally @@ -253,7 +253,7 @@ begin locDoc := CreateDoc(); g := CreateGenerator(locDoc); g.Execute(tr,mdl.Name); - WriteXMLFile(locDoc,'.\class_extent_native_type.xsd'); + //WriteXMLFile(locDoc,'.\class_extent_native_type.xsd'); locExistDoc := LoadXmlFromFilesList('class_extent_native_type.xsd'); Check(CompareNodes(locExistDoc.DocumentElement,locDoc.DocumentElement),'generated document differs from the existent one.'); finally @@ -326,7 +326,7 @@ begin locDoc := CreateDoc(); g := CreateGenerator(locDoc); g.Execute(tr,mdl.Name); - WriteXMLFile(locDoc,'.\class_headerblock_derived.xsd'); + //WriteXMLFile(locDoc,'.\class_headerblock_derived.xsd'); locExistDoc := LoadXmlFromFilesList('class_headerblock_derived.xsd'); Check(CompareNodes(locExistDoc.DocumentElement,locDoc.DocumentElement),'generated document differs from the existent one.'); finally @@ -389,7 +389,7 @@ begin locDoc := CreateDoc(); g := CreateGenerator(locDoc); g.Execute(tr,mdl.Name); - WriteXMLFile(locDoc,'.\class_headerblock_simplecontent_derived.xsd'); + //WriteXMLFile(locDoc,'.\class_headerblock_simplecontent_derived.xsd'); locExistDoc := LoadXmlFromFilesList('class_headerblock_simplecontent_derived.xsd'); Check(CompareNodes(locExistDoc.DocumentElement,locDoc.DocumentElement),'generated document differs from the existent one.'); finally @@ -450,7 +450,7 @@ begin locDoc := CreateDoc(); g := CreateGenerator(locDoc); g.Execute(tr,mdl.Name); - WriteXMLFile(locDoc,'.\class_widestring_property.xsd'); + //WriteXMLFile(locDoc,'.\class_widestring_property.xsd'); locExistDoc := LoadXmlFromFilesList('class_widestring_property.xsd'); Check(CompareNodes(locExistDoc.DocumentElement,locDoc.DocumentElement),'generated document differs from the existent one.'); finally @@ -555,7 +555,7 @@ begin locDoc := CreateDoc(); g := CreateGenerator(locDoc); g.Execute(tr,mdl.Name); - WriteXMLFile(locDoc,'array_sequence_collection.xsd'); + //WriteXMLFile(locDoc,'array_sequence_collection.xsd'); locExistDoc := LoadXmlFromFilesList('array_sequence_collection.xsd'); Check(CompareNodes(locExistDoc.DocumentElement,locDoc.DocumentElement),'generated document differs from the existent one.'); finally @@ -566,16 +566,8 @@ begin end; function TTest_CustomXsdGenerator.LoadXmlFromFilesList(const AFileName: string): TXMLDocument; -var - locFileName : string; begin -{$IFDEF FPC} - locFileName := Format('.%sfiles%s%s',[PathDelim,PathDelim,AFileName]); -{$ENDIF} -{$IFDEF DELPHI} - locFileName := Format('..%sfiles%s%s',[PathDelim,PathDelim,AFileName]); -{$ENDIF} - ReadXMLFile(Result,locFileName); + ReadXMLFile(Result,wstExpandLocalFileName(TestFilesPath + AFileName)); end; { TTest_XsdGenerator } diff --git a/wst/trunk/tests/test_suite/test_generators_runtime.pas b/wst/trunk/tests/test_suite/test_generators_runtime.pas index eb692b86b..f2cd82521 100644 --- a/wst/trunk/tests/test_suite/test_generators_runtime.pas +++ b/wst/trunk/tests/test_suite/test_generators_runtime.pas @@ -140,7 +140,7 @@ begin RegisterFondamentalTypesHandler(handlerReg); locDoc := CreateDoc(); GenerateWSDL(locRep,locDoc,typeReg,handlerReg); - WriteXML(locDoc,wstExpandLocalFileName('wsdl_gen_complex_type_derivation.wsdl')); + //WriteXML(locDoc,wstExpandLocalFileName('wsdl_gen_complex_type_derivation.wsdl')); ReadXMLFile(locExistDoc,wstExpandLocalFileName(TestFilesPath + 'wsdl_gen_complex_type_derivation.wsdl')); Check(CompareNodes(locExistDoc.DocumentElement,locDoc.DocumentElement),'generated document differs from the existent one.'); finally @@ -173,7 +173,7 @@ begin RegisterFondamentalTypesHandler(handlerReg); locDoc := CreateDoc(); GenerateWSDL(locRep,locDoc,typeReg,handlerReg); - WriteXML(locDoc,wstExpandLocalFileName('wsdl_gen_generate_enum.wsdl')); + //WriteXML(locDoc,wstExpandLocalFileName('wsdl_gen_generate_enum.wsdl')); ReadXMLFile(locExistDoc,wstExpandLocalFileName(TestFilesPath + 'wsdl_gen_generate_enum.wsdl')); Check(CompareNodes(locExistDoc.DocumentElement,locDoc.DocumentElement),'generated document differs from the existent one.'); finally @@ -207,7 +207,7 @@ begin RegisterFondamentalTypesHandler(handlerReg); locDoc := CreateDoc(); GenerateWSDL(locRep,locDoc,typeReg,handlerReg); - WriteXML(locDoc,wstExpandLocalFileName('wsdl_gen_generate_array.wsdl')); + //WriteXML(locDoc,wstExpandLocalFileName('wsdl_gen_generate_array.wsdl')); ReadXMLFile(locExistDoc,wstExpandLocalFileName(TestFilesPath + 'wsdl_gen_generate_array.wsdl')); Check(CompareNodes(locExistDoc.DocumentElement,locDoc.DocumentElement),'generated document differs from the existent one.'); finally @@ -246,7 +246,7 @@ begin RegisterFondamentalTypesHandler(handlerReg); locDoc := CreateDoc(); GenerateWSDL(locRep,locDoc,typeReg,handlerReg); - WriteXML(locDoc,wstExpandLocalFileName('wsdl_gen_generate_record.wsdl')); + //WriteXML(locDoc,wstExpandLocalFileName('wsdl_gen_generate_record.wsdl')); ReadXMLFile(locExistDoc,wstExpandLocalFileName(TestFilesPath + 'wsdl_gen_generate_record.wsdl')); Check(CompareNodes(locExistDoc.DocumentElement,locDoc.DocumentElement),'generated document differs from the existent one.'); finally diff --git a/wst/trunk/tests/test_suite/test_json.pas b/wst/trunk/tests/test_suite/test_json.pas index af12e3b42..ede15d31e 100644 --- a/wst/trunk/tests/test_suite/test_json.pas +++ b/wst/trunk/tests/test_suite/test_json.pas @@ -111,7 +111,7 @@ begin locParser := nil; strm := TMemoryStream.Create(); try - f.SaveToStream(strm); strm.SaveToFile('TTest_JsonRpcFormatterExceptionBlock.ExceptBlock_server.txt'); + f.SaveToStream(strm); strm.Position := 0; locParser := TJSONParser.Create(strm); root := locParser.Parse() as TJSONObject; diff --git a/wst/trunk/tests/test_suite/test_parsers.pas b/wst/trunk/tests/test_suite/test_parsers.pas index 8c4ba2061..b23970127 100644 --- a/wst/trunk/tests/test_suite/test_parsers.pas +++ b/wst/trunk/tests/test_suite/test_parsers.pas @@ -21,7 +21,7 @@ uses {$ELSE} TestFrameWork, xmldom, wst_delphi_xml, {$ENDIF} - pastree, pascal_parser_intf, xsd_parser, wsdl_parser; + pastree, pascal_parser_intf, xsd_parser, wsdl_parser, test_suite_utils; type @@ -1466,10 +1466,7 @@ var prs : IXsdPaser; fileName : string; begin - fileName := Format('.%sfiles%s%s.xsd',[PathDelim,PathDelim,ADoc]); -{$IFNDEF FPC} - fileName := Format('..%s%s',[PathDelim,fileName]); -{$ENDIF} + fileName := wstExpandLocalFileName(TestFilesPath + ADoc + '.xsd'); locDoc := LoadXmlFile(fileName); try Result := TwstPasTreeContainer.Create(); @@ -1589,10 +1586,7 @@ var prs : IParser; fileName : string; begin - fileName := Format('.%sfiles%s%s.wsdl',[PathDelim,PathDelim,ADoc]); -{$IFNDEF FPC} - fileName := Format('..%s%s',[PathDelim,fileName]); -{$ENDIF} + fileName := wstExpandLocalFileName(TestFilesPath + ADoc + '.wsdl'); locDoc := LoadXmlFile(fileName); try Result := TwstPasTreeContainer.Create(); diff --git a/wst/trunk/tests/test_suite/test_soap_specific.pas b/wst/trunk/tests/test_suite/test_soap_specific.pas index 7bc5afa34..1aee0fd87 100644 --- a/wst/trunk/tests/test_suite/test_soap_specific.pas +++ b/wst/trunk/tests/test_suite/test_soap_specific.pas @@ -141,12 +141,7 @@ uses function GetFileFullName(const AFileName: string): string; begin -{$IFDEF FPC} - Result := Format('.%sfiles%s%s',[PathDelim,PathDelim,AFileName]); -{$ENDIF} -{$IFDEF DELPHI} - Result := Format('..%sfiles%s%s',[PathDelim,PathDelim,AFileName]); -{$ENDIF} + Result := wstExpandLocalFileName(TestFilesPath + AFileName); end; function LoadXmlFromFilesList(const AFileName: string): TXMLDocument; @@ -313,7 +308,7 @@ begin f.EndCallResponse(); strm := TMemoryStream.Create(); f.SaveToStream(strm); - strm.SaveToFile('soap_multi_namespace_object.xml'); + //strm.SaveToFile('soap_multi_namespace_object.xml'); strm.Position := 0; ReadXMLFile(locDoc,strm); @@ -466,7 +461,7 @@ begin locStream := TMemoryStream.Create(); try ser.SaveToStream(locStream); - locStream.SaveToFile(wstExpandLocalFileName('write_header_simple_content_1.xml')); + //locStream.SaveToFile(wstExpandLocalFileName('write_header_simple_content_1.xml')); locStream.Position := 0; ReadXMLFile(locDoc,locStream); ReadXMLFile(locExistDoc,wstExpandLocalFileName(TestFilesPath + 'write_header_simple_content_1.xml')); @@ -506,7 +501,7 @@ begin locStream := TMemoryStream.Create(); try ser.SaveToStream(locStream); - locStream.SaveToFile(wstExpandLocalFileName('write_header_simple_content_2.xml')); + //locStream.SaveToFile(wstExpandLocalFileName('write_header_simple_content_2.xml')); locStream.Position := 0; ReadXMLFile(locDoc,locStream); ReadXMLFile(locExistDoc,wstExpandLocalFileName(TestFilesPath + 'write_header_simple_content_2.xml')); diff --git a/wst/trunk/tests/test_suite/test_suite_utils.pas b/wst/trunk/tests/test_suite/test_suite_utils.pas index 07bc5e9d6..bb0202ea5 100644 --- a/wst/trunk/tests/test_suite/test_suite_utils.pas +++ b/wst/trunk/tests/test_suite/test_suite_utils.pas @@ -33,7 +33,7 @@ implementation function wstExpandLocalFileName(const AFileName : string) : string; begin - Result := AFileName; + Result := ExtractFilePath(ParamStr(0)) + AFileName; end; function DumpMemory(AMem : Pointer; const ALength : PtrInt) : ansistring; diff --git a/wst/trunk/tests/test_suite/test_support.pas b/wst/trunk/tests/test_suite/test_support.pas index d1df543b3..1908927cf 100644 --- a/wst/trunk/tests/test_suite/test_support.pas +++ b/wst/trunk/tests/test_suite/test_support.pas @@ -22,7 +22,7 @@ uses TestFrameWork, {$ENDIF} TypInfo, - wst_types, base_service_intf, imp_utils; + wst_types, base_service_intf, imp_utils, test_suite_utils; type @@ -2962,7 +2962,7 @@ begin locStream := TMemoryStream.Create(); try locStream.Write(locBuffer[1],Length(locBuffer)); - locFileName := 'test_LoadBufferFromFile.bin'; + locFileName := wstExpandLocalFileName('test_LoadBufferFromFile.bin'); locStream.SaveToFile(locFileName); locLoadedBuffer := TBase64StringRemotable.Create(); locLoadedBuffer.LoadFromFile(locFileName); @@ -3023,7 +3023,7 @@ begin locObj := TBase64StringRemotable.Create(); try locObj.BinaryData := locBuffer; - locFileName := 'test_LoadBufferFromFile.bin'; + locFileName := wstExpandLocalFileName('test_LoadBufferFromFile.bin'); DeleteFile(locFileName); locObj.SaveToFile(locFileName); Check(FileExists(locFileName)); @@ -3178,7 +3178,7 @@ begin locStream := TMemoryStream.Create(); try locStream.Write(locBuffer[1],Length(locBuffer)); - locFileName := 'test_LoadBufferFromFile.bin'; + locFileName := wstExpandLocalFileName('test_LoadBufferFromFile.bin'); locStream.SaveToFile(locFileName); locLoadedBuffer := TBase64StringExtRemotable.Create(); locLoadedBuffer.LoadFromFile(locFileName); @@ -3239,7 +3239,7 @@ begin locObj := TBase64StringExtRemotable.Create(); try locObj.BinaryData := locBuffer; - locFileName := 'test_LoadBufferFromFile.bin'; + locFileName := wstExpandLocalFileName('test_LoadBufferFromFile.bin'); DeleteFile(locFileName); locObj.SaveToFile(locFileName); Check(FileExists(locFileName)); @@ -3546,7 +3546,7 @@ begin locStream := TMemoryStream.Create(); try locStream.Write(locBuffer[1],Length(locBuffer)); - locFileName := 'test_LoadBufferFromFile.bin'; + locFileName := wstExpandLocalFileName('test_LoadBufferFromFile.bin'); locStream.SaveToFile(locFileName); locLoadedBuffer := LoadBufferFromFile(locFileName); Check( locLoadedBuffer = locBuffer ); diff --git a/wst/trunk/tests/test_suite/testformatter_unit.pas b/wst/trunk/tests/test_suite/testformatter_unit.pas index ca6fc2cef..14a89edcb 100644 --- a/wst/trunk/tests/test_suite/testformatter_unit.pas +++ b/wst/trunk/tests/test_suite/testformatter_unit.pas @@ -748,7 +748,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.Test_AnsiChar.xml'); + f.SaveToStream(s); xVal_1 := #0; xVal_2 := #0; @@ -840,7 +840,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.Test_WideChar.xml'); + f.SaveToStream(s); xVal_1 := #0; xVal_2 := #0; @@ -933,7 +933,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.Test_UnicodeChar.xml'); + f.SaveToStream(s); xVal_1 := #0; xVal_2 := #0; @@ -1026,7 +1026,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.xml'); + f.SaveToStream(s); intVal_U := 0; intVal_S := 0; @@ -1400,7 +1400,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s);s.SaveToFile(ClassName + '.Test_Single_4.xml'); + f.SaveToStream(s); tmpVal := 0; f := CreateFormatter(TypeInfo(TClass_Float)); @@ -1436,7 +1436,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s);s.SaveToFile(ClassName + '.Test_Single_4.xml'); + f.SaveToStream(s); tmpVal := 0; f := CreateFormatter(TypeInfo(TClass_Float)); @@ -1472,7 +1472,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s);s.SaveToFile(ClassName + '.Test_Double_8.xml'); + f.SaveToStream(s); tmpVal := 0; f := CreateFormatter(TypeInfo(TClass_Float)); @@ -1508,7 +1508,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s);s.SaveToFile(ClassName + '.Test_Double_8.xml'); + f.SaveToStream(s); tmpVal := 0; f := CreateFormatter(TypeInfo(TClass_Float)); @@ -1544,7 +1544,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s);s.SaveToFile(ClassName + '.Test_Currency_8.xml'); + f.SaveToStream(s); tmpVal := 0; f := CreateFormatter(TypeInfo(TClass_Float)); @@ -1580,7 +1580,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s);s.SaveToFile(ClassName + '.Test_Currency_8.xml'); + f.SaveToStream(s); tmpVal := 0; f := CreateFormatter(TypeInfo(TClass_Float)); @@ -1616,7 +1616,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s);s.SaveToFile(ClassName + '.Test_Extended_10.xml'); + f.SaveToStream(s); tmpVal := 0; f := CreateFormatter(TypeInfo(TClass_Float)); @@ -1652,7 +1652,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s);s.SaveToFile(ClassName + '.Test_Extended_10.xml'); + f.SaveToStream(s); tmpVal := 0; f := CreateFormatter(TypeInfo(TClass_Float)); @@ -1769,7 +1769,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(Self.ClassName + '.' + 'Test_UnicodeString.xml'); + f.SaveToStream(s); locVal_1 := ''; locVal_3 := 'yyyyyyyy'; @@ -1811,7 +1811,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(Self.ClassName + '.' + 'Test_WideString.xml'); + f.SaveToStream(s); locVal_1 := ''; locVal_3 := 'yyyyyyyy'; @@ -1888,7 +1888,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.Test_Bool.xml'); + f.SaveToStream(s); intVal_1 := False; intVal_3 := True; @@ -2074,7 +2074,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '_test_int_withclass.xml'); + f.SaveToStream(s); FreeAndNil(a); a := TClass_Int.Create(); @@ -2233,7 +2233,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.Test_CplxInt64SimpleContent_WithClass.txt'); + f.SaveToStream(s); FreeAndNil(a); a := TClass_CplxSimpleContent.Create(); @@ -2309,7 +2309,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.txt'); + f.SaveToStream(s); FreeAndNil(a); a := TClass_CplxSimpleContent.Create(); @@ -2385,7 +2385,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.txt'); + f.SaveToStream(s); FreeAndNil(a); a := TClass_CplxSimpleContent.Create(); @@ -2461,7 +2461,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.txt'); + f.SaveToStream(s); FreeAndNil(a); a := TClass_CplxSimpleContent.Create(); @@ -2537,7 +2537,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.txt'); + f.SaveToStream(s); FreeAndNil(a); a := TClass_CplxSimpleContent.Create(); @@ -2608,7 +2608,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.txt'); + f.SaveToStream(s); FreeAndNil(a); a := TClass_CplxSimpleContent.Create(); @@ -2671,7 +2671,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.txt'); + f.SaveToStream(s); FreeAndNil(a); a := TClass_CplxSimpleContent.Create(); @@ -2735,7 +2735,7 @@ begin f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.txt'); + f.SaveToStream(s); FreeAndNil(a); a := TClass_CplxSimpleContent.Create(); @@ -2902,7 +2902,7 @@ begin f.Put('a',TypeInfo(TArrayOfStringRemotable),a); f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.Test_StringArray.xml'); + f.SaveToStream(s); FreeAndNil(a); a := TArrayOfStringRemotable.Create(); a.SetLength(0); @@ -2966,7 +2966,7 @@ begin f.Put('b',TypeInfo(TEmbeddedArrayOfStringRemotable),b); f.EndScope(); s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.XML'); + f.SaveToStream(s); FreeAndNil(a); FreeAndNil(b); intVal := 0; @@ -3777,7 +3777,7 @@ begin a.fieldSmallint := 0; a.fieldString := ''; s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.Test_Record_simple.xml'); + f.SaveToStream(s); f := CreateFormatter(TypeInfo(TClass_Int)); s.Position := 0; @@ -3851,7 +3851,7 @@ begin f.EndScope(); a := VAL_EMPTY_RECORD; s := TMemoryStream.Create(); - f.SaveToStream(s); s.SaveToFile(ClassName + '.Test_Record_nested.xml'); + f.SaveToStream(s); f := CreateFormatter(TypeInfo(TClass_Int)); s.Position := 0; @@ -3929,7 +3929,7 @@ begin FreeAndNil(intv); ls := TStringList.Create(); - f := CreateFormatter(TypeInfo(TClass_A)); s.SaveToFile(ClassName + '.test_GetScopeItemNames.xml'); + f := CreateFormatter(TypeInfo(TClass_A)); s.Position := 0; f.LoadFromStream(s); x := 'Root'; @@ -4748,7 +4748,7 @@ begin f.EndExceptionList(); strm := TMemoryStream.Create(); try - f.SaveToStream(strm);strm.SaveToFile('TTest_SoapFormatterExceptionBlock.ExceptBlock.xml'); + f.SaveToStream(strm); strm.Position := 0; ReadXMLFile(doc,strm); if FindAttributeByValueInNode(sSOAP_ENV,doc.DocumentElement,nsShortName) or @@ -5048,7 +5048,7 @@ begin f.EndExceptionList(); strm := TMemoryStream.Create(); try - f.SaveToStream(strm);strm.SaveToFile('TTest_XmlRpcFormatterExceptionBlock.ExceptBlock.xml'); + f.SaveToStream(strm); strm.Position := 0; ReadXMLFile(doc,strm); callNode := doc.DocumentElement; diff --git a/wst/trunk/tests/test_suite/wst_test_suite.lpi b/wst/trunk/tests/test_suite/wst_test_suite.lpi index d7cadca58..bfc371dd3 100644 --- a/wst/trunk/tests/test_suite/wst_test_suite.lpi +++ b/wst/trunk/tests/test_suite/wst_test_suite.lpi @@ -1,17 +1,16 @@ - + - + - @@ -19,7 +18,7 @@ - + @@ -34,47 +33,47 @@ - + - + - + - + - + - + - + - + - + @@ -84,27 +83,27 @@ - + - + - + - + - + @@ -114,7 +113,7 @@ - + @@ -124,27 +123,27 @@ - + - + - + - + - + @@ -154,7 +153,7 @@ - + @@ -164,12 +163,12 @@ - + - + @@ -212,13 +211,12 @@ - - - + + diff --git a/wst/trunk/tests/test_suite/wst_test_suite_gui.lpi b/wst/trunk/tests/test_suite/wst_test_suite_gui.lpi index 266d38209..cc270e7c5 100644 --- a/wst/trunk/tests/test_suite/wst_test_suite_gui.lpi +++ b/wst/trunk/tests/test_suite/wst_test_suite_gui.lpi @@ -131,9 +131,6 @@ - - - @@ -162,6 +159,8 @@ + diff --git a/wst/trunk/ws_helper/wsdl_parser.pas b/wst/trunk/ws_helper/wsdl_parser.pas index 4a61abc11..b9352c8d5 100644 --- a/wst/trunk/ws_helper/wsdl_parser.pas +++ b/wst/trunk/ws_helper/wsdl_parser.pas @@ -202,7 +202,8 @@ begin if Assigned(FOnMessage) then begin FOnMessage(AMsgType,AMsg); end else if IsConsole then begin - GetLogger().Log(AMsgType, AMsg); + if HasLogger() then + GetLogger().Log(AMsgType, AMsg); end; end;