Why did the test method fail in the sandbox and pass in the Developer Console?
A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors.
Why did the test method fail in the sandbox and pass in the Developer Console?
A . The test method has a syntax error in the code.
B . The test method relies on existing data in the sandbox.
C . The test method is calling an @future method.
D . The test method does not use System.runAs to execute as a specific user.
Answer: B
Latest CRT-450 Practice Questions with 372 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments