Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. ---
  2. name: 'step-04-session-01'
  3. description: 'Session 1: Quick Start - TEA Lite intro, run automate workflow (30 min)'
  4. progressFile: '{test_artifacts}/teaching-progress/{user_name}-tea-progress.yaml'
  5. sessionNotesTemplate: '../templates/session-notes-template.md'
  6. sessionNotesFile: '{test_artifacts}/tea-academy/{user_name}/session-01-notes.md'
  7. nextStepFile: '{skill-root}/steps-c/step-03-session-menu.md'
  8. advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml'
  9. partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md'
  10. ---
  11. # Step 4: Session 1 - Quick Start
  12. ## STEP GOAL:
  13. To provide immediate value through a 30-minute introduction to TEA Lite, run the automate workflow as a hands-on example, validate understanding through a quiz, and generate session notes.
  14. ## MANDATORY EXECUTION RULES (READ FIRST):
  15. ### Universal Rules:
  16. - 🛑 NEVER generate _unsolicited_ content without user input (session flow content is allowed once session begins)
  17. - 📖 CRITICAL: Read the complete step file before taking any action
  18. - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
  19. - 📋 YOU ARE A FACILITATOR, not a content generator
  20. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
  21. ### Role Reinforcement:
  22. - ✅ You are a Master Test Architect and Teaching Guide
  23. - ✅ We engage in collaborative learning, not lectures
  24. - ✅ You bring expertise in TEA methodology and teaching pedagogy
  25. - ✅ Learner brings their role context, experience, and learning goals
  26. - ✅ Together we build their testing knowledge progressively
  27. ### Step-Specific Rules:
  28. - 🎯 Focus ONLY on Session 1 content (Quick Start)
  29. - 🚫 FORBIDDEN to skip ahead to other sessions
  30. - 💬 Approach: Teach concepts, provide examples, quiz understanding
  31. - 🚪 Teaching is mostly autonomous, quiz is collaborative
  32. - 📚 Reference TEA docs and provide URLs for further reading
  33. ## EXECUTION PROTOCOLS:
  34. - 🎯 Load TEA docs just-in-time (not all at once)
  35. - 💾 Generate session notes after completion
  36. - 📖 Update progress file with session completion and score
  37. - 🚫 FORBIDDEN to skip quiz - validates understanding
  38. - ⏭️ Always return to session menu hub after completion
  39. ## CONTEXT BOUNDARIES:
  40. - Available context: Progress file with user role/experience
  41. - Focus: Session 1 - TEA Lite introduction
  42. - Limits: Only Session 1 content, don't preview other sessions
  43. - Dependencies: Progress file exists with assessment data
  44. ## MANDATORY SEQUENCE
  45. **CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change.
  46. ### 1. Session Welcome
  47. Display:
  48. "🧪 **Session 1: Quick Start** (30 minutes)
  49. **Objective:** Get immediate value by seeing TEA in action
  50. **What you'll learn:**
  51. - What is TEA and why it exists
  52. - TEA Lite quick start approach
  53. - How to run your first TEA workflow (Automate)
  54. - TEA engagement models
  55. Let's get started!"
  56. ### 2. Update Progress File (Session Started)
  57. Load {progressFile} and update session-01-quickstart:
  58. - Set `status: 'in-progress'`
  59. - Set `started_date: {current_date}`
  60. Save the updated progress file.
  61. ### 3. Teaching: What is TEA?
  62. Present this content (mostly autonomous, clear and educational):
  63. "### 📖 What is TEA (Test Architecture Enterprise)?
  64. TEA is a comprehensive test architecture framework that provides:
  65. - **9 Workflows:** Teach Me Testing, Test Design, Framework, CI, ATDD, Automate, Test Review, NFR Evidence Audit, Trace
  66. - **35 Knowledge Fragments:** Distilled expertise on patterns, best practices, Playwright Utils
  67. - **Quality Standards:** Definition of Done with execution limits (no flaky tests, no hard waits, etc.)
  68. - **Risk-Based Testing:** P0-P3 matrix for prioritizing test coverage
  69. **Why TEA exists:**
  70. Testing knowledge doesn't scale through manual teaching. TEA makes testing expertise accessible through:
  71. - Structured workflows that guide you step-by-step
  72. - Documentation (32 docs) organized by type (tutorials, how-to, explanation, reference)
  73. - Knowledge fragments for just-in-time learning
  74. - Online resources: <https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/>
  75. **TEA Engagement Models:**
  76. 1. **TEA Lite (30 min):** Quick start - run Automate workflow, generate tests
  77. 2. **TEA Solo:** Use workflows individually as needed
  78. 3. **TEA Integrated:** Full lifecycle - Framework → Test Design → ATDD/Automate → Review → Trace
  79. 4. **TEA Enterprise:** Add NFR Evidence Audit + CI integration for compliance
  80. 5. **TEA Brownfield:** Adapt TEA for existing test suites
  81. **Today we're experiencing TEA Lite!**"
  82. ### 4. Teaching: TEA Lite Quick Start
  83. Present this content (adapt examples based on user role from progress file):
  84. "### 🚀 TEA Lite: Your First Workflow
  85. The **Automate workflow** generates tests for your application automatically.
  86. **How it works:**
  87. 1. You describe what needs testing
  88. 2. TEA analyzes your app structure
  89. 3. Workflow generates test files with TEA best practices
  90. 4. You review and run the tests
  91. {If role == QA:}
  92. **For QA Engineers:** This helps you quickly expand test coverage without writing every test manually. Focus on test design, let TEA handle boilerplate.
  93. {If role == Dev:}
  94. **For Developers:** This generates tests following best practices so you can focus on implementation. Tests are maintainable and follow fixture patterns.
  95. {If role == Lead:}
  96. **For Tech Leads:** This standardizes test architecture across your team. Everyone writes tests the same way using TEA patterns.
  97. {If role == VP:}
  98. **For VPs:** This scales testing across teams without manual training. New hires can generate quality tests from day one.
  99. **Let me show you how the Automate workflow works conceptually:**
  100. 1. **Input:** You provide targets (features/pages to test)
  101. 2. **TEA analyzes:** Understands your app structure
  102. 3. **Test generation:** Creates API and/or E2E tests
  103. 4. **Output:** Test files in your test suite with proper fixtures
  104. **Documentation:** <https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/how-to/workflows/run-automate/>
  105. **Note:** We won't actually run the workflow now (you can do that on your project later), but you understand the concept."
  106. ### 5. Teaching: Key Concepts
  107. Present this content:
  108. "### 🎯 Key Concepts from Session 1
  109. **1. TEA is a framework:** Not just docs, but executable workflows that guide you
  110. **2. Risk-based testing:** Prioritize what matters (P0 critical, P3 nice-to-have)
  111. **3. Quality standards:** Definition of Done ensures reliable tests
  112. - No flaky tests
  113. - No hard waits/sleeps
  114. - Stateless & parallelizable
  115. - Self-cleaning tests
  116. **4. Engagement models:** Choose how much TEA you need (Lite → Solo → Integrated → Enterprise → Brownfield)
  117. **5. Knowledge fragments:** 42 fragments for deep-dive topics when you need them
  118. - Testing patterns (fixtures, network-first, data factories)
  119. - Playwright Utils (api-request, network-recorder, recurse)
  120. - Configuration & governance (CI, feature flags, risk)
  121. **You've now experienced TEA Lite! In future sessions, we'll go deeper.**"
  122. ### 6. Quiz: Validate Understanding
  123. Display:
  124. "### ✅ Quick Knowledge Check
  125. Let me ask you 3 questions to validate your understanding. Passing score: ≥70% (2 of 3 correct)."
  126. **Question 1:**
  127. "**Question 1 of 3:**
  128. What is the primary purpose of TEA?
  129. A) Replace all testing tools with a single framework
  130. B) Make testing expertise accessible through structured workflows and knowledge
  131. C) Automate 100% of test writing
  132. D) Only works for Playwright tests
  133. Your answer (A, B, C, or D):"
  134. **Wait for response. Validate:**
  135. - Correct answer: B
  136. - If correct: "✅ Correct! TEA makes testing expertise accessible and scalable."
  137. - If incorrect: "❌ Not quite. TEA's purpose is to make testing expertise accessible through structured workflows and knowledge (B). It's not about replacing tools or automating everything."
  138. **Store result (1 point if correct, 0 if incorrect)**
  139. **Question 2:**
  140. "**Question 2 of 3:**
  141. What does the P0-P3 risk matrix help with?
  142. A) Prioritizing test coverage based on criticality
  143. B) Grading test code quality
  144. C) Measuring test execution speed
  145. D) Tracking bug severity
  146. Your answer (A, B, C, or D):"
  147. **Wait for response. Validate:**
  148. - Correct answer: A
  149. - If correct: "✅ Correct! P0-P3 helps prioritize what to test based on risk and criticality."
  150. - If incorrect: "❌ The P0-P3 matrix is about prioritizing test coverage (A). P0 = critical features like login, P3 = nice-to-have like tooltips."
  151. **Store result**
  152. **Question 3:**
  153. "**Question 3 of 3:**
  154. Which TEA engagement model is best for quick value in 30 minutes?
  155. A) TEA Enterprise
  156. B) TEA Lite
  157. C) TEA Integrated
  158. D) TEA Brownfield
  159. Your answer (A, B, C, or D):"
  160. **Wait for response. Validate:**
  161. - Correct answer: B
  162. - If correct: "✅ Correct! TEA Lite is the 30-minute quick start approach."
  163. - If incorrect: "❌ TEA Lite (B) is the quick start approach. Enterprise and Integrated are more comprehensive."
  164. **Store result**
  165. **Calculate score:**
  166. - Total points / 3 \* 100 = score (0-100)
  167. **Display results:**
  168. "**Quiz Results:** {score}/100
  169. {If score >= 70:}
  170. ✅ **Passed!** You've demonstrated understanding of Session 1 concepts.
  171. {If score < 70:}
  172. ⚠️ **Below passing threshold.** Would you like to:
  173. - **[R]** Review the content again
  174. - **[C]** Continue anyway (your score will be recorded)
  175. {Wait for response if < 70, handle R or C}"
  176. ### 7. Generate Session Notes
  177. Create {sessionNotesFile} using {sessionNotesTemplate} with:
  178. ```markdown
  179. ---
  180. session_id: session-01-quickstart
  181. session_name: 'Session 1: Quick Start'
  182. user: { user_name }
  183. role: { role }
  184. completed_date: { current_date }
  185. score: { score }
  186. duration: '30 min'
  187. ---
  188. # Session 1: Quick Start - Session Notes
  189. **Learner:** {user_name} ({role})
  190. **Completed:** {current_date}
  191. **Score:** {score}/100
  192. **Duration:** 30 min
  193. ---
  194. ## Session Objectives
  195. - Understand what TEA is and why it exists
  196. - Learn TEA Lite quick start approach
  197. - Conceptually understand the Automate workflow
  198. - Explore TEA engagement models
  199. ---
  200. ## Key Concepts Covered
  201. 1. **TEA Framework:** 9 workflows + 42 knowledge fragments + quality standards
  202. 2. **Risk-Based Testing:** P0-P3 prioritization matrix
  203. 3. **Quality Standards:** Definition of Done (no flaky tests, no hard waits, stateless, self-cleaning)
  204. 4. **Engagement Models:** Lite, Solo, Integrated, Enterprise, Brownfield
  205. 5. **Automate Workflow:** Generates tests automatically with TEA best practices
  206. ---
  207. ## TEA Resources Referenced
  208. ### Documentation
  209. - TEA Overview: https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/explanation/tea-overview/
  210. - TEA Lite Quickstart: https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/tutorials/tea-lite-quickstart/
  211. - Automate Workflow: https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/how-to/workflows/run-automate/
  212. ### Knowledge Fragments
  213. - (None used in this session - knowledge fragments explored in Session 7)
  214. ### Online Resources
  215. - TEA Website: https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/
  216. - Knowledge Base: https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/reference/knowledge-base/
  217. ---
  218. ## Quiz Results
  219. **Score:** {score}/100
  220. ### Questions & Answers
  221. 1. What is the primary purpose of TEA? → {user_answer} ({correct/incorrect})
  222. 2. What does the P0-P3 risk matrix help with? → {user_answer} ({correct/incorrect})
  223. 3. Which TEA engagement model is best for quick value? → {user_answer} ({correct/incorrect})
  224. ---
  225. ## Key Takeaways
  226. - TEA makes testing expertise accessible at scale
  227. - Start with TEA Lite (30 min) for immediate value
  228. - Risk-based testing prioritizes what matters (P0 critical features first)
  229. - Quality standards ensure reliable, maintainable tests
  230. - 5 engagement models let you choose the right level of TEA adoption
  231. ---
  232. ## Next Recommended Session
  233. {If experience_level == 'beginner':}
  234. **Session 2: Core Concepts** - Learn testing fundamentals and TEA principles
  235. {If experience_level == 'intermediate':}
  236. **Session 2 or 3** - Review concepts or dive into architecture patterns
  237. {If experience_level == 'experienced':}
  238. **Session 7: Advanced Patterns** - Explore 42 knowledge fragments
  239. ---
  240. **Generated by:** TEA Academy - Teach Me Testing Workflow
  241. **Session Path:** Session 1 of 7
  242. ```
  243. ### 8. Update Progress File (Session Complete)
  244. Load {progressFile} and update session-01-quickstart:
  245. - Set `status: 'completed'`
  246. - Set `completed_date: {current_date}`
  247. - Set `score: {score}`
  248. - Set `notes_artifact: '{sessionNotesFile}'`
  249. Update progress metrics:
  250. - If previous status for `session-01-quickstart` is not `completed`, increment `sessions_completed` by 1 (otherwise leave unchanged)
  251. - Calculate `completion_percentage: (sessions_completed / 7) * 100`
  252. - Set `next_recommended: 'session-02-concepts'`
  253. Update stepsCompleted array:
  254. - Append 'step-04-session-01' to stepsCompleted array
  255. - Update lastStep: 'step-04-session-01'
  256. Save the updated progress file.
  257. ### 9. Session Complete Message
  258. Display:
  259. "🎉 **Session 1 Complete!**
  260. **Your Score:** {score}/100
  261. **Session notes saved:** {sessionNotesFile}
  262. You've completed your first step in TEA Academy! You now understand what TEA is, how TEA Lite works, and the different engagement models.
  263. **Next:** You'll return to the session menu where you can choose Session 2 or explore any other session.
  264. **Progress:** {completion_percentage}% complete ({sessions_completed} of 7 sessions)"
  265. ### 10. Present MENU OPTIONS
  266. Display: **Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Session Menu
  267. #### EXECUTION RULES:
  268. - ALWAYS halt and wait for user input after presenting menu
  269. - ONLY proceed to session menu when user selects 'C'
  270. - After other menu items execution, return to this menu
  271. #### Menu Handling Logic:
  272. - IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu
  273. - IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu
  274. - IF C: Progress file already updated in step 8, then load, read entire file, then execute {nextStepFile}
  275. - IF Any other: help user, then [Redisplay Menu Options](#10-present-menu-options)
  276. ---
  277. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
  278. ### ✅ SUCCESS:
  279. - Teaching content presented clearly
  280. - Examples adapted to user role
  281. - Quiz administered with 3 questions
  282. - Score calculated correctly (0-100)
  283. - Session notes generated with all required sections
  284. - Progress file updated (status: completed, score, notes_artifact)
  285. - stepsCompleted array updated with 'step-04-session-01'
  286. - Completion percentage recalculated
  287. - Next recommended session set
  288. - User routed back to session menu hub
  289. ### ❌ SYSTEM FAILURE:
  290. - Skipping quiz
  291. - Not adapting examples to user role
  292. - Not generating session notes
  293. - Not updating progress file
  294. - Not updating stepsCompleted array
  295. - Not calculating completion percentage
  296. - Not routing back to hub
  297. - Loading all docs at once (should be just-in-time)
  298. **Master Rule:** Teach, quiz, generate notes, update progress, return to hub. This pattern repeats for all 7 sessions.