ACE AI Startup BootcampDay 8: QA, Testing, and Code Audit
← Back to LMS Classroom
DAY 8 TEXTBOOKACE Startup SW/AI Pilot
ACE AI Startup Bootcamp Textbook Series 08

QA, Testing, and Code Audit

A self-study textbook covering essential theory, comparative examples, guided practice, quality review, and a capstone exercise. Central question: How do we find failures before release and create evidence that prevents recurrence?

ACE AI Startup Bootcamp | Day 8Study Guide
HOW TO STUDY

Learning Goals and Study Routine

How do we find failures before release and create evidence that prevents recurrence? You complete today’s lesson when you can answer this question in your own words, produce the required artifact, and review its quality.

Theory: 60 minPractice: 90 minReview: 30 min
01

Explain the test pyramid and each layer’s purpose.

02

Convert requirements into test cases.

03

Apply boundary-value and equivalence-partition techniques.

04

Distinguish regression from exploratory testing.

05

Perform basic OWASP-oriented security checks.

06

Report defects in a reproducible format.

Recommended self-study routine

  1. Explain why a problem occurs before memorizing its terminology.
  2. Describe the difference between good and poor examples using observable criteria.
  3. Attempt the capstone before opening the model answer.
  4. Mark missing conditions in a second color and revise your artifact.
ACE AI Startup Bootcamp | Day 8Table of Contents
CONTENTS

Table of Contents

Completion standard

Submit the capstone artifact, score at least 80/100 on the self-review, and write your own answers to the four concept questions.

ACE AI Startup Bootcamp | Day 8Chapter 1 · Core Theory
CHAPTER 01

Core Theory: QA, Testing, and Code Audit

Each technical term exists to solve a recurring design problem. Study when and why the concept is needed, not merely its definition.

Core conceptWorking definition
Unit TestA fast isolated check of a small logic unit.
Integration TestA check of interaction among a database, API, or other components.
E2E TestA check of an entire critical journey from the user’s perspective.
Boundary ValueA value near a minimum or maximum where defects often occur.
Regression TestA test that prevents a corrected defect from returning.
Threat ModelingAnalysis of attackers, assets, entry points, and mitigations.

Poor and Effective Approaches

Avoid

Click a button once and record “works correctly.”

Prefer

Record preconditions, input, steps, and expected result, then exercise normal, boundary, permission, and failure conditions.

Design formula

[Requirement ID] + [Precondition] + [Input] + [Steps] + [Expected Result] + [Evidence]

ACE AI Startup Bootcamp | Day 8Chapter 2 · Guided Practice
CHAPTER 02

A Six-Step Design Workflow

1

Define the problem

Prioritize testing by user impact and risk.

2

Extract the structure

Create normal, boundary, error, and authorization cases for each requirement.

3

Design the core flow

Place logic in unit tests, connections in integration tests, and critical journeys in E2E.

4

Add failure conditions

Reproduce failures, fix the cause, and preserve a regression test.

5

Connect policies

Audit authentication, authorization, validation, and secret exposure.

6

Verify and trace

Report environment, steps, expected and actual results, screenshots, and logs.

Worked Example

Test-case example
TC-PAY-003 Payment amount boundaries Precondition: A signed-in user has a nonempty cart. Input: 0, 1, maximum allowed, and maximum+1 Expected: Only allowed values reach authorization; others show a specific error. Security check: The server recalculates the total from product prices instead of trusting the client total.

Questions for reading the example

  • Are the input and initiating condition explicit?
  • Are success and failure outcomes observable?
  • Are duplication, authorization, concurrency, and dependency failure covered as needed?
  • Can the result be traced back to a requirement?
ACE AI Startup Bootcamp | Day 8Chapter 3 · Review
CHAPTER 03

Concept Check and Quality Review

CONCEPT CHECK
  1. Why does 100% code coverage not prove the absence of defects?
  2. What cost does a flaky test impose?
  3. How do authentication and authorization tests differ?
  4. Why must a defect report include environment details?

Answer each in two or three sentences and add one example that supports your explanation.

Self-Assessment · 100 points

AreaStandardPoints
AccuracyConcepts and technical choices match the facts and requirements.25
CompletenessNormal flow, boundaries, failures, and recovery are covered.25
ConsistencyTerms, IDs, states, and interfaces agree across artifacts.20
VerifiabilityObservable outcomes and completion criteria are present.20
ReasoningThe choice and its tradeoffs can be explained clearly.10
If your score is below 80

Do not only correct the result. Record which question you failed to ask so your next design process prevents the same omission.

