Share via


SysTest::invoke Method [AX 2012]

Invokes the specified method on the object.

Syntax

client server public static anytype invoke(
    Object _object, 
    str _method, 
   [anytype _optional])

Run On

Called

Parameters

  • _object
    Type: Object Class
    The object that the method will be invoked on.
  • _method
    Type: str
    The method that will be invoked.
  • _optional
    Type: anytype
    The parameter that is used when a parameter is required for a method; optional.

Return Value

Type: anytype
The call to the object.

See Also

SysTest Class

SysTestCase Class

SysTestSuite Class

Unit Test Framework

Walkthrough: Testing a Class Using the Unit Test Framework