Test Case Execution
What is Test Case Execution?
Test case execution is the process of running the designed test cases against the application under test, comparing the actual results to the expected results.
Steps in Test Case Execution
- Set Up the Test Environment: Ensure the correct build, data, and configuration are in place.
- Execute Test Steps: Perform each step exactly as documented in the test case.
- Record Actual Results: Note what actually happened during execution.
- Compare with Expected Results: Mark the test case as Pass, Fail, or Blocked.
- Log Defects: Raise a defect report for any failed test case.
- Update Test Execution Reports: Track overall progress and coverage.
Why Careful Execution Matters
Consistent, disciplined execution ensures results are trustworthy and repeatable, and provides accurate data for tracking test progress and product quality.
Before the First Test Runs: Entry Criteria
Execution goes smoothly only when a few conditions are met first. Most teams agree on entry criteria such as:
- The build is deployed to the test environment and its version number is recorded.
- A smoke test has passed, proving the main screens open and login works.
- Test data, user accounts and third-party sandboxes are ready.
- Test cases are reviewed and assigned to testers in the test management tool.
- Known blockers from the previous cycle are fixed or documented.
If the smoke test fails, the build is usually rejected rather than tested further, which saves hours of logging defects that all share one cause.
Execution Status Values and What They Mean
| Status | Use it when |
|---|---|
| Pass | Every step produced the expected result |
| Fail | At least one actual result differs from the expected one; a defect ID is attached |
| Blocked | The test cannot start or continue because of another defect or an environment problem |
| Not Run | Planned for this cycle but not yet executed |
| Deferred / Skipped | Intentionally left out of this cycle, with a recorded reason |
Using these values consistently matters, because the execution report is built from them. Marking a blocked test as failed, for instance, inflates the defect count and hides the real blocker.
Worked Example: One Execution Cycle for Login
A tester runs five login cases on build 3.8.2. The execution log might look like this:
| Case | Actual result | Status | Defect |
|---|---|---|---|
| TC-L01 valid login | Dashboard opened | Pass | - |
| TC-L02 wrong password | Error shown, but message says "user not found" | Fail | BUG-311 |
| TC-L03 lock after 3 attempts | Account locked as expected | Pass | - |
| TC-L04 reset password email | Mail server down in test environment | Blocked | ENV-27 |
| TC-L05 remember me | Not started | Not Run | - |
The defect report for BUG-311 would include the build number, exact steps, test data, a screenshot and the expected versus actual message. When a fix arrives, the tester retests TC-L02 and then runs nearby regression cases, such as TC-L01 and TC-L03, to confirm the fix did not break related behaviour.
Running tests in the right order
- Smoke tests first, to confirm the build is testable.
- High-priority cases covering core business flows such as payment or checkout.
- New features and recently changed areas, where defects are most likely.
- Remaining functional cases, then lower-risk cosmetic checks.
- Retests of fixed defects as fixes arrive, followed by targeted regression.
Ordering by risk means that if time runs out, the untested cases are the least important ones.
Exit Criteria and Execution Mistakes
A cycle normally ends when planned cases are executed, no open critical defects remain, and any accepted risks are signed off by the product owner. Common slips during execution include:
- Changing steps on the fly without updating the test case, so the next tester cannot repeat them.
- Writing "works fine" instead of recording the actual result observed.
- Testing on the wrong build because the version was not checked.
- Reusing test data that an earlier test already modified.
- Logging several unrelated problems inside one defect.
A quick daily habit helps: update statuses before the stand-up meeting, so progress charts reflect reality.
Ready to master real-world software testing?
Learn manual and automation testing hands-on with mentor-led sessions.