Skip to main content
Build the future with Agentforce at TDX in San Francisco or on Salesforce+ on March 5–6. Register now.

Get a Refresh on Testing

Learning Objectives

After completing this unit, you'll be able to:

  • Write and execute tests for triggers, controllers, classes, flows, and processes using various sources of test data.

Key Topics

This unit prepares you for the Testing, Debugging, and Deployment section of the Platform Developer I exam, which makes up 22% of the overall exam. Testing topics include:

  • Testing frameworks and requirements
  • Test data
  • Executing a test
  • Test considerations

This unit provides a number of interactive, real-world, scenario-based questions that are a lot like the ones you can encounter as a Salesforce developer. Looking at these scenarios helps prepare you for the testing topics of the Platform Developer I exam. As you tackle the practice questions, you get immediate feedback on your answers, along with detailed information on why your answers are correct (or incorrect).

The unit also contains interactive flashcards to help you prepare for this section of the exam.

Exam Practice Questions

Ready to jump in? The sample tool below is not scored—it's just an easy way to quiz yourself. To use it, read the scenario and click the answer you think is correct. Some questions may have more than one correct answer. Click Submit and you get a popup telling you whether the answer you chose is correct or incorrect, and why; if there's a longer explanation, click Expand Button and then click anywhere in the window to close it. When you reach the end you can review the answers or retake the questions.

Exam Topic Flashcards

The following flashcards cover testing frameworks, executing tests, and test considerations. Use these interactive flashcards to brush up on some of the key topics you'll find on this part of the exam.

Read the question or term on each card, then click the card to reveal the correct answer. Click the right-facing arrow to move to the next card, and the left-facing arrow to return to the previous card.

Looking for more information? Explore these related badges.

Badge
Content

Apex Testing Badge

Apex Testing

Module

Asynchronous Apex Badge

Asynchronous Apex

Module

Congratulations! You've studied up on all things related to testing. Up next, let's dive into the exam section on debugging and deployment. Let's go!

Resources

Share your Trailhead feedback over on Salesforce Help.

We'd love to hear about your experience with Trailhead - you can now access the new feedback form anytime from the Salesforce Help site.

Learn More Continue to Share Feedback