11-03-2021, 09:02 AM
This is the basic that is needed to create a test project:
Please notice that you need to include a ServerController and a UserSessionUnit (in case the ServerController references it) in your project:
Please find the attached project
Please notice that you need to include a ServerController and a UserSessionUnit (in case the ServerController references it) in your project:
Code:
program IWAppTest;
{$IFDEF CONSOLE_TESTRUNNER}
{$APPTYPE CONSOLE}
{$ENDIF}
uses
SysUtils,
IWInit,
IWGlobal,
ServerController,
UserSessionUnit,
IWApplication,
IWServerInternalFiles,
DUnitTestRunner;
{$R *.RES}
{$R IWData.res}
begin
TIWServerController.SetServerControllerClass;
gAppInit();
try
DUnitTestRunner.RunRegisteredTests;
finally
FreeAndNil(gSessions);
TIWServerInternalFiles.Finalize;
end;
end.Please find the attached project

