Role Prompting (Persona) | AI for Testing | Explained with Step-by-Step Demo
4:46

Role Prompting (Persona) | AI for Testing | Explained with Step-by-Step Demo

Automation Step by Step 29.04.2026 1 334 просмотров 41 лайков

Machine-readable: Markdown · JSON API · Site index

Поделиться Telegram VK Бот
Транскрипт Скачать .md
Анализ с AI
Описание видео
Want better results from AI while testing? In this video, you’ll learn one of the most powerful prompt engineering techniques — Persona (Role Prompting) — using real-world testing scenarios. We’ll use an e-commerce checkout example and show step-by-step how changing the role of AI improves test case quality. Short - https://youtu.be/JNMpXh1Fx2c?si=PpYu3DkJ3pvOqP-0 👉 You’ll learn: What is Persona / Role Prompting Why basic prompts fail How to make AI think like an SDET Hands-on demo using ChatGPT Real comparison: Basic vs Advanced prompts This is a practical, hands-on session designed for testers, SDETs, and beginners. 👉 Try it yourself and see the difference 🚀 prompt engineering testing, role prompting, persona prompting, AI testing prompts, ChatGPT testing, SDET AI prompts, test case generation AI, prompt examples QA ▬▬▬▬▬▬▬ 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 #RolePrompting

Оглавление (1 сегментов)

Segment 1 (00:00 - 04:00)

Hello and welcome. In the last session, we started with prompt engineering and in this session, we are going to do something very interesting. learn role prompting or how do we add persona to our prompts when we chat with AI. So, let's imagine you want to test a checkout page and you want to check different things like adding items, entering the address, checking out process, making payment, etc. So, you want to take help of AI and you go to AI chat and you will write a very basic prompt. So, you can do hands-on along with me if you want. Let's go to You can go to chat GPT or Gemini or any AI chat that you want. So, let's say I will go here and let's say generate test cases for checkout. So, this is a very basic prompt. I will say generate test cases for checkout and I will hit enter. Let's see what does it give us. So, it is giving us some output, some response and based on all the details or its past experience, it is giving me the best possible output. So, basic checkout flow, happy path, user authentication, cart validation, payment scenarios, etc. So, all this is fine, but what if I can make it make my prompt much better by adding a role or persona to the chat where I will say that you are an experienced Sdet. You can say you are a senior QA engineer or a senior automation engineer or whatever you want to say and then you can give your prompt. Generate five test cases for checkout of an e-commerce application including all the scenarios or even if you just give the basic prompt and only add the persona, let's see what will happen. So, let's say I will just copy this and say act as a senior Sdet or it can be a senior automation engineer, QA engineer, etc. and generate test cases for checkout. So, as of now, I have just added a persona and everything else remains same. So, let's see the difference. So, you can see the output will be much more refined, much more polished. It efficient and exact to what exactly we need and you can see the difference here. And if you add some more context and you can say what exactly you need, what kind of test cases, positive, negative, edge test cases, how many, you can add the limits, etc. All that we have learned in the last session, it will make the output even more better and efficient. So, what changes here? So, by adding the role or persona it makes the output much, much better and it makes AI think as that particular role or that particular person or will only check in that particular field. So, AI will have to check a lot of data sets, but when you give a role, persona, the data set that it has to check and prepare the output becomes very less and it gives you much better responses, faster and more efficient and the responses are much more useful. Okay. So, this is how we add role or we add persona to our prompts and this is called as role prompting. All right. So, you can see it will make the output much, much better when we say you are an experienced Sdet or uh imagine or act like a senior Sdet. Now, it knows that it only has to check the data sets related to Sdet like the Sdet standards, Sdet security protocols, testing uh things and business analysis, etc. So, the data sets becomes very limited and it will give us much better responses. Okay. So, just tell AI who it is for or what you want him uh what you want AI to act as and the output improves instantly. Okay. So, let's try something. Let's say you want to test a login page with OTP and you can try with two prompts. The first one will be the very basic prompt and after that, check your output and after that just add the role that act as a senior test engineer or a senior QA and the same prompt and you will see the difference in the output. So, this is how we do role prompting. Okay. I hope this was very useful. I will see you in the next session. Thank you for watching and never stop learning.

Другие видео автора — Automation Step by Step

Ctrl+V

Экстракт Знаний в Telegram

Экстракты и дистилляты из лучших YouTube-каналов — сразу после публикации.

Подписаться

Дайджест Экстрактов

Лучшие методички за неделю — каждый понедельник