How to Create Test Cases from Requirements

Explore top LinkedIn content from expert professionals.

Summary

Creating test cases from requirements is the process of translating what a software system should do, as described in business documents, into step-by-step checks that confirm the system works as intended. This ensures each requirement is properly validated, helping teams spot gaps or issues before a product goes live.

  • Review requirements: Carefully read each requirement and its acceptance criteria to understand what needs to be checked and what successful outcomes look like.
  • Write clear scenarios: Develop test cases using simple language, outlining the actions, expected results, and any necessary setup so testers know exactly what to do.
  • Connect with stakeholders: Share your test cases with business users to confirm you’re covering their priorities and to catch any missing scenarios before testing begins.
Summarized by AI based on LinkedIn member posts
  • View profile for Diwakar Singh 🇮🇳

    Mentoring Business Analysts to Be Relevant in an AI-First World — Real Work, Beyond Theory, Beyond Certifications

    103,572 followers

    One of the most misunderstood responsibilities of a Business Analyst is writing User Acceptance Testing (UAT) test cases. Many BAs either avoid it or get too technical. But remember—UAT is about validating that the solution meets the business needs, not system-level defects. 𝐇𝐞𝐫𝐞’𝐬 𝐚 𝐩𝐫𝐚𝐜𝐭𝐢𝐜𝐚𝐥 𝐚𝐩𝐩𝐫𝐨𝐚𝐜𝐡 𝐲𝐨𝐮 𝐜𝐚𝐧 𝐟𝐨𝐥𝐥𝐨𝐰: 💡 𝐒𝐭𝐞𝐩-𝐛𝐲-𝐒𝐭𝐞𝐩 𝐭𝐨 𝐖𝐫𝐢𝐭𝐞 𝐄𝐟𝐟𝐞𝐜𝐭𝐢𝐯𝐞 𝐔𝐀𝐓 𝐓𝐞𝐬𝐭 𝐂𝐚𝐬𝐞𝐬: 1️⃣ Start with a Business Requirement ➤ Pick one requirement or user story. e.g., “As a user, I want to view my transaction history for the past 6 months.” 2️⃣ Understand the Acceptance Criteria ➤ Break it down into what “success” looks like. e.g., Transactions are listed, date range filter works, amounts are accurate. 3️⃣ Define Test Case Components ➤ Test Case ID: UAT-001 ➤ Test Scenario: View transaction history ➤ Test Steps: Login Navigate to 'Transactions' Select 6-month range Click “View” ➤ Expected Result: List of all transactions within date range appears accurately ➤ Actual Result: [To be filled during testing] ➤ Status: Pass/Fail ➤ Comments: [For notes or issues] 4️⃣ Use Business Language ➤ Keep it simple and clear so business users can easily execute it. 5️⃣ Organize in a UAT Template ➤ Use Excel, Google Sheets, or tools like Azure DevOps, Jira with Xray, or TestRail. 🚫 𝐂𝐨𝐦𝐦𝐨𝐧 𝐌𝐢𝐬𝐭𝐚𝐤𝐞𝐬 𝐁𝐀𝐬 𝐌𝐚𝐤𝐞 𝐃𝐮𝐫𝐢𝐧𝐠 𝐔𝐀𝐓: ❌ Writing technical or backend-level test cases (that’s QA’s job) ❌ Not mapping test cases to specific requirements (loses traceability) ❌ Not involving business users early in reviewing test scenarios ❌ Overcomplicating test steps with jargon ❌ Skipping edge cases and negative flows ❌ Assuming UAT is just “happy path” testing ❌ Not validating the test data ahead of time ❌ Forgetting to include Post Conditions or what happens next ✅ 𝐏𝐫𝐨 𝐓𝐢𝐩: As a BA, your goal is not just to check if the system works, but to ensure it solves the business problem it was designed for. BA Helpline

  • View profile for Indraja Beesetty

    SQA Test Engineer | R&D | AI Agent Creator for QA Automation | ISTQB Certified | Mobile, Web & Embedded Testing | Gen AI & LLM Enthusiast | Passionate about innovative QA solutions | Python | JAVA

    6,459 followers

    🚀 EPISODE 1 — ChatGPT for Test Case Generation (AI for QA Engineers) As part of my “Testing Smarter with AI” series, I’m starting with one of the most practical and widely useful tools in the industry today: 🤖 ChatGPT for Test Case Generation In software testing, one of the most time-consuming but critical activities is converting requirements into strong test coverage. Especially when working with detailed documents like: 📌 SDD (System Design Document) 📌 CSDD (Component/Sub-System Design Document) 📌 Functional specs / User stories 📌 API specifications These documents are often detailed, and ensuring complete coverage requires both strong understanding and structured planning. That’s where ChatGPT becomes a great productivity booster. ✅ How ChatGPT helps in Test Case Preparation In my experience, ChatGPT can assist in generating: ✔️ Functional test scenarios ✔️ Positive and negative test cases ✔️ Boundary value test cases ✔️ Input validation coverage ✔️ API request/response validation cases ✔️ Error handling scenarios ✔️ Integration and end-to-end flow cases ✔️ Regression impact areas This helps accelerate the initial test design process and ensures we don’t miss important areas during early analysis. 🧠 How I use ChatGPT with SDD / CSDD When I receive an SDD or CSDD, I focus on sections such as: 📌 Workflow / sequence diagrams 📌 Business rules & validations 📌 Component interactions 📌 Data flow & error handling 📌 Logging / exception cases 📌 API behavior and response codes Then I use ChatGPT to quickly create structured test scenarios. 🔥 Prompt Template I Use 💡 Prompt: You are a Senior QA Engineer. Based on the below SDD/CSDD requirement section, generate detailed test scenarios and test cases. Include functional, negative, boundary, and integration test cases. Provide test data and expected results. Output in a clear table format. This produces a strong baseline test suite which can be reviewed and refined based on the application context. 🧪 Example Scenario (Realistic Use Case) 📌 Requirement: “If OTP is entered incorrectly 3 times, the account should be locked for 15 minutes.” ChatGPT helps generate test coverage such as: ✅ Correct OTP flow ✅ Incorrect OTP attempt tracking ✅ Lock behavior after threshold ✅ Login attempt during lock duration ✅ Unlock behavior after time window ✅ OTP resend / expiry validations ✅ Multi-session/device attempt handling 🎯 Key Takeaway ChatGPT is not meant to replace testing expertise. Instead, it acts as a powerful assistant to: 🚀 Reduce manual effort 📌 Improve test coverage ⏱️ Speed up requirement analysis 🧩 Support better test design 📌 Next Episode Coming Soon: AI tool for automation support 👀 💬 Question to the community: Do you currently use AI tools in your testing process? If yes, which one? #SoftwareTesting #QA #AutomationTesting #ChatGPT #AIinTesting #TestCaseDesign #SDD #CSDD #SDET #TestingSmarterWithAI #TechCommunity

  • View profile for Matthew Thomas Holliday

    Level Up Your Business Analyst Career

    27,493 followers

    How to Write UAT Test Cases (for Business Analysts) I remember when I was a junior BA - the idea of UAT scared me. I didn’t want to admit I didn’t know where to start... So I stayed quiet and tried to figure it out on my own. Turns out, I’d built it up to be more complicated than it really is. Here’s what I learned: As a BA, your role in User Acceptance Testing (UAT) is to ensure the solution actually meets the business need… not just that it functions. To do that effectively, you need a structured approach to writing UAT test cases. Here's how I do it: 1️⃣ Start with the Requirement → Begin with a single requirement or user story. → Each requirement must be tested, and depending on how many acceptance criteria it has, you may need multiple test cases. (Think: What is the business expecting from this requirement?) 2️⃣ Review the Acceptance Criteria → Acceptance criteria define the boundary of success for a requirement. → They help you understand what “good” looks like from the business’s perspective. (Use these criteria as your guideposts for what to test) 3️⃣ Develop Test Cases Based on the Acceptance Criteria → Each acceptance criterion should translate into at least one test case. → Some may need both a positive (happy path) and negative (error or edge case) scenario. (If a criterion says “User must receive a confirmation email,” test both a valid scenario and one where the email fails) 4️⃣ Complete the UAT Template for Each Test Case → For each test case, fill in these fields: ☑ Test Description – A clear statement of what’s being tested e.g. “Test password reset email is triggered for valid email addresses” ☑ Preconditions – Any setup required before testing e.g. “User is logged out and on the login page” ☑ Test Steps – Step-by-step actions for the tester to perform e.g. Click “Forgot Password”, enter email, submit form ☑ Expected Result – What should happen if the system works correctly e.g. “User receives reset email within 2 minutes” (TIP: Keep the language business-friendly so anyone can run the test) 5️⃣ Repeat for Each Requirement → Once you've completed the test cases for one requirement, move to the next and repeat the process. → This ensures full coverage and traceability back to each business objective. 6️⃣ Review with Business Stakeholders → Once your test cases are drafted, share them with your business SMEs or stakeholders. (This step is critical - their feedback confirms that you’re testing what really matters to them) 7️⃣ Prepare for Execution → After validation, the test cases are ready to be run. → Depending on your project, UAT may be carried out by business users, or you may help execute or facilitate it as a BA. 📩 Want a copy of my UAT test case template? → Send me a message and I’ll be happy to share it with you 😊 Found this interesting? Repost to your network, and follow me → Matthew Thomas Holliday #BusinessAnalysis #UAT #BAskills #BAmethods #UATtemplate

Explore categories