Introduction:
In software testing, setting the right context is crucial for obtaining accurate and relevant responses from AI tools. By clearly defining the role and the specific task, you can guide the AI to provide more precise and useful outputs. This activity will help you practice crafting prompts that set the appropriate context for various testing tasks.
Purpose:
This activity aims to enable you to understand how to frame prompts effectively by setting the right context, which will improve the quality and relevance of the responses you receive from AI tools during testing.
Activity Steps:
- Select a Testing Role: Choose one of the following roles to frame your prompt:
- Tester
- SDET (Software Development Engineer in Test)
- Requirement Engineer
- Coder / Programmer
- Utility Developer
- Test Lead
- Test Manager
- Define the Testing Task: Here are three sample testing tasks. Select one to use in your prompt:
- Task 1: Identify potential edge cases for a new login feature.
- Task 2: Create test scripts for the Amazon add-to-cart feature using Selenium with the language of your choice.
- Task 3: Review and share ideas to improve the test coverage for an e-commerce website.
- Craft Your Prompt: Combine the selected role and testing task to create a prompt that sets the right context. Use the following format:
“Act like a [Selected Role]. [Additonal elaboration of the context].
Your task is to [Selected Task].”
-
Execute the Prompt: Input the crafted prompt into an AI tool (e.g., ChatGPT, Gemini, etc.) and observe the response.
-
Evaluate the Response: Assess the quality and relevance of the AI’s response. Consider whether the context was clear and if the output aligns with the expectations for the given role and task.
-
Share your observations: Share your input, your output and your thoughts in reply to this post.
For more information and tips on using Generative AI to enhance your testing check out my Prompting for Testers course with MoT.