What can a develope...
 
Notifications
Clear all

What can a developer to do address the issue?

1 Posts
1 Users
0 Likes
143 Views
 Tuan
(@shippertuan)
Noble Member
Joined: 2 years ago
Posts: 713
Topic starter  

A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow .

What can a developer to do address the issue?

  • A . Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.
  • B . Move the prerequisite reference data setup to the constructor for the test class.
  • C . Move the prerequisite reference data setup to a static method in the test class and call that from each test method.
  • D . Move the prerequisite reference data setup to a @testSetup method in the test class.

Show Answer Hide Answer

Suggested Answer: A

   
Quote

Latest Salesforce PDII Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: