Chapter4 - Session1 - Test Case Design and Implementation
Chapter4 - Session1 - Test Case Design and Implementation
Chapter 4
TEST IMPLEMENTATION AND
TEST REPORT
Session 1
TEST CASE DESIGN AND
IMPLEMENTATION
Contents
1 Test Plan
2 Test procedure
3 Test scenario
4 Test case
5 Test execution
1.Test plan
Test Plan it’s a document describing the scope, approach,
resources and schedule of intended test activities.
Test Scenario 1 Test Scenario 2.1 Test Scenario 2.2 Test Scenario 2.3
3. Test Scenario
Test scenario (like a high-level test case):
• It is also known as Test Suite or less commonly Validation
Suite.
• A test scenario is a collection of test cases that are
intended to be used to test a software program
• Purpose is to show that it has some specified set of
behaviors.
• It often contains detailed instructions or goals for each
collection of test cases and information on the system
configuration to be used during testing.
3. Test Scenario
Test Scenario provides one-line information about
what to test.
Each Test Scenario are 1 or more Test Cases
Test Scenario 2
Test Scenario 1
Example:
Test Scenario Test Case
User receives an error message when he TC 1: User receives an error message when he enters valid
enters invalid parameters in the login page user_id and invalid password.
TC 2: User receives an error message when he enters invalid
user_id and valid password
TC 3: User receives an error message when he enters invalid
user_id and invalid password
4. Test case
Test case:
• is a set of input values, execution preconditions,
expected results and execution post conditions,
developed for a particular objective or test condition,
such as to exercise a particular program path or to
verify compliance with a specific requirement.
• Test Case is like a check list to make sure that all the
requirements are covered in the testing
Test case vs Test scenario
Test scenario: “What to be tested”
Test case is: “How to be tested”
4. Test case
Test Cases are derived from Test Scenarios that are
identified in a Test Procedure
Test Procedure
Test Case 1.1 Test Case 1.2 Test Case 1.2 Test Case 2.1
4. Test case
The key purpose of a test case is to ensure if different
features within an application are working as
expected. It helps tester, validate if the software is
free of defects and if it is working as per the
expectations of the end users.
Other benefits of test cases include:
• Test cases ensure good test coverage
• Help improve the quality of software
• Decreases the maintenance and software support costs
• Help verify that the software meets the end user requirements
• Allows the tester to think thoroughly and approach the tests from as
many angles as possible
• Test cases are reusable for the future – anyone can reference them and
execute the test.
4.1 Test Case Structure
Test Case
Name / Description
Summary / Objective
Test Case
ID Priority
Actual
Result Test Case
Type
Test Case
Execution Structure
Result /
Automatio
Status
n Status
Attachmen
t Pre-
condition
Test Inputs
/ Test Data Expected Test Steps
Result
Step 2
Objective
Step 3
Test Set A group of similar test cases that require the same steps
to be executed
Pros
- time saving during test
cases designing;
- time saving for experienced
tester in specific area
during test cases execution
(not always, since some
test cases require complex
inputs, queries, etc.);
- important bugs can be
found.
Cons
- time consuming for non-
experienced tester in
specific area during test
cases execution;
- hard to entail issue due to
chaotic inputs.
5. Test Case implementation-
Result Tracking
1.Update Test Case
2.Execute Test Case
5. Test Case Result Tracking – Update
TC
Update test cases: When the game design or the
documentations are changed, you must update the test
case suite base on the newest documentations or base on
the game design on current build if the client request:
• Add new test cases
If you find new cases can apply to test, please add these cases as new test
cases into test case suite
• Edit test cases to match the newest requirements
If the Steps (or Specification Area) to run test case has been changed in
the newest documentations, the test case has to also update the Steps
Execution (or Specification Area) again
• Delete test cases no longer suitable
If the requirement for feature has been changed in the newest
documentations, the test case relate to that requirement has to be
removed out
5. Test Case Result Tracking –Execute TC
Execute Test Case: Execute test cases to get result
of testing
• Read Objective of test case carefully to understand
what will be verified here
• Read Pre-Condition to prepare the need stuffs in
advance (The stuffs really need to execute test case)
• Execute application (game, web application,…) by
following step by step in Execution Steps of test case
• Compare observed result with expected result of test
case
• Update result of test case into:
Status column
Bug ID column
5. Test Case Result Tracking –Execute TC
Execute Test Case (cont)
Update Status of test case
If observed result matches the expected result:
o Set “Pass” to Status column for the test case
If observed result does not match the expected result:
o Set “Fail” to Status column for the test case
If there is a reason that prevent you from executing the test
case (cannot do a step, function is not implemented, a bug
blocks testing the test case,…):
o Set “Pending” to Status column for the test case
o Note the reason why the test case is pending
5. Test Case Result Tracking –Execute TC
Execute Test Case (cont)
Update Bug ID for test case
If observed result matches the expected result:
oBug ID for the test case must be removed out of “Bug ID” column if it
has been noted already before
If observed result does not match the expected
result:
oSubmit a bug to bug database and note the bug ID of submitted bug
into “Bug ID” column if it has not noted yet before