ACE AI Startup Bootcamp | Day 8Chapter 4 · Capstone
CHAPTER 04

Capstone Exercise and Model Answer

SUBMISSION

Create a test matrix for a login API, including success, wrong password, nonexistent user, repeated failures, and SQL-injection-shaped input.

  1. List assumptions and unresolved decisions first.
  2. Produce the main design as a table, diagram, or code block.
  3. Include the normal flow and at least three failures or boundaries.
  4. Score it with the rubric and compare before and after revision.
Open the model answer

Responses should avoid exposing whether an account exists. Verify rate limiting or lockout for repeated failures, safe parameter handling for SQL-shaped text, correct token properties on success, and absence of passwords from logs.

How to use the answer

The model is not the only valid design. If yours differs, explain the requirement, cost, complexity, or risk that justifies your choice.

ACE AI Startup Bootcamp | Day 8Lesson Review
REVIEW

Glossary and Final Checklist

TermPlain-English meaning
Test OracleThe source used to determine whether a result is correct.
Equivalence PartitionA group of inputs expected to behave alike.
Flaky TestA test that intermittently fails without a code change.
RegressionA previously working behavior that breaks again.
OWASPA community providing web-security risks and guidance.
SeverityThe impact a defect has on the system or user.

Eight checks before submission

  1. Can you answer today’s central question in your own words?
  2. Are inputs, conditions, and results explicit?
  3. Did you include failures and recovery, not only the happy path?
  4. Did you review concurrency, duplicate requests, and permissions?
  5. Did you account for dependency failure and timeouts?
  6. Can you explain the disadvantages and alternatives to your choice?
  7. Are terminology and states consistent across artifacts?
  8. Is there an observable or testable completion standard?
Day 8 in one question

How do we find failures before release and create evidence that prevents recurrence? Answer it now using evidence from the artifact you created.

ACE AI Startup Bootcamp | Day 8Self-study reference
SELF-STUDY 01

Key Terms in Context

Learn each term as a decision tool. Read across each row: definition, reason to use it, and the failure it prevents.

TermPlain definitionWhy it mattersExample or caution
Unit testAn isolated check of a small unit such as a function or class.It finds logic regressions quickly and precisely.Control external dependencies with test doubles.
Integration testA check that databases, APIs, and services work together.It catches contract errors at boundaries.Use schemas and configuration close to production.
End-to-end testA user-level check of the full workflow, often through a browser.It proves the critical business path in a realistic system.Keep it focused because it is slower and more fragile.
RegressionPreviously working behavior broken by a change.Automated tests should detect this risk.Add a reproduction test whenever fixing a bug.
Test doubleA stub, fake, or mock replacing a real dependency.It makes failures and edge cases controllable.Avoid asserting irrelevant implementation details.
Static analysisType, rule, and vulnerability checks without executing the program.It catches low-cost defects early.It complements rather than replaces runtime tests.
Practice scenario

A registration feature must handle duplicate email, weak password, network retry, and permission errors.

ACE AI Startup Bootcamp | Day 8Guided practice
SELF-STUDY 02

Guided Practice and Troubleshooting

Practice scenario

A registration feature must handle duplicate email, weak password, network retry, and permission errors.

Complete in order

  1. Turn requirements into Given-When-Then test conditions.
  2. Prioritize happy, boundary, error, and permission cases by risk.
  3. Catch defects at the cheapest layer: unit, then integration, then E2E.
  4. Reproduce the failing test, fix it, and run the full regression suite.
Required evidence

Save one artifact, three assumptions, and at least three failure cases. A classmate should be able to reproduce your reasoning without asking what you meant.

If the result is wrong, diagnose it

Observed symptomLikely causeNext action
Test fails intermittentlyTime, network, or shared-state dependencyUse a fixed clock and isolated test data
Every refactor rewrites many testsTests are coupled to implementationAssert public behavior and outcomes
Tests pass but production failsMissing real-boundary coverageAdd representative integration and E2E checks
ACE AI Startup Bootcamp | Day 8Retrieval practice
SELF-STUDY 03

Check Your Understanding

Retrieval check — answer before opening

What is the test pyramid?

Use many fast unit tests, a moderate integration layer, and a small number of critical E2E tests.

Is 100% coverage sufficient?

No. Coverage shows executed lines, not whether important claims and boundaries were asserted.

When is QA complete?

Major risks have reproducible tests with explicit expected results.

Teach it back in two minutes

Explain the day's main decision, one failure mode, and one verification method without reading the page. If you cannot connect all three, return to the row or diagnostic case you missed.