Posts: 40
Threads: 10
Joined: Jan 2019
Reputation:
0
Location: Helmond
Thanks, I tried that already, but then the call to "NewSession" results in an Access Violation.
Does anyone have a working example of using the IntraWeb Unit Testing Framework? With IW 15?
Thanks in advance!
Groetjes, Bob Swart
Posts: 2,252
Threads: 193
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
Hi Bob,
I'll have a look and let you know the results, ASAP.
Cheers,
Posts: 40
Threads: 10
Joined: Jan 2019
Reputation:
0
Location: Helmond
Hi Alexandre,
Thank you, but even with that code in the .dpr file, I get an access violation when calling NewSession.
I've also attached a test project of my own. I hope I'm doing something stupid, but I've been trying for a long time now...
I'm using Delphi 11 and IW 15.2.41 (will try 15.2.42, but I do not expect that to change things).
Thanks in advance!!
Groetjes, Bob Swart
Attached Files
UnitTest.zip (Size: 91.75 KB / Downloads: 3)
Posts: 2,252
Threads: 193
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
Hi Bob,
yes, I tested your application and there is an AV. I'm working on it and will get back to you ASAP.
Cheers,
Posts: 40
Threads: 10
Joined: Jan 2019
Reputation:
0
Location: Helmond
Thanks very much for your feedback and the fix.
I've tried version 15.2.43. The generated DUnit Test Project is still generated with the an incorrect contents of the .dpr file, but I can manually replace that with the code you sent here earlier.
However, it now complains about a missing IWTestFramework.res file, which I cannot find on my machine. Adding an empty .res file leads to an error "Cannot find internal file: SAMPLE_REQUEST". so although we no longer get the AV, I still cannot use DUnit Testing, I'm afraid...
Groetjes, Bob Swart
Posts: 2,252
Threads: 193
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
Hum... seems that the build is failing to include or to copy this file to the desired location.
Can you please tell me what's your Delphi version so I can check it manually?