Testing Processes with Complex Parameter Types

To test these processes, you must use a workaround. The complex parameters must be replaced by simple types that are allowed in public processes and the complex types must be constructed in the process by using the simple types. For example, a process has a parameter of type OLAPConnection:

void MyProcess(OLAPConnection connection)
{ 
	// the process code 
}

You cannot specify a value for connection on the Parameters tab when you start the test mode. Thus, this process cannot be tested as is. To test it, change the parameters and function:

void MyProcess(string server, string user, string password)
{ 
	OLAPConnection connection = OLAPCreateConnection(server, user, password);
	// the process code
}

Now the information for the connection can be specified and the process can be tested. Ensure that the name of the parameter (connection in this case) will not be changed. When the testing is done, change the process parameters back to the first version and remove the line that creates the OLAPConnection.