Start a new topic
Answered

Support for Autotest of API applications

We want to set up an auto test environment for our SystemWeaver applications. Is there a command line interface for starting the Systemweaver server?


Best Answer

The server can be started from C# the following way:

 

var startInfo = new ProcessStartInfo(exeFileName, args);
startInfo.WorkingDirectory = Path.GetDirectoryName(exeFileName);
var process = Process.Start(startInfo);

 

args may contain: ini=fil.ini props=props.ini

 

In the ini file for the server – swServer.ini you can set the database that shall be started by setting the DSN property e.g.:

DSN=D:\temp\database.sqlite

1 Comment

Answer

The server can be started from C# the following way:

 

var startInfo = new ProcessStartInfo(exeFileName, args);
startInfo.WorkingDirectory = Path.GetDirectoryName(exeFileName);
var process = Process.Start(startInfo);

 

args may contain: ini=fil.ini props=props.ini

 

In the ini file for the server – swServer.ini you can set the database that shall be started by setting the DSN property e.g.:

DSN=D:\temp\database.sqlite

Login to post a comment