Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of the 'System.runAs()' method in Apex testing?
Answer: The 'System.runAs()' method in Apex testing is used to run a block of code with the specified user context. It is often used to test code that depends on user permissions and profiles.
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook