![]() |
Intraweb DUnit Testing - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Intraweb DUnit Testing (/thread-973.html) |
Intraweb DUnit Testing - cpstevenc - 02-27-2019 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. Any ideas? Oh and is there any good documentation on how to do IW related unit testing? Code: procedure T.Test; 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" RE: Intraweb DUnit Testing - kudzu - 02-28-2019 Look here, maybe this is what you are trying to do? https://github.com/Atozed/IntraWeb/tree/master/15/Delphi/CGIRunner RE: Intraweb DUnit Testing - sigiaccio - 06-05-2020 Hello, I have also this error Project xxx.exe raised exception class EIXException with message 'Cannot fin internal file : IW_FAVICON'. I used intraweb 14 version with embarcadero rio in delphi. I'm migrating from XE2 to RIO in delphi. I deleted the frame but it still seems to exist. While migrating to RIO, I can't compile anymore due to the above error. Would you have an idea to remove the use of this frame and the error please? Thanks RE: Intraweb DUnit Testing - sigiaccio - 06-17-2020 (06-05-2020, 10:36 AM)sigiaccio Wrote: Hello, Hello, could you give me some solutions, please? Thank you very much. RE: Intraweb DUnit Testing - sigiaccio - 09-07-2020 Hello, Could you please help me find a solution? My problem is still not solved Thank you RE: Intraweb DUnit Testing - kudzu - 09-07-2020 "I'm migrating from XE2 to RIO in delphi. I deleted the frame but it still seems to exist. While migrating to RIO, I can't compile anymore due to the above error." What exact error are you receiving? RE: Intraweb DUnit Testing - Alexandre Machado - 09-07-2020 As I can understand this is not an actual IW application but a unit test, correct? You need to add IWApplication, IWServerInternalFiles, to your project's uses clause. Also include {$R IWData.res} and try to rebuild it. IWData.res contain required resources. Make sure it is available to your application. This the DPR file may look: uses SysUtils, // your files here IWApplication, IWServerInternalFiles; {R *.RES} {$R IWData.res} begin System.ReportMemoryLeaksOnShutdown := True; UnitTestRunner.RunRegisteredTests; FreeAndNil(gSessions); TIWServerInternalFiles.Finalize; end. RE: Intraweb DUnit Testing - sigiaccio - 09-14-2020 (09-07-2020, 09:07 PM)Alexandre Machado Wrote: As I can understand this is not an actual IW application but a unit test, correct? Hello, Thank you for your response. I found my problem. There was still a call to the frame created in a library file. There was also the call to components (search on IW and delete). Thanks to all of you RE: Intraweb DUnit Testing - ebob42 - 10-29-2021 WIth IntraWeb 15, I cannot get this to work. I keep getting the error "IW application not property initialized". Before IntraWeb 15, I could add the following code: GAppModeInit(Application); But that no longer compiles. Any idea? Does anyone have an example of an IntraWeb 15 Unit Testing Project? Tjanks in advance! Groetjes, Bob Swart RE: Intraweb DUnit Testing - Alexandre Machado - 11-01-2021 Until IW 12 there was a GAppModeInit variable that pointed to AppModeInit() procedure. In IW 15 it has been replaced by GAppInt which points to AppInit() procedure. Cheers, |