QuestionQ9

Prompt Engineering for Effective Software Testing

A test engineer is studying the six components of a structured prompt for Generative AI in software testing.

Which of the following statements incorrectly characterizes one of these components?

  • A The Role component specifies the persona the Generative AI model should adopt, such as a tester or test automation engineer.
  • B The Context component provides background information about the test object or specific functionality being tested to help the model determine test conditions.
  • C The Instruction component outlines the specific task the Generative AI model is required to perform, including relevant requirements for the task.
  • D The Constraints component is primarily used to specify the desired output format for the AI's response, such as a markdown table or Gherkin syntax.
Explanation

Constraints specify restrictions or special considerations that the LLM must follow, including how instructions are applied to input data. The expected response structure or syntax—such as a Markdown table or Gherkin—is specified by the separate output-format component.

Learn more

Community Discussion

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