What an automated test really is
A test automationTest automationUsing scripts to run test steps and check the results without a person doing it by hand.Open in glossary → script is a manual test case written in a language a computer can run: it opens the app, does the steps, and checks the expected result with an assertionAssertionThe line in an automated test that checks the expected result and fails the test if it's wrong.Open in glossary →. If every assertion holds, the test passes. If one doesn’t, it fails and reports what it saw instead.
What automation does well, and what it can’t do:
| Automation is great at | Automation can’t |
|---|---|
| Repeating the same checks on every build, at night, in minutes | Notice things nobody told it to check |
| Running hundreds of data combinations | Judge whether something looks wrong or feels confusing |
| Checking APIs and calculations exactly | Explore, get curious or follow a hunch |
| Never getting tired or skipping a step | Test a feature that doesn’t exist yet |
So automation doesn’t replace testers. It takes over the repeated checks, so humans can spend their time on new features, exploration and the things scripts can’t see. Which checks are worth automating is covered in Regression and Smoke Suites; where automated tests sit in the test pyramidTest pyramidA model recommending many fast unit tests, fewer integration tests and few end-to-end tests.Open in glossary → is in Levels of Testing.
Checking vs testing
Testers often separate two ideas:
- Checking: confirming a known expectation. “After booking, the text Booking confirmed appears.” A machine can do this perfectly, thousands of times.
- Testing: learning about the product, questioning it, noticing what’s odd. “The confirmation appears, but the time shown is in the restaurant’s time zone, not mine. Is that confusing?” Only a human does this.
Automation is excellent at checking. It only sees what someone told it to look at. If the confirmation screen shows the wrong restaurant name but the test only checks for Booking confirmed, the test passes happily.
What automation does well, and what it can’t
| Automation is great at | Automation can’t |
|---|---|
| Repeating the same checks on every build, at night, in minutes | Notice things nobody told it to check |
| Running hundreds of data combinations | Judge whether something looks wrong or feels confusing |
| Checking APIs and calculations exactly | Explore, get curious or follow a hunch |
| Never getting tired or skipping a step | Test a feature that doesn’t exist yet |
Myths you’ll hear
| Myth | Reality |
|---|---|
| “Automation will replace manual testers.” | It replaces repeated checks. Teams with good automation usually spend more human time on exploration and new features, not less. |
| “Once it’s automated, it’s done.” | Tests need maintenance whenever the app changes. A suite nobody maintains turns red, then gets ignored. |
| “A green run means no bugs.” | It means the checks someone wrote still pass. It says nothing about what nobody checked. |
| “Automate everything.” | Automating unstable, visual or one-off checks costs more than it saves. See Regression and Smoke Suites for what’s worth it. |
Most teams follow the test pyramidTest pyramidA model recommending many fast unit tests, fewer integration tests and few end-to-end tests.Open in glossary →: many fast unit tests written by developers, fewer API tests, and a small number of slow UI tests on top. This lesson focuses on the UI and API tests, because those are the ones testers read, review and often help design.
Check this part
What does an assertion do in an automated test?
Why doesn't automation replace manual testers?