QuestionQ12

Prompt Engineering for Effective Software Testing

You are a test analyst using Generative AI to support early test-analysis work for newly written user stories. Your objective is to ensure that the stories are clear, testable, and ready for test case design.

Which of the following sequences BEST shows how Generative AI can be used to improve test analysis through iterative review and refinement?

  1. Initial Review: Ask the LLM to analyze the user stories and identify ambiguities, gaps, or testability issues.
  2. Refinement Suggestions: Based on the identified issues, prompt the LLM to propose clearer or more testable rewordings.
  3. Testability Check: Submit the revised user stories to the LLM for a final assessment of their clarity, completeness, and readiness for test case generation.
  4. Risk-Based Prioritization: Use the LLM to assign risk levels to the conditions in the user stories and suggest testing priorities.
  5. Direct Test Case Generation: Ask the LLM to produce full test cases based on the original user stories.
  • A i, ii, and iii
  • B ii, iv, and v
  • C iii, iv, and v
  • D i, ii, and iv
Explanation

Iterative test analysis uses an initial review to expose ambiguity, missing information, and testability concerns; refinement to improve the user-story wording; and a final assessment of the revised stories before test cases are designed. This feedback loop directly establishes clarity, completeness, and testability.

Community Discussion

No comments yet. Be the first to start the discussion!