SysTest Class [AX 2012]

The SysTest class executes one method of an object.

Syntax

class SysTest implements SysTestExecutable

Run On

Called

Methods

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

Top

Remarks

These methods should only be used in the Unit Test framework.

Inheritance Hierarchy

Object Class
  SysTest Class
    SysTestNoCleanup Class

See Also

SysTestCase Class

SysTestSuite Class

Unit Test Framework

Walkthrough: Testing a Class Using the Unit Test Framework