Monday, 9 May 2016

Introduction To Salesforce Security And Keywords Or Functions In Test Classes

Salesforce Security Related Updates:
  • Log in look and feel – Salesforce has upgraded and enhances salesforce login client involvement in winter 16 discharge. This component is accessible in both Lightning Experience and Salesforce great.
  • Salesforce has enhanced security for Unwanted login endeavors. This component is availablein all releases.
  • Now, we can track the geographic areas of the IP addresses for any client structure client subtle element page. 
  • Transition security strategies – to find out about security issues.
  • Safety is enhanced for Unwanted login endeavors: Salesforce added measures to forestall.
  • We can redo mistake messages, if blunder happened amid SSO utilizing a verification supplier.
  • Easy approach to reorder applications. client interface is enhanced to orchestrate the default sort request for salesforce, custom and associated applications in your salesforce organization.
Keywords Or Functions In Test Classes:

@isTest Annotation:


This comment is utilized to characterize the test class. In the event that we utilize this comment then information which we made inside the strategy doesn't mean something negative for your association limit. Can be made the strategy announced as "private" or "open".

seeAllData:

In the event that we utilize this catchphrase seeAllData=true , then we get every one of the information from database. This will be an issue in light of the fact that the information is differ from case to case.

seeAllData=false, is not access to the information in the framework ,whatever the information need in the test class we need to make in class it slef. Continuously better to utilize this strategy since information will be same for all occurrences.

System.runAs():

This catchphrase/capacity is utilized just as a part of test strategy, by and large Apex code is running in framework mode not in client mode and authorization and record sharing of the present client are not taken as number.

In the event that we need to call the bit of code which will be execute with particular client then we can utilize this capacity.

Test.isRunningTest():
  • This catchphrase/capacity we can utilize just in classes not in test classes.
  • When we need to call the bit of code just from test class then we can utilize this.
  • This is Boolean variable return genuine when calling from test class generally false.
Salesforcetrainingusa offers a best online training in usa, uk and globally with real time experts on your flexible timings and for more information visit@ salesforce crm online training