You are on page 1of 21

University Institute of Computing

Master of Computer Applications


Subject Name: Software Testing
Code: 22CAH-685/22CAH-674/22CAH-656

Software Testing DISCOVER . LEARN . EMPOWER


Test plan and Test Report
Test Planning
• Determining test metrics

• Identifying procedures for collecting and tracking test metrics

• Fixing benchmarks to assess adherence to test plan

• Identifying parameters to measure achievement of objectives


24/04/2023 3

24/04/2023 3
Work Products in Testing
Software testing process typically has these three work
products, among others:

• Test basis like product risks or its requirements


• Test conditions
• Tests that provide coverage

24/04/2023 4

24/04/2023 4
Independent Testing
Independent testing corresponds to an independent team, who involve in testing activities
other than developer to avoid author bias and is often more effective at finding defects and
failures.
Levels of Independent Testing The following list shows the increasing levels of
independence for testing:
• Testing done by developer himself
• Independent testers ceded to the development team
• Independent Testing Team within Organization
• Independent Testers of different Organization
• Outsourced test team members of other organization
24/04/2023 5

24/04/2023 5
Independent Testing
Benefits:

• The tester sees each defect in a neutral perspective


• The tester is totally unbiased
• The tester sees what has been built rather than what the developer
thought
• The tester makes no assumptions regarding quality

24/04/2023 6

24/04/2023 6
Independent Testing
Disadvantages:

• Isolation from the development team can sometimes lead to outdated


documentation reference.

• The independent test execution is normally the last stage and affected by
any delays earlier in the process.

24/04/2023 7

24/04/2023 7
Independent Testing
• Developers might be irresponsible for quality as they might assume that
independent testing team is there to find the issues within the system

• Independent testing can sometimes act as a hindrance to communication.

24/04/2023 8

24/04/2023 8
Test Case
• A TEST CASE is a set of conditions or variables under which
a tester will determine whether a system under test satisfies
requirements or works correctly.

• The process of developing test cases can also help find


problems in the requirements or design of an application.

24/04/2023 9

24/04/2023 9
Test Case Template
• Test Suite ID The ID of the test suite to which this test case belongs.
• Test Case ID The ID of the test case.
• Test Case Summary The summary / objective of the test case.
• Related Requirement The ID of the requirement this test case relates/traces
to.
• Prerequisites Any prerequisites or preconditions that must be fulfilled prior
to executing the test.

24/04/2023 10

24/04/2023 10
Test Case Template
• Test Procedure Step-by-step procedure to execute the test.
• Test Data The test data, or links to the test data, that are to be used while
conducting the test.
• Expected Result The expected result of the test.
• Actual Result The actual result of the test; to be filled after executing the
test.
• Status Pass or Fail. Other statuses can be ‘Not Executed’ if testing is not
performed and ‘Blocked’ if testing is blocked.
24/04/2023 11

24/04/2023 11
Test Case Template
• Remarks Any comments on the test case or test execution.
• Created By The name of the author of the test case.
• Date of Creation The date of creation of the test case.
• Executed By The name of the person who executed the test.
• Date of Execution The date of execution of the test.
• Test Environment The environment (Hardware/Software/Network) in
which the test was executed.

24/04/2023 12

24/04/2023 12
Test Case Sample
• Test Suite IDTS001
• Test Case IDTC001
• Test Case Summary To verify that clicking the Generate Coin button
generates coins.
• Related RequirementRS001
• Prerequisites
• User is authorized.
• Coin balance is available.

24/04/2023 13

24/04/2023 13
Test Case Sample
• Test Procedure
• Select the coin denomination in the Denomination field.
• Enter the number of coins in the Quantity field.
• Click Generate Coin.
• Test Data
• Denominations: 0.05, 0.10, 0.25, 0.50, 1, 2, 5
• Quantities: 0, 1, 5, 10, 20
• Expected Result
• Coin of the specified denomination should be produced if the specified Quantity is valid (1, 5)
• A message ‘Please enter a valid quantity between 1 and 10’ should be displayed if the specified quantity is invalid.

24/04/2023 14

24/04/2023 14
Test Case Sample
• Actual Result
• If the specified quantity is valid, the result is as expected.
• If the specified quantity is invalid, nothing happens; the expected message is not displayed
• Status Fail
• Remarks This is a sample test case.
• Created By John Doe
• Date of Creation 01/14/2020

24/04/2023 15

24/04/2023 15
Test Case Sample
• Executed By Jane Roe

• Date of Execution 02/16/2020

• Test Environment
• OS: Windows Y
• Browser: Chrome N

24/04/2023 16

24/04/2023 16
Writing Good Test Cases
• As far as possible, write test cases in such a way that you test only one thing at a time. Do
not overlap or complicate test cases. Attempt to make your test cases ‘atomic’.

• Ensure that all positive scenarios AND negative scenarios are covered.

• Language:
• Write in simple and easy-to-understand language.
• Use active voice instead of passive voice: Do this, do that.
• Use exact and consistent names (of forms, fields, etc).

24/04/2023 17

24/04/2023 17
Writing Good Test Cases
• Characteristics of a good test case:
• Accurate: Exacts the purpose.
• Economical: No unnecessary steps or words.
• Traceable: Capable of being traced to requirements.
• Repeatable: Can be used to perform the test over and over.
• Reusable: Can be reused if necessary.

24/04/2023 18

24/04/2023 18
References
•Software Testing by Ron Patton, Sams
•Software Quality Assurance, by Daniel Galin, Pearson Education
Web Links:-
•https://onlinecourses.nptel.ac.in/noc16_cs16/unit?unit=11&lesson=12
•https://onlinecourses.nptel.ac.in/noc16_cs16/unit?unit=11&lesson=13
•https://onlinecourses.nptel.ac.in/noc16_cs16/unit?unit=11&lesson=14

24/04/2023 19
Thank You

24/04/2023 20
THANK YOU

Dr Jameel Qurashi
Jameel.e12405@cumail.in

You might also like