Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Introduction to Test Classes in Salesforce

via LinkedIn Learning

Overview

Prepare for a new career with $100 off Coursera Plus
Gear up for jobs in high-demand fields: data analytics, digital marketing, and more.
Enhance your Salesforce development tool kit by learning why test classes are needed, how to write them for supportability, and how to achieve maximum code coverage.

Syllabus

Introduction
  • The power of test classes in Salesforce
  • What you should know
1. The Need for Tests
  • Test class requirements
  • Value of test classes
  • Test-driven development
  • Miscellaneous tests
2. Write Tests
  • Basic test class for Apex code
  • Test data creation and validation
  • Naming convention: Test classes
  • Initial test class modifications
  • Coding example: Test utility
  • Testing using a test factory
  • Set global values for the test factory
  • Set up a test factory
  • Customize a test factory
  • Testing with a test factory
3. Common Concerns with Test Classes
  • Best practices with test class
  • System asserts
  • Static resources
  • Custom settings vs. Custom metadata
  • Profiles and record types
4. Beyond the Basics
  • Advanced testing topics
  • Batch Apex
  • Mock framework
  • Testing @future
  • Testing visual force pages
Conclusion
  • Next steps

Taught by

Duard Lynn Davis

Reviews

4.6 rating at LinkedIn Learning based on 23 ratings

Start your review of Introduction to Test Classes in Salesforce

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.