Tag: Test

[Salesforce] The Sobject Crusade: ApexTestResult

Source: ApexTestResult After you execute a test class (ApexTestQueueItem), you’ll get the test results of a given test method execution. To query this information use the ApexTestResult object. The object conveys the following fields: ApexClassId: the test class ApexLogId: the ApexLog object (if log is enabled) AsyncApexJobId: the main aync job (this is the same […]

[Salesforce] The Sobject Crusade: ApexTestSuite

Source: ApexTestSuite String ’16 comes with a handy feature regarding test execution, the Test Suites. They are a collection of tests ment to be run together organized in a single suite. To access the test suite open your Developer Console and click Test > New Suite and enter the Suite name: Then select all test […]

[Salesforce] The Sobject Crusade: ApexTestQueueItem

Source: ApexTestQueueItem The ApexTestQueueItem object gives you access to the underlying test item for a given test job for a given class. If you don’t know what is a test class refer to this article to get started: a test class is a class used to (guess what?) test a set of apex classes / […]