Can anonymous code be executed to test Apex classes?
NO!
Major differences in executing Apex code anonymously and in unit tests:
Proper procedure for unit testing
What are the different tools you can use to run Apex test methods?
What groupings of unit tests can you run?
What is NOT counted as part of Apex code coverage?
- Test methods and test classes
What is Suite Manager?
Suite Manager is used to create or delete test suites or edit which classes your test suite contains.
A test suite is a collection of Apex test classes that you run together.
Suite Manager is only used to bundle test classes, not to create or edit them directly.
What does runAs() enforce and not enforce in regards to user access?
What is a debug level?
A set of log levels for debug log categories
What is the Log Inspector?
A context-sensitive execution viewer that shows the source of an operation, what triggered the operation, and what occurred afterward.
Use this tool to inspect debug logs that include database events, Apex processing, workflow, and validation logic.
What information can the Log Inspector contain?
Difference between AsyncApexJob and CronTrigger objects when using a SOQL query to obtain information about a scheduled job?
AsyncApexJob uses “Status”, CronTrigger uses “State”
How often can Partial Copy and Full Copy sandboxes be refreshed?
- Full copy = 29 days
What information does the Checkpoints tab provide?
What type of sandbox should be used for quality assurance tasks like user acceptance testing, integration testing, and training?
Partial Copy
What type of sandbox should be used for performance testing, load testing, and staging?
Full Copy
Common use cases for Tooling API
*Tooling API can be used for fine-grained access to the org’s metadata. Simpler migrations should use the Metadata API.
Debug log categories
Debug log level options
(in order from least to most information provided)
What type of environments can you use to develop a managed package?
- Partner Developer Edition
What user is created automatically by Salesforce, where the user detail record cannot be maintained?
Some Salesforce applications automatically run their business processes as it.
Platform Integration User
When does the Platform Integration User show up in audit fields after setting up a trace flag for it?
Capabilities of VS Code
When should a scratch org be used?
- To work on a single feature or update
How do you use the “@isTest” and “@TestSetup” annotations?