Slide 34
Slide 34 text
It is also possible and, sometimes, beneficial to combine several prompt engineering techniques within the same use
case. In practice, testers frequently create multi-layered prompt strategies. For example, a tester may start with meta
prompting to generate an initial, well-structured prompt template. That generated prompt may include example inputs
or outputs that require adaptation or expansion. This is where few-shot prompting becomes useful. Finally, to ensure
that the task can be validated step by step, the tester can break the overall activity into smaller, manageable subtasks,
applying prompt chaining to verify intermediate results before moving forward. In other words, prompt engineering
techniques are not isolated tools but they can be combined to create more reliable, more controlled, and more effective
interactions with GenAI during test activities.
Key Takeaways – 2.2
● Prompt engineering techniques help GenAI support a wide range of testing activities, including test analysis,
design, implementation, regression testing, monitoring, and control
● GenAI can analyse requirements, identify defects and risks, generate test conditions, recommend test techniques,
and support coverage analysis
● LLMs accelerate test design and implementation by generating test cases, synthetic test data, automated scripts,
and execution schedules
● In regression testing, GenAI supports impact analysis, keyword-driven automation, self-healing tests, defect
reporting, and test optimisation
● GenAI enhances test monitoring and control by analysing metrics, identifying trends and risks, supporting
prioritisation, and generating reports and dashboards
● Different prompting techniques are suited for different tasks: prompt chaining for complex multi-step activities,
few-shot prompting for structured repetitive outputs, and meta prompting for flexible and evolving tasks
ISTQB® CT-GenAI Training Course | Chapter 2. Prompt Engineering for Effective Software Testing Page 34 of 44