Universal Containers (UC) is implementing Salesforce and wants the custom code to be unit-tested for all adverse conditions. Which two best practices should an Architect recommend while implementing Test Classes? Choose 2 answers
A.
Execute test classes under various profiles
B.
Test classes should not create custom setting data.
C.
Test classes must use existing data in the environment.
D.
Test data must have positive as well as negative data.
Test classes should execute under various profiles to ensure that the code works for different user permissions and sharing settings. Test data must have positive as well as negative data to cover all possible scenarios and edge cases.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit