In this particular section let us explore various SalesForce Deployment and Assertions.
First, let us see “What is Deployment?” The answer is very simple, Deployment is nothing but the connection between sandbox and PRD environment (production organization)
Several mechanisms of Deployment are:
|→ Changeset
|→ Force.com eclipse
|→ ANT builder
|→ WEB SERVICE
During the Hot Deployment, if we exclude an object from the sandbox then it will be omitted from the PRD environment as well. However, the PRD environment can be modified by the Development environment without stopping the apps at prod area.
Want to enhance your skills in dealing with the worlds best CRM, enroll in our Salesforce Training
Let us evaluate between SOQL (Salesforce Object Query Language) and SOSL (Salesforce Object Search Language).
SOQL | SOSL |
---|---|
Returns records | Returns fields |
Records are stored in collections | All records are pertaining to different S objects |
All records are pertaining to single S Object | Selecting fields in different tables from DB |
Search in table single < S object > only returns records only | Search in entire Org (or) DB returns fields only |
One dimensional | Two dimensional |
Contains : | Contains |
SOQL Syntax:-
SOSL Syntax:-
Returning field name1, field name2, – – – – –
1.System.asserts equals ( val1, val2, ‘string’) ;
2.System.asserts not equals ( var1, var2, ‘string’) ;
Winter ’12 for developers’
→ App logic
@ Is Test
public class TestUtil {
public static void create TestAccounts () {
// create some test accounts
}
public static void create TestContacts () {
// create some test contacts
}
}
Checkout SalesForce Sample Resumes
Native classes for serializing and deserializing JSON
The following classes have been added for JSON support:
Eg: List invoices = new List ();
invoices.add (inv1);
invoices.add (inv2);
//Serialize the list of Invoice Statement objects.
String JSON String = JSON.serialize (invoices);
System.debug (‘serialized list of invoices into JSON format:’+ JSON String);
// Deserializing the list of invoices from the JSON string
List deserialized Invoices = (list) JSON.deserialize(JSON String, List.class);
System.assertEquals(invoices.size(), deserializedInvoices.size());
Eg: Http httpProtocal = new Http();
// create an HTTP request to send.
Http Request request = new Http request();
…..
Http Response response = http protocol.send (request);
// Create JSON parser with the http response body
// as an input string.
JSON Parser parser= JSON.create Parser (response.get Body());
Checkout Salesforce Interview Questions
Integrate With Testing For Continuous Integration Apps:
Two API objects are now available to enable starting asynchronous test runs as well as for checking test results:
Apex test queue item: Represents a single Apex class in the Apex Job Queue
Apex test result: Represents the result of an Apex test method execution
You can use this functionality to better integrate with test execution in continuous integration applications.
New methods are being used for determining the execution content in the system class:
isBatch:
Determines if the currently executing code is invoked by batch Apex Job
isFuture:
Determines if the currently executing code is invoked by code containing in a method annotated with @future
isScheduled:
Determines if the currently executing code is invoked by a scheduled Apex job.
Are you looking to get trained on Salesforce, we have the right course designed according to your needs. Our expert trainers help you gain the essential knowledge required for the latest industry needs. Join our Salesforce Certification Training program from your nearest city.
Salesforce Training Chennai, Salesforce Training Dallas, Salesforce Training Bangalore, Salesforce Training Hyderabad, Salesforce Training Mumbai, Salesforce Training Delhi, Salesforce Training Noida, Salesforce Training New York, Salesforce Training Chicago, Salesforce Training Kolkata, Salesforce Training Gurgaon, Salesforce Training Pune.
These courses are equipped with Live Instructor-Led Training, Industry Use cases, and hands-on live projects. Additionally, you get access to Free Mock Interviews, Job and Certification Assistance by Certified Salesforce Trainers
Mindmajix offers different Salesforce certification training according to your desire with hands-on experience on Salesforce concepts
Our work-support plans provide precise options as per your project tasks. Whether you are a newbie or an experienced professional seeking assistance in completing project tasks, we are here with the following plans to meet your custom needs:
Name | Dates | |
---|---|---|
Salesforce Training | Nov 19 to Dec 04 | View Details |
Salesforce Training | Nov 23 to Dec 08 | View Details |
Salesforce Training | Nov 26 to Dec 11 | View Details |
Salesforce Training | Nov 30 to Dec 15 | View Details |
Arogyalokesh is a Technical Content Writer and manages content creation on various IT platforms at Mindmajix. He is dedicated to creating useful and engaging content on Salesforce, Blockchain, Docker, SQL Server, Tangle, Jira, and few other technologies. Get in touch with him on LinkedIn and Twitter.