This week’s guest post is a cool technical post about Apex Tests by Nikos Mitrakis. Apex Tests are perceived as the hated necessity by most Salesforce developers: they are really important to keep high code quality levels but they are not the most fun part of coding with Salesforce. I casually discovered Nikos through his […]
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 / […]
[Salesforce / Apex Formula] Help me testing my Apex Formula Algorithm!
a{color:red !important;} This is a call to arms! In the past months I have developed an implementation in Apex of Salesforce Formulas in order to have a way to use a formula result dynamically without the need to have a custom field on an object. It has been a huge work and a lot has […]
