创建新话题
已回答

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?


最佳答案

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

回答

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

登录 发表评论