Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 7 Question 96 Discussion
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?
B) Move the prerequisite reference data setup to a TestDataFactory and call that from each test method, and C) Move the prerequisite reference data setup to a @testSetup method in the test class.
A) Turn off triggers, flows, and validations when running tests.
D) Move the prerequisite reference data setup to the constructor for the test class.
Ryan
6 months agoAlex
6 months agoKaitlyn
7 months agoSarina
7 months agoRima
7 months agoFrank
7 months agoElden
8 months agoAnnett
8 months agoMalcom
8 months agoDeonna
8 months agoDonette
8 months agoBette
8 months agoKattie
8 months agoEdison
8 months agoKristel
8 months agoJess
8 months agoAnastacia
1 year agoJacklyn
11 months agoMalcolm
11 months agoMauricio
12 months agoTheresia
1 year agoEmile
1 year agoMendy
1 year agoJanae
1 year agoJulianna
1 year agoWilliam
1 year agoJaney
1 year agoKimbery
1 year agoTeresita
1 year agoJenelle
1 year agoInes
1 year agoDaron
1 year agoRenea
1 year agoCasandra
1 year agoChantay
1 year agoRefugia
1 year agoBilli
1 year agoCarlton
1 year agoTasia
1 year agoBrandon
1 year agoNatalya
1 year ago