Share via


SysTestCaseCompanyData Class [AX 2012]

The SysTestCaseCompanyData class is designed as a base class for test cases that use company data.

Syntax

class SysTestCaseCompanyData extends SysTestCase

Run On

Called

Methods

  Method Description
Gg933932.pubmethod(en-us,AX.60).gif assertEquals Checks whether two values are equal. (Inherited from SysTestAssert.)
Gg933932.pubmethod(en-us,AX.60).gif assertExpectedInfoLogMessage Validates that an expected message has been put in the Infolog. (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif assertFalse Checks whether a condition is not true. (Inherited from SysTestAssert.)
Gg933932.pubmethod(en-us,AX.60).gif assertNotEqual Checks whether two values are not equal. (Inherited from SysTestAssert.)
Gg933932.pubmethod(en-us,AX.60).gif assertNotNull Checks whether the value is not nullNothingnullptrunita null reference (Nothing in Visual Basic). (Inherited from SysTestAssert.)
Gg933932.pubmethod(en-us,AX.60).gif assertNotSame Checks whether the objects are not the same. (Inherited from SysTestAssert.)
Gg933932.pubmethod(en-us,AX.60).gif assertNull Checks whether the value is nullNothingnullptrunita null reference (Nothing in Visual Basic). (Inherited from SysTestAssert.)
Gg933932.pubmethod(en-us,AX.60).gif assertRealEquals Checks whether two values are equal with regard to a delta. (Inherited from SysTestAssert.)
Gg933932.pubmethod(en-us,AX.60).gif assertSame Checks whether the objects are the same. (Inherited from SysTestAssert.)
Gg933932.pubmethod(en-us,AX.60).gif assertTrue Checks whether the condition is true. (Inherited from SysTestAssert.)
Gg933932.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg933932.pubmethod(en-us,AX.60).gif createSuite Gets a new instance of the SysTestSuiteCompIsolateClassWithTts class. (Overrides the createSuite Method.)
Gg933932.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg933932.pubmethod(en-us,AX.60).gif exceptionExpected Indicates whether the current test is expected to throw an exception. (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif exceptionMessage Gets the exception message of the expected exception. (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif fail Fails the current test case. (Inherited from SysTestAssert.)
Gg933932.pubmethod(en-us,AX.60).gif faultCode (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif faultExpected (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif faultReason (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif getListenerInformation Gets the listener information for the test method. (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg933932.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg933932.pubmethod(en-us,AX.60).gif info Logs an informational message to the Infolog. (Inherited from SysTestAssert.)
Gg933932.pubmethod(en-us,AX.60).gif new Initializes a new instance of the SysTestCase class. (Inherited from SysTestCase.)
Gg933932.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.)
Gg933932.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.)
Gg933932.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg933932.pubmethod(en-us,AX.60).gif otherCompany Gets the third of three companies supported by this test case base class.
Gg933932.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg933932.pubmethod(en-us,AX.60).gif parmExceptionExpected Determines whether an exception is expected in the current test. (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif parmFaultExpected (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif primaryCompany Gets the first of three companies supported by this test case base class.
Gg933932.pubmethod(en-us,AX.60).gif run Runs the test case. (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif secondaryCompany Gets the second of three companies supported by this test case base class.
Gg933932.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg933932.pubmethod(en-us,AX.60).gif setUp Sets up the test case environment. (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif setUpTestCase Sets up the test environment for the test case. (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif tearDown Tears down the test case environment. (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif tearDownTestCase Tears down the test environment for the test case. (Overrides the tearDownTestCase Method.)
Gg933932.pubmethod(en-us,AX.60).gif testMethods Returns the test methods for a test case. (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif testsElementName Gets the name of the code coverage element. (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif testsElementType Gets the type of the code coverage element. (Inherited from SysTestCase.)
Gg933932.pubmethod(en-us,AX.60).gif testSuite
Gg933932.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg933932.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.)
Gg933932.pubmethod(en-us,AX.60).gif useSingleInstance Gets a value that ensures all test methods are run in the same instance of the test case. (Overrides the useSingleInstance Method.)
Gg933932.protmethod(en-us,AX.60).gif useTtsIsolation Gets a value that indicates whether automatic rollback is enforced.
Gg933932.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg933932.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg933932.privmethod(en-us,AX.60).gif Gg933932.static(en-us,AX.60).gif ::clearCompanyCache Clears the cache for the specified company.

Top

Remarks

This class supports the following functionality.

  • The use of the SysTestSuiteCompIsolateClassWithTts test suite provides the benefits of company isolation and automatic transaction rollback, or

  • The use of the SysTestSuiteCompanyIsolateClass test suite provides the benefits of company isolation.

  • Deriving from SysTestCase provides the benefit of test case level set up and tear down methods.

  • The test methods are all run in the same instance of the test case.

  • The availability of three explicit test companies supports multi-company testing.

Inheritance Hierarchy

Object Class
  SysTestAssert Class
    SysTestCase Class
      SysTestCaseCompanyData Class