Thursday, September 29, 2016

Salesforce advanced Code searcher

There are 2 main tools when you add this Google Chrome extensions. Go to Salesforce setup page to find them:

1) Advanced Quick Find 
This part gets added in side navigation bar on all set-up pages. Select the code component that you want to go to, then start typing the name of the code,an autocomplete suggestion pops up, select the one that you want to go to.



2) Developer Utilities
2.1) Search Your Code - this will include search in: Class, Page, Trigger and VF component.
This component get added in force.com home page only. Let's say you want to know where you want to know where is an object used your code, like proj__c. Right now to find this out you have to either go thru all the code individually or create a force.com project in eclipse and then search there. There's no way we can do this directly in Salesforce. This string search will help you do that. You have to check the code components in which you want to search the code, enter a string in the input text field and hit enter. You will be presented with a list of code components where the string is used.



2.2 ) Code Coverage Extract: View and download the code coverage in your org.



Type: Google Chrome extension

Paid/Free: Free

Installation:
https://chrome.google.com/webstore/detail/salesforce-advanced-code/lnkgcmpjkkkeffambkllliefdpjdklmi

Version: 1.3.4


Blog last updated: 29 Sep 2016


Thursday, September 8, 2016

Salesforce QuickNav

This is another extension from Jeff Hube, see previous blog for Salesforce Toolbar. With this extension added, press the tilde key (~ or `) to open a textbox from which you can easily access any page from Salesforce's setup menu or any tab.

Start typing the name of the setup page or tab you would like to access and then click it once it appears in the list, or use the up and down arrow keys to select it and press enter. Holding shift while pressing enter will open it in a new browser tab.



Type: Google Chrome extension

Paid/Free: Free

Publisher: Jeff Hube

Installation: https://chrome.google.com/webstore/detail/salesforce-quicknav/efeemnomnegfdnpcbpppilbdhijjhkff/related?hl=en-US

Version: 1.0.7


Blog last update: 8 Sep 2016


Salesforce Toolbar

If you are Salesforce developer, this extension "Salesforce Toolbar" will help you easily navigate to: Apex Classes, Apex Triggers, Visualforce Pages, Visualforce Components, Custom Objects, Custom Labels, Custom Settings, and Apex Test Execution. 

It also give you quick access to: Workbench, Console, Debug Logs, System Overview, Installed Packages, Standard Object, Convert ID from 15 characters, and current Org Id.



Type: Google Chrome extension

Paid/Free: Free

Publisher: Jeff Hube

Installation: https://chrome.google.com/webstore/detail/salesforce-toolbar/ablbkcpkgiaoambelcidmcpmbpjeadha?hl=en-US

Version: 2.8.1


Blog last update: 8 Sep 2016


Monday, September 5, 2016

Code Coverage Report

To deploy Apex Class to production, you need to have minimal 75% of overall code coverage. You can check code coverage from Developer Console | Test | New Run and select all Test Classes and Run. Tests tab will tell you all Test Classes completed successfully or failed, you also can drill down to Methods for each Test Class.



Look at "Overall Code Coverage" panel for the Classes, including Percent and Lines coverage.



You also can monitor this from Setup | Develop | Apex Test Execution, or to Run Test by click "Select Tests.." button, but this will not tell you the code coverage percentage.



If you are not using any IDE, you will find percentage coverage in Developer Console only, and you cannot copy and paste it to your team or for documentation, except take screenshots, but when you have too many class, this would be hard.

So, there is a free app from appexchange that can help you to extract this information. The app called Code Coverage Report. This app will not run test class for you, but just to report your last code coverage. The app also allowed you to extract into Excel file easily.




Type: AppExchange (Managed Package)

Paid/Free: Free

PublisherAmit Chaudhary

Installation: https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000DXzlpEAD

Version: 1.2


Blog last update: 5 September 2016