A useful automated test has an oracle
A checkout script that clicks every button is not enough. It must check an outcome, such as the final total or saved order status. That expected result is the test oracle. Without it, a script can complete while the application behaves incorrectly.
Separate test setup from the behavior you want to examine. Create a known customer and product before opening checkout. This makes the result easier to interpret because unrelated registration or catalog failures do not obscure the rule under examination today.
Choose the right layer
Check a tax calculation directly in a unit test when the rule lives in a function. Check database mapping through an integration test. Use a browser journey when the risk depends on navigation, rendering, authentication, or several connected application services.
These layers answer different questions and have different setup costs. A fast calculation check cannot prove that the browser sends the right input. A browser test can cover that connection, but repeating every arithmetic boundary through the browser adds unnecessary maintenance.
Keep exploration in the process
Automation repeats known expectations. Exploratory testing can reveal confusing flows, missing requirements, and unexpected combinations that nobody encoded. Use failure reports and production observations to decide which newly discovered behavior deserves a stable automated check in a future change.
Assign a maintainer to each test area and review failures promptly. A suite that stays red becomes weak evidence because new defects hide among old failures. Track useful feedback time and unresolved failures alongside execution counts to keep the suite credible.
Working sheet
| Risk | Useful check | Expected result |
|---|---|---|
| Discount boundary | Unit test | Exact discounted total |
| Stored order | Integration test | Correct persisted fields |
| Checkout navigation | Browser test | Order confirmation visible |
| Confusing wording | Human exploration | Clear user understanding |
Questions about what is test automation?
Can all testing be automated?
No. Automated checks require defined expectations. Human investigation remains useful for new risks and unclear behavior.
Where should a team start?
Start with one costly regression and an explicit expected result. Select the cheapest test layer that can detect it.
How should I use the working sheet?
Download the CSV and replace the sample rows with evidence from your repository. Record a clear acceptance check and an owner for each item. Keep unresolved assumptions visible rather than treating the example as a completed assessment.
Sources and further reading
Examples are illustrative. They are not customer results, security guarantees, or a substitute for checking the documentation for your installed version.
