SysTest Class [AX 2012]
The SysTest class executes one method of an object.
Syntax
class SysTest implements SysTestExecutable
Run On
Called
Methods
Method | Description | |
---|---|---|
cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) | |
checkArrayConfigKeyAttributes | Indicates whether the specified array of attributes point to a configuration key that is not enabled. | |
cleanupData | ||
configKeyDependencyCheck | Indicates whether the configuration keys that the method depends on are all enabled. | |
equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) | |
getCurrentException | Returns the current exception message if one exists. | |
getName | Returns the name of the test method. | |
getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) | |
handle | Retrieves the handle of the class of the object. (Inherited from Object.) | |
handleException | Compares the expected exception to the actual exception. | |
handleFault | Compares the expected fault with the actual fault. | |
isValid | ||
new | Initializes a new instance of the SysTest class. | |
notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) | |
notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) | |
numberOfTests | Returns the number of test methods. | |
numberOfValidTests | Returns the number of valid test methods. | |
objectOnServer | Determines whether the object is on a server. (Inherited from Object.) | |
owner | Returns the instance that owns the object. (Inherited from Object.) | |
parmMethodName | Gets or sets the method name parameter. | |
parmTestable | Gets or sets the Testable parameter. | |
register | Registers the test method with the SysTestResult class. | |
reportFailure | For internal use. | |
run | Runs the test method and writes the result to an instance of the SysTestResult class. | |
runTestMethod | Runs the test method and handles exceptions. | |
setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) | |
toString | Returns a string that represents the current object. (Inherited from Object.) | |
traceData | ||
usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) | |
wait | Pauses a process. (Inherited from Object.) | |
wasExpectedExceptionMessageThrown | Checks whether the expected exception was thrown. | |
xml | Returns an XML string that represents the current object. (Inherited from Object.) | |
::construct | Initializes a new instance of the SysTest class. | |
::createSuite | Creates a test suite for the test class. | |
::formatInfologMessage | Formats an Infolog message for logging as a string. | |
::hasMethod | Checks whether the test case has a test method. | |
::invoke | Invokes the specified method on the object. | |
::markTestsAsNotRun | ||
::newTestable | Returns a SysTest class created for a given class and method that can be tested. | |
::trimLeft |
Top
Remarks
These methods should only be used in the Unit Test framework.
Inheritance Hierarchy
Object Class
SysTest Class
SysTestNoCleanup Class