Salesforce Dev Tools for Chrome™


Salesforce Dev Tools for Chrome™ is a Chrome extension helping developers do the below things: ・Export definition of objects to Excel file. ・Show / Hide object API name on object detail page by 1 Click. ・Quick generate test data Apex Code for Unit Test. ・Quick access to new record page, list page and […]

read more

Write Apex Test Classes efficiently with Tesforce

13. Test Results

1.Why Tesforce The Test Classes are required to deploy Apex to a production environment or to be packaged and placed on AppExchange, it must provide at least 75% code coverage. That will be a huge workload to SFDC Developers if the project(application) include a lot of Apex Classes,the cost of time to write Test […]

read more

Salesforce ContentDocument sObject in Apex Unit Tests

ContentDocument object does not allow insert DML operation in Salesforce, but we can create it through the ContentVersion object, without ContentDocumentId, then a new version of ContentDocument will be created for us in SFDC, just like the sample code below :

read more

Salesforce CategoryNode sObject in Apex Unit Tests

In Salesforce,DML operation is not allowed on CategoryNode sObject,even in Unit Test. Although the 《 Apex Code Developer’s Guide》 does not mention it clearly,that CategoryNode object can be accessed in Apex Tests, we have to prepare CategoryNode data first in Setup clicking Customize > Solution > Solution Categories. The following is the sample code […]

read more

Salesforce CollaborationGroup sObject in Apex Unit Tests

The below Test Class Code will occur [System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_VALUE] error if a same CollaborationGroup was existed,even Test Class dose not have the @IsTest(SeeAllData=true) annotation. As the document of Salesforce CollaborationGroup API [SOAP API Developer’s Guide],the Name of CollaborationGroup must be unique across public and private groups. […]

read more