Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

quiz-questions.yaml 8.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. # Quiz Questions Bank
  2. # Organized by session with questions, answers, and explanations
  3. session-01-quickstart:
  4. passing_score: 70
  5. questions:
  6. - id: q1-purpose
  7. question: "What is the primary purpose of TEA?"
  8. options:
  9. A: "Replace all testing tools with a single framework"
  10. B: "Make testing expertise accessible through structured workflows and knowledge"
  11. C: "Automate 100% of test writing"
  12. D: "Only works for Playwright tests"
  13. correct: B
  14. explanation: "TEA makes testing expertise accessible and scalable through workflows and knowledge fragments. It's not about replacing tools or automating everything."
  15. - id: q2-risk-matrix
  16. question: "What does the P0-P3 risk matrix help with?"
  17. options:
  18. A: "Prioritizing test coverage based on criticality"
  19. B: "Grading test code quality"
  20. C: "Measuring test execution speed"
  21. D: "Tracking bug severity"
  22. correct: A
  23. explanation: "P0-P3 helps prioritize what to test based on risk (Probability × Impact). P0 = critical features like login, P3 = nice-to-have like tooltips."
  24. - id: q3-engagement
  25. question: "Which TEA engagement model is best for quick value in 30 minutes?"
  26. options:
  27. A: "TEA Enterprise"
  28. B: "TEA Lite"
  29. C: "TEA Integrated"
  30. D: "TEA Brownfield"
  31. correct: B
  32. explanation: "TEA Lite is the 30-minute quick start approach. Enterprise and Integrated are more comprehensive."
  33. session-02-concepts:
  34. passing_score: 70
  35. questions:
  36. - id: q1-p0-priority
  37. question: "In the P0-P3 matrix, what priority level should login/authentication have?"
  38. options:
  39. A: "P3 - Low priority"
  40. B: "P2 - Medium priority"
  41. C: "P1 - High priority"
  42. D: "P0 - Critical priority"
  43. correct: D
  44. explanation: "Login/authentication is P0 - critical. Business fails if broken. High usage, high impact, business-critical."
  45. - id: q2-hard-waits
  46. question: "What is the problem with using sleep(5000) instead of waitFor conditions?"
  47. options:
  48. A: "It makes tests slower"
  49. B: "It's a hard wait that doesn't react to state changes (violates DoD)"
  50. C: "It uses too much memory"
  51. D: "It's not supported in modern frameworks"
  52. correct: B
  53. explanation: "Hard waits don't react to state changes - they guess timing. Use waitFor to react to conditions. This violates TEA Definition of Done."
  54. - id: q3-self-cleaning
  55. question: "What does 'self-cleaning tests' mean in TEA Definition of Done?"
  56. options:
  57. A: "Tests automatically fix their own bugs"
  58. B: "Tests delete/deactivate entities they create during testing"
  59. C: "Tests run faster by cleaning up code"
  60. D: "Tests remove old test files"
  61. correct: B
  62. explanation: "Self-cleaning means tests delete/deactivate entities they created. No manual cleanup required."
  63. session-03-architecture:
  64. passing_score: 70
  65. questions:
  66. - id: q1-fixtures
  67. question: "What is the main benefit of fixture composition?"
  68. options:
  69. A: "Faster test execution"
  70. B: "DRY - define once, reuse everywhere"
  71. C: "Better error messages"
  72. D: "Automatic screenshot capture"
  73. correct: B
  74. explanation: "Fixture composition allows you to define setup once and reuse everywhere. DRY principle for test setup."
  75. - id: q2-network-first
  76. question: "Why is 'network-first' better than mocking after the action?"
  77. options:
  78. A: "It's faster"
  79. B: "It prevents race conditions"
  80. C: "It uses less memory"
  81. D: "It's easier to write"
  82. correct: B
  83. explanation: "Setting up network interception BEFORE the action prevents race conditions. The mock is ready when the action triggers."
  84. - id: q3-step-file
  85. question: "What pattern does this teaching workflow use?"
  86. options:
  87. A: "Page Object Model"
  88. B: "Behavior Driven Development"
  89. C: "Step-File Architecture"
  90. D: "Test Pyramid"
  91. correct: C
  92. explanation: "This workflow uses step-file architecture: micro-file design, just-in-time loading, sequential enforcement."
  93. session-04-test-design:
  94. passing_score: 70
  95. questions:
  96. - id: q1-test-design-purpose
  97. question: "What does the Test Design workflow help you do?"
  98. options:
  99. A: "Write tests faster"
  100. B: "Plan tests BEFORE writing them"
  101. C: "Run tests in parallel"
  102. D: "Debug test failures"
  103. correct: B
  104. explanation: "Test Design workflow helps you plan tests before writing them. Design before code, like architecture before implementation."
  105. - id: q2-risk-calculation
  106. question: "How do you calculate risk?"
  107. options:
  108. A: "Probability + Impact"
  109. B: "Probability × Impact"
  110. C: "Probability - Impact"
  111. D: "Probability / Impact"
  112. correct: B
  113. explanation: "Risk = Probability × Impact. Multiply the likelihood of failure by the impact of failure."
  114. - id: q3-p0-coverage
  115. question: "For P0 features, which test levels should you use?"
  116. options:
  117. A: "Only E2E tests"
  118. B: "Only unit tests"
  119. C: "Unit + Integration + E2E (comprehensive)"
  120. D: "Manual testing only"
  121. correct: C
  122. explanation: "P0 features need comprehensive coverage: Unit + Integration + E2E. High confidence for critical features."
  123. session-05-atdd-automate:
  124. passing_score: 70
  125. questions:
  126. - id: q1-red-phase
  127. question: "What is the 'red' phase in TDD?"
  128. options:
  129. A: "Tests fail (code doesn't exist yet)"
  130. B: "Tests pass"
  131. C: "Code is refactored"
  132. D: "Tests are deleted"
  133. correct: A
  134. explanation: "Red phase: Tests fail because the code doesn't exist yet. Write tests first, then implement."
  135. - id: q2-atdd-vs-automate
  136. question: "What's the difference between ATDD and Automate workflows?"
  137. options:
  138. A: "ATDD generates E2E, Automate generates API tests"
  139. B: "ATDD writes tests first (red phase), Automate tests existing code"
  140. C: "ATDD is faster than Automate"
  141. D: "They're the same workflow"
  142. correct: B
  143. explanation: "ATDD writes failing tests first (red phase), then you implement. Automate generates tests for existing code (coverage expansion)."
  144. - id: q3-api-testing
  145. question: "Why use pure API tests without a browser?"
  146. options:
  147. A: "They look prettier"
  148. B: "They're easier to debug"
  149. C: "They're faster and test business logic directly"
  150. D: "They're required by TEA"
  151. correct: C
  152. explanation: "Pure API tests are faster (no browser overhead) and test business logic directly without UI complexity."
  153. session-06-quality-trace:
  154. passing_score: 70
  155. questions:
  156. - id: q1-five-dimensions
  157. question: "What are the 5 dimensions in Test Review workflow?"
  158. options:
  159. A: "Speed, cost, coverage, bugs, time"
  160. B: "Determinism, Isolation, Assertions, Structure, Performance"
  161. C: "Unit, integration, E2E, manual, exploratory"
  162. D: "P0, P1, P2, P3, P4"
  163. correct: B
  164. explanation: "Test Review evaluates 5 dimensions: Determinism (no flakiness), Isolation (parallel-safe), Assertions (correct checks), Structure (readable/maintainable organization), Performance (speed)."
  165. - id: q2-release-gate
  166. question: "When should the Trace workflow gate decision be RED (block release)?"
  167. options:
  168. A: "Any test failures exist"
  169. B: "P0 gaps exist (critical requirements not tested)"
  170. C: "Code coverage is below 80%"
  171. D: "Tests are slow"
  172. correct: B
  173. explanation: "RED gate when P0 gaps exist - critical requirements not tested. Don't ship if critical features lack test coverage."
  174. - id: q3-metrics
  175. question: "Which metric matters most for quality?"
  176. options:
  177. A: "Total line coverage %"
  178. B: "Number of tests written"
  179. C: "P0/P1 coverage %"
  180. D: "Test file count"
  181. correct: C
  182. explanation: "P0/P1 coverage matters most - it measures coverage of critical/high-priority features. Total line coverage is a vanity metric."
  183. session-07-advanced:
  184. # No quiz - exploratory session
  185. # Score: 100 (completion based, not quiz based)
  186. passing_score: 100
  187. questions: []