Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Intraweb DUnit Testing
#1
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"

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"
Reply


Messages In This Thread
Intraweb DUnit Testing - by cpstevenc - 02-27-2019, 05:35 PM
RE: Intraweb DUnit Testing - by kudzu - 02-28-2019, 04:31 AM
RE: Intraweb DUnit Testing - by sigiaccio - 06-05-2020, 10:36 AM
RE: Intraweb DUnit Testing - by sigiaccio - 06-17-2020, 10:06 AM
RE: Intraweb DUnit Testing - by sigiaccio - 09-07-2020, 08:11 AM
RE: Intraweb DUnit Testing - by kudzu - 09-07-2020, 05:44 PM
RE: Intraweb DUnit Testing - by Alexandre Machado - 09-07-2020, 09:07 PM
RE: Intraweb DUnit Testing - by sigiaccio - 09-14-2020, 07:11 AM
RE: Intraweb DUnit Testing - by ebob42 - 10-29-2021, 10:55 PM
RE: Intraweb DUnit Testing - by Alexandre Machado - 11-01-2021, 03:25 AM
RE: Intraweb DUnit Testing - by ebob42 - 11-01-2021, 05:49 AM
RE: Intraweb DUnit Testing - by Alexandre Machado - 11-02-2021, 11:23 PM
RE: Intraweb DUnit Testing - by Alexandre Machado - 11-03-2021, 09:02 AM
RE: Intraweb DUnit Testing - by ebob42 - 11-03-2021, 06:26 PM
RE: Intraweb DUnit Testing - by Alexandre Machado - 11-08-2021, 07:08 AM
RE: Intraweb DUnit Testing - by Alexandre Machado - 11-12-2021, 08:13 AM
RE: Intraweb DUnit Testing - by ebob42 - 11-13-2021, 11:03 AM
RE: Intraweb DUnit Testing - by jeroen.rottink - 11-13-2021, 04:07 PM
RE: Intraweb DUnit Testing - by Alexandre Machado - 11-13-2021, 09:48 PM
RE: Intraweb DUnit Testing - by ebob42 - 11-14-2021, 02:27 PM
RE: Intraweb DUnit Testing - by Alexandre Machado - 11-15-2021, 12:06 AM
RE: Intraweb DUnit Testing - by Alexandre Machado - 11-15-2021, 08:52 AM
RE: Intraweb DUnit Testing - by ebob42 - 11-19-2021, 10:21 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)