InvokeCustomServer Method
| Mercury.QTP.CustomServer Namespace > EventsListenerBase Class : InvokeCustomServer Method |
The name of the method to be called.
A comma-separated list of the method parameters. For example: InvokeCustomServer("MethodName", Param1, Param2, etc…);
Invokes a method of the Custom Server that is running in the testing tool context.
Remarks
Use this method from an assistant class running in the AUT context to invoke methods of the Custom Server in the OpenText Functional Testing process that created the assistant class.
For example, you can use it to call GetSettingsValue to get settings from the configuration file that are not available in the AUT context.
Syntax
'DeclarationProtected Function InvokeCustomServer( _ ByVal strMethod As System.String, _ ByVal ParamArray parameters() As System.Object _ ) As System.Object
protected System.object InvokeCustomServer( System.string strMethod, params System.object[] parameters )
Parameters
- strMethod
- The name of the method to be called.
- parameters
- A comma-separated list of the method parameters. For example:
InvokeCustomServer("MethodName", Param1, Param2, etc…);

