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
()
Ex_Files_Salesforce_Introduction_to_Test_Classes.zip
(101 KB)