# CO-STAR Method Prompting for Testers | Write Perfect AI Prompts (Step-by-Step)

## Метаданные

- **Канал:** Automation Step by Step
- **YouTube:** https://www.youtube.com/watch?v=LE578lYq2iw
- **Дата:** 06.05.2026
- **Длительность:** 4:53
- **Просмотры:** 1,166

## Описание

Still struggling to get useful results from AI?

In this video, you’ll learn the CO-STAR Prompting Framework — a simple and powerful way to write clear, structured prompts that actually work in real testing scenarios.

Instead of guessing what to ask AI, you’ll learn how to guide it step-by-step using:

CO-STAR

00:00 Introduction
00:55 Context
01:19 Objective
01:47 Style
01:58 Tone
02:12 Audience
02:41 Response
03:12 Final Prompt using Co-Star method
03:31 Demo of Co-Star with Persona


We walk through a real example (Login with OTP) and improve a bad prompt into a professional, job-ready one—live.

👉 You’ll see how real SDETs use ChatGPT to:

Generate structured test cases
Improve output quality
Save time in daily tasks

This is a hands-on, practical session designed for beginners and working testers.

👉 By the end, you’ll stop writing random prompts and start writing smart prompts that deliver results 🚀

CO-STAR prompting, prompt engineering testing, AI testing prompts, ChatGPT for testers, structured prompts AI, SDET AI workflow, test case generation AI, QA automation AI

▬▬▬▬▬▬▬

Share with all who may need this

If my work has helped you, consider helping any animal near you, in any way you can

Never Stop Learning
Raghav Pal



▬▬▬▬ USEFUL LINKS ▬▬▬▬


✅  ALL TUTORIALS - https://AutomationStepByStep.com/


✅  CI | CD | DEVOPS

Jenkins Beginner - https://bit.ly/2MIn8EC
Jenkins Tips & Trick - https://bit.ly/2LRt6xC
Docker - https://bit.ly/2MInnzx
Jenkinsfile - https://bit.ly/3JSMSZ7
Kubernetes - http://bit.ly/2MJIlMK
Vagrant - https://bit.ly/3MVKdBt
Ansible - https://bit.ly/3MUsY3h
Terraform - https://bit.ly/4hMh3l6
CircleCI - https://bit.ly/4k1AYhw


✅  WEB TESTING 

Selenium Beginners - https://bit.ly/2MGRS8K
Selenium Java Framework from Scratch - https://bit.ly/2N9xvR6
Selenium Python - https://bit.ly/2oyMp5x
Selenium 4 - https://bit.ly/3AiJOlP
Selenium Tips - https://bit.ly/2owxc50
Selenium Builder - https://bit.ly/2MKNtlq
Katalon Studio - https://bit.ly/2wARFdi
Robot Framework with RIDE- https://bit.ly/2Px6Ue9
Robot Framework with Eclipse - http://bit.ly/2N8DZxb

Testim - https://bit.ly/3VbnNQb
TestCafe - https://bit.ly/3O6eYmK
AccelQ - https://bit.ly/3PlsAsh
Cucumber BDD - https://bit.ly/3Cnno4z
Cypress - https://bit.ly/3PpEukM
Playwright - https://bit.ly/3iuPByJ
WebdriverIO - https://bit.ly/3IJyofA
XPath & Web Locators - https://bit.ly/3PpEvoQ


✅  API TESTING 

Web Services (API) - https://bit.ly/2MGafL7
SoapUI - https://bit.ly/2MGahmd
Postman - https://bit.ly/2wz8LrW
Postman 2022 - https://bit.ly/3JWm4qX
Postman 2024 - https://bit.ly/3AE2wr6
Rest Assured - https://bit.ly/3zUdhRD
Karate API Testing - https://bit.ly/3w3H5Ku
General - https://bit.ly/2PYdwmV
JMeter API Testing - https://bit.ly/3AgVPar
Katalon Studio API Testing - https://bit.ly/2BwuCTN
API Mocking - https://bit.ly/3bYPsjS


✅  MOBILE TESTING 

Appium - https://bit.ly/2ZHFSGX
Appium 2 - https://bit.ly/3UJujNJ
Mobile Playlist - https://bit.ly/2PxpeUv


✅  PERFORMANCE TESTING

JMeter Beginner - https://bit.ly/2oBbtIU
JMeter Intermediate - https://bit.ly/2oziNVB
JMeter Advanced - https://bit.ly/2Q22Y6a
JMeter Tips & Tricks - https://bit.ly/2NOfWD2
Gatling - https://bit.ly/3QrWfkV
Performance Testing - https://bit.ly/2wEXbLS
k6 - http://bit.ly/3LOSJUN


✅  SOURCE CODE MANAGEMENT

Git & GitHub - https://bit.ly/2Q1pagY
GITLAB - http://bit.ly/2kQPGyQ


✅  IDE 

Eclipse - https://bit.ly/3AnRhQP
IntelliJ IDEA - https://bit.ly/3AnyDZ8
Visual Studio Code - https://bit.ly/2V15yvt


✅  PROGRAMMING

Java Beginners - https://bit.ly/2PVUcXs
Java Tips & Tricks - https://bit.ly/2CdcDnJ
Groovy - https://bit.ly/2FvWV5C
JavaScript - http://bit.ly/2KJDZ8o
TypeScript - https://bit.ly/3dvJBmz
Python - http://bit.ly/2Z4iRye
Ruby - https://bit.ly/3JRRmzf


✅  BUILD TOOLS

