OpenPetra
Free Administration Software for Non-Profits
Ict.Testing.NUnitPetraServer.TPetraServerConnector Class Reference

Static Public Member Functions

static TServerManager Connect ()
 Initialize the Petra server and connect to the database. this overload looks for the config file itself More...
 
static TServerManager Connect (string AConfigName)
 Initialize the Petra server and connect to the database More...
 
static void Disconnect ()
 shutdown the server More...
 

Detailed Description

This is a dll for NUnit test programs. The dll can be used by calling TPetraServerConnector.Connect and TPetraServerConnector.Disconnect from TFixture.SetUp and TFixture.TearDown

required parameters (in the config file or on the command line): AutoLogin AutoLoginPasswd

Member Function Documentation

◆ Connect() [1/2]

static TServerManager Ict.Testing.NUnitPetraServer.TPetraServerConnector.Connect ( )
inlinestatic

Initialize the Petra server and connect to the database. this overload looks for the config file itself

◆ Connect() [2/2]

static TServerManager Ict.Testing.NUnitPetraServer.TPetraServerConnector.Connect ( string  AConfigName)
inlinestatic

Initialize the Petra server and connect to the database

Parameters
AConfigNamejust provide the server config file, plus AutoLogin and AutoLoginPasswd

◆ Disconnect()

static void Ict.Testing.NUnitPetraServer.TPetraServerConnector.Disconnect ( )
inlinestatic

shutdown the server


The documentation for this class was generated from the following file: