ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 209 - Certified Platform Developer II discussion

Report
Export

A developer notices the execution of all the test methods in a class takes a long time to run, due to the initial setup of ail the test data that is needed to perform the tests.

What should the developer do to speed up test execution?

A.
Define a method that creates test data and annotate with @testSetup.
Answers
A.
Define a method that creates test data and annotate with @testSetup.
B.
Define a method that creates test data and annotate with @createData
Answers
B.
Define a method that creates test data and annotate with @createData
C.
Reduce the amount of test methods in the class.
Answers
C.
Reduce the amount of test methods in the class.
D.
Ensure proper usage of test data factory In all test methods.
Answers
D.
Ensure proper usage of test data factory In all test methods.
Suggested answer: A
asked 23/09/2024
Muhammad Hafizh
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first