Show answerHide answer
Correct answer: A, C The test script should be used to define the test classes. The acceptance criteria should have more details.
Explanation
ExplanationUniversal Containers has 80% code coverage yet a high defect count. This signals that coverage exists but is not meaningful — tests aren't validating real business scenarios, and requirements are ambiguous.
A is correct because test classes should be derived from the test scripts in the test plan. Test scripts define the actual business scenarios, positive/negative paths, and edge cases. When developers build test classes from these scripts, tests validate real behavior rather than merely executing lines of code to hit a coverage number. This catches defects earlier and improves test quality — not just quantity.
C is correct because vague acceptance criteria are a primary root cause of defects. When criteria lack specifics (validation rules, required fields, error handling, boundary conditions), developers and testers interpret requirements differently, producing mismatched implementations and missed scenarios. Detailed, testable acceptance criteria align everyone and reduce ambiguity-driven rework.
Together, A and C attack the root causes: poor requirements and weak test design — not the symptom (coverage percentage).
Why Other Options Are Incorrect
B (increase coverage to 95%)
— Salesforce requires only 75% coverage for production deployment. Chasing 95% encourages low-value "coverage-padding" tests that assert nothing meaningful, inflating numbers without reducing defects.
B (test analyst must create test classes)
— This role constraint isn't a recognized best practice. Developers typically own Apex test classes (they know the code); test analysts own the test plan. Merging roles creates bottlenecks and doesn't inherently improve quality.
References
* Salesforce Developer Docs – Apex Testing: "Testing Best Practices" (test positive/negative cases, bulk testing, use TestDataFactory).