While working in a sandbox, an apex test fails when run in the test framework. However, running the apex test logic in the execute Anonymous window succeeds with no exceptions or errors.

Why did the method fail in the sandbox test framework but succeeded in the Developer Console?

The test method relies on existing data in the sandbox.

The test method does not use system.runAs to execute as a specific user.

The test method is calling an @future method.

The test method has a syntax error in the code.

Correct Option - a

To get all Infosys Certified Salesforce Platform Developer 1 Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in