02-27-2019, 05:35 PM
Using Toyko 10.2.3 with the "DUnit Test Project" for Intraweb.
Using Intraweb 14.2.7
I can't get the program to start up at all as it bombs out due to not being able to access "IW_FAVICON"
Any ideas?
Oh and is there any good documentation on how to do IW related unit testing?
This is the example code it generates for a test .... But it doesn't really reflect how you would stage this all up properly to work with MY forms and such.
'with NewSession do" generates an exception error "IW Application not properly initilized"
Using Intraweb 14.2.7
I can't get the program to start up at all as it bombs out due to not being able to access "IW_FAVICON"
Code:
exception message : Cannot find internal file: IW_FAVICON.
main thread ($2d20):
006b9ad4 +18 CrashLinkTesting.exe IWException 119 +2 EIWException.IfTrue
007264d7 +57 CrashLinkTesting.exe IWServerInternalFiles 135 +2 TIWServerInternalFiles.GetResourceStream
00726905 +4d CrashLinkTesting.exe IWServerInternalFiles 226 +2 TIWServerInternalFiles.InternalAdd
00726c6d +15 CrashLinkTesting.exe IWServerInternalFiles 276 +2 TIWServerInternalFiles.AddSystemFiles
0072664a +52 CrashLinkTesting.exe IWServerInternalFiles 159 +7 TIWServerInternalFiles.Create
007dfb97 +13 CrashLinkTesting.exe IWServerInternalFiles 460 +1 initialization
0040a372 +42 CrashLinkTesting.exe System 22836 +21 InitUnits
0040a3db +3f CrashLinkTesting.exe System 22911 +14 @StartExe
0041196a +42 CrashLinkTesting.exe SysInit 1482 +11 @InitExe
007e0b0f +0b CrashLinkTesting.exe CrashLinkTesting 21 +0 initialization
76d38482 +22 KERNEL32.DLL BaseThreadInitThunk
006b9abc public IWException.EIWException.IfTrue: ; function entry point
006b9abc 117 push ebp
006b9abd mov ebp, esp
006b9abf push ebx
006b9ac0 push esi
006b9ac1 mov esi, ecx
006b9ac3 mov ebx, eax
006b9ac5 118 test dl, dl
006b9ac7 jz loc_6b9ad9
006b9ac9 119 mov ecx, esi
006b9acb mov dl, 1
006b9acd mov eax, ebx
006b9acf call -$2612e4 ($4587f0) ; System.SysUtils.Exception.Create
006b9ad4 > call -$2afaa5 ($40a034) ; System.@RaiseExcept
006b9ad9 121 pop esi
006b9ada pop ebx
006b9adb pop ebp
006b9adc ret
Any ideas?
Oh and is there any good documentation on how to do IW related unit testing?
Code:
procedure T.Test;
begin
with NewSession do ///// <--- exception error
try
with MainForm as TIWForm1 do
begin
end;
finally
Free;
end;
end;
This is the example code it generates for a test .... But it doesn't really reflect how you would stage this all up properly to work with MY forms and such.
'with NewSession do" generates an exception error "IW Application not properly initilized"