Certified Pega System Architect v7.2 — Question 12
You have designed a decision tree that you want to unit test. You want to test various input values to ensure that you get the expected results. How would you unit test your decision tree?
Answer options
- A. Run the decision tree and enter values on the test page.
- B. Check the decision tree for completeness.
- C. Check the decision tree for conflicts.
- D. Add the decision tree to a decision shape in your application and create cases using various input values.
Correct answer: A
Explanation
The correct answer is A because running the decision tree with various input values directly tests its functionality and ensures the expected outcomes. Options B and C focus on reviewing the structure of the decision tree rather than executing it, which does not validate its operational correctness. Option D, while useful for integration testing, does not specifically address unit testing of the decision tree itself.