Maven - https://bit.ly/2NJdDRS
Gradle - http://bit.ly/30l3h1B


✅  CLOUD SERVICES 

Browserstack - https://bit.ly/3w7kxZn
Saucelabs - https://bit.ly/3w7kAo1
LambdaTest - https://bit.ly/3C6TBwM


✅  PROJECT MANAGEMENT 

Jira - https://bit.ly/3AFzE1L


✅  DATA FORMATS 

JSON - https://bit.ly/3w450tq
XML - https://bit.ly/3PqRneH


✅  OTHERS

Virtualization on Windows  - http://bit.ly/2SItIL9
Mock Interviews - https://bit.ly/3QGwwVJ

Redis - https://bit.ly/2N9jyCG
Misc - https://bit.ly/2Q2q5xQ
Tools & Tips - https://bit.ly/2oBfwoR
QnA Friday - https://bit.ly/2NgwGpw
Sunday Special - https://bit.ly/2wB23BO



🙌 Connect with Raghav:

* Ask Raghav: https://bit.ly/2CoJGWf
* GitHub: https://github.com/Raghav-Pal
* Udemy: https://www.udemy.com/user/raghav-pal-3/



Shorts Eng - https://bit.ly/3H9bifV
Shorts Hindi - https://bit.ly/3XY7XqN

➡️ Subscribe for more videos: https://www.youtube.com/@RaghavPal

—
#PromptEngineering #AITesting #ChatGPT

## Содержание

### [0:00](https://www.youtube.com/watch?v=LE578lYq2iw) Introduction

Let's say you want to take help of AI and you want to generate some test cases for login with OTP. So, you will write a prompt and you will tell AI, let's say a very basic prompt, generate test cases for login. So, let's say I go to some AI chat, chat GPT, Gemini, etc. And I will say here generate test cases for login with OTP and I will hit enter and you will see it will give us a response and the response will be very generic, very vague, not exactly what maybe I may be needing for my exact project or work because I have not given all the details. So, this may not work very well. So, let's build this prompt step by step using the Co-Star framework. So, what's the Co-Star framework? So, here every letter has a meaning. So, let's see. Let's start with C. C stands for

### [0:55](https://www.youtube.com/watch?v=LE578lYq2iw&t=55s) Context

context. So, what exactly you need, what exactly you are testing. So, this will give a very, very good starting point to AI. So, here our context is we want to test login with OTP. Okay? So, let's keep it very simple. I will write the final prompt in a moment. Let's first discuss and see what exactly this means. Next is O

### [1:19](https://www.youtube.com/watch?v=LE578lYq2iw&t=79s) Objective

objective. So, what do you exactly want from AI? So, let's be very clear and very specific. It will help AI a lot. Here we want to generate five test cases. Now, if you have seen the earlier session, it is something uh close to the constraints. Here we are telling that we don't want any number of test cases, but only five test cases. And it can be objective can differ for different scenarios. Here our objective is to generate five test cases.

### [1:47](https://www.youtube.com/watch?v=LE578lYq2iw&t=107s) Style

Next is S for style. Here you can say how should the output look, what format do you want. So, we want here a BDD format. Then T stands for tone. Now, here you

### [1:58](https://www.youtube.com/watch?v=LE578lYq2iw&t=118s) Tone

can tell AI do you want detailed, concise, or any kind of tone that you want the AI to take care. Here I will say I want very concise output.

### [2:12](https://www.youtube.com/watch?v=LE578lYq2iw&t=132s) Audience

output. Then A is for audience. This is very important. If you tell AI who is the audience for this response, it will create the response as per that audience and it will be very, very useful. So, here we are getting it created or generated for testers. Now, in place of testers, if you say QA or maybe developers or some business people, the output will differ and therefore it is very important to tell the who will be using the output or who is the audience. Then last, R is for

### [2:41](https://www.youtube.com/watch?v=LE578lYq2iw&t=161s) Response

response. Now, here we can say how we want the response. Are there any more constraints or maybe format or structure? So, here we can say we want a table format and no explanation. So, these things, the Co-Star framework, if we apply and create our prompts using all these things, context, objective, style, tone, audience, response, it will make our prompts so much better and will give us very useful and efficient output and responses. So, this is how our final

### [3:12](https://www.youtube.com/watch?v=LE578lYq2iw&t=192s) Final Prompt using Co-Star method

prompt will look like. We have added all these elements of the Co-Star framework. Now, in addition to this, we can also add persona or role prompting that we have learned earlier where we can say that act as a senior estate or senior QA engineer. So, let me just go here and say

### [3:31](https://www.youtube.com/watch?v=LE578lYq2iw&t=211s) Demo of Co-Star with Persona

I will say you are a senior QA engineer and then I will just paste what we have created our prompt using the Co-Star framework. Now, this thing, when we give a give our persona or role, it will help AI a lot because now it will have to search within some limited data sets and not all the data sets. So, let us just run and check this. And you will see the difference in the responses. So, you can see now it is giving us a table format and very specific very accurate, exactly to what we need, five test cases with all the details we need. So, it will be very useful. We can directly use it. So, here you can see this is how this Co-Star framework can help us a lot. And whenever you are chatting with AI chats or you are trying to get these things for you with the help of AI, you can apply this Co-Star technique. You can see you can exactly say this is my context, this is my objective, this is the style, tone, or whatever you need along with the persona or role and you will see you will get so much better output and useful outputs. I hope this was useful. I will see you soon. Thank you for watching and never stop learning.

---
*Источник: https://ekstraktznaniy.ru/video/50056*