• Software Testing Dictionary
  • Home

Expected Outcome



Expected Outcome?

During Test design stage, test cases are written such that each case has an expected outcome against which the actual outcomes are compared. The deviation, if any, is known as defect.

In short, after getting the expected outcome should be documented before executing the tests.

While developing the test cases, we usually have the following fields:

  1. Test Scenario

  2. Test Steps

  3. Parameters

  4. Expected Result

  5. Actual Result

Example:

Let us say that we need to check an input field that can accept maximum of 10 characters.

While developing the test cases for the above scenario, the test cases are documented in the following way. In the below example, the first case is a pass scenario while the second case is a FAIL.

ScenarioTest StepExpected OutcomeActual Outcome
Verify that the input field that can accept maximum of 10 charactersLogin to application and key in 10 charactersApplication should be able to accept all 10 characters.Application accepts all 10 characters.
Verify that the input field that can accept maximum of 11 charactersLogin to application and key in 11 charactersApplication should NOT accept all 11 characters.Application accepts all 10 characters.

If the expected result don't match with the actual result, then we log a defect. The defect goes through the defect life cycle and the testers address the same after fix.

Advertisements