QuestionQ14
Prompt Engineering for Effective Software TestingYou lead a team that uses Generative AI to improve automated regression testing. You have found that adapting test scripts to minor UI or API changes is a recurring challenge, causing unnecessary failures and maintenance overhead. You want the LLM to proactively update test scripts to accommodate these modifications.
Which prompt improvement would BEST enable the LLM to support self-healing, adaptive tests?
- A Add an instruction for the LLM to generate detailed test reports with success metrics and key insights.
- B Specify a constraint that the LLM should prioritize test execution based on module criticality and historical defect rates.
- C Expand the instruction to include analyzing code changes to identify high-risk areas for targeted regression testing.
- D Include a directive for the LLM to automatically analyze UI element changes and modify locators within test scripts to prevent failures.
Community Discussion