Download as pdf or txt
Download as pdf or txt
You are on page 1of 32

The University of Lahore

A “W4” Category University

Welcome to
CS-4349 Software Testing & Implementation

18/03/2024 1
The University of Lahore
A “W4” Category University

CS-4349 Software Testing & Implémentation


SCU 3
Pre-requisite (s) Software Engineering
Weekly Tuition Pattern 2 Classes (each 90 min session)

18/03/2024 2
The University of Lahore
A “W4” Category University

Assessment Criteria
No. Components Percentage
1. Mid Exam 30%
2. Final Exam 40%
3. Assignments 10%
4. Quizzes 10%
5. Group Presentation/Project 10%
Total 100%

18/03/2024 3
The University ofLahore
A “W4” Category University

Class Policies/Rules
1. Students are expected to attend all lectures, tutorials and lab
sessions (if any).
2. Join the class not later than 10min. Be punctual!
3. Mobiles/Hand phones should be in silent mode.
4. No laptops, unless required.

18/03/2024 4
The University of Lahore
A “W4” Category University

5. Submit your assignments on time, late assignments will not


be entertained, until or unless genuine reason.
6. Copying/Duplicate assignments will not be awarded.
7. Keep appropriate copies/backups of every assignment
submitted.
8. Be attentive, active, smart & disciplined at all times.

18/03/2024 5
The University of Lahore
A “W4” Category University

Course Objectives

1. To introduce all of the basic aspects of software testing.


2. To introduce the techniques required to do software
testing.
18/03/2024 6
The University of Lahore
A “W4” Category University

Unit Outline
Fall Semester 2011-12
Week Topics References
Fundamentals of Testing
1&2 Exercise + Practice Questions + Assignment Chapter 1
Quiz
Testing throughout the software life cycle
3&4 Exercise + Practice Questions + Assignment Chapter 2
Quiz
Static Techniques
5&6 Exercise + Practice Questions + Assignment Chapter 3
Quiz

7&8 Test Design Techniques Chapter 4

18/03/2024 7
The University of Lahore
A “W4” Category University

Equivalence Partitioning and Boundary Value


Chapter 4
Analysis
9 & 10
Decision Table Testing Chapter 4

Static Transition Testing Chapter 4

11 & 12 Statement coverage and Statement Testing Chapter 4

Decision Coverage and Decision Testing


Exercise + Practice Questions + Assignment Chapter 4
Quiz

18/03/2024 8
The University of Lahore
A “W4” Category University

Test Management
13 & 14 Exercise + Assignment + Chapter 5
Presentation

Tools Support for Testing


15 & 16 Exercise + Assignment Chapter 6
Quiz

18/03/2024 9
The University of Lahore
A “W4” Category University

Text Book & Other Reference Books


Graham, Erik Van, Isabel, Rex Black (2007)
Foundations of Software Testing (ISTQB Certification)
Thomson Publishers
The Art of Software Testing, (2nd Edition.) Myers,
Glenford J
John Wiley & Sons, Inc. Publishers

18/03/2024 10
The University of Lahore
A “W4” Category University

Contents
Chapter 1 Fundamentals of Testing

1.1 Why is testing necessary?


1.1.1 Introduction
1.1.2 Software system context
1.1.3 Causes of software defects
1.1.4 Role of testing in software development,
maintenance and operations
1.1.5 Testing and quality
1.1.6 How much testing is enough?

18/03/2024 11
The University of Lahore
A “W4” Category University

1.2 What is testing?


1.2.1 The driving test – an analogy for software testing
1.2.2 Defining software testing
1.2.3 Software test and driving test compared
1.2.4 When can we meet our test objectives?
1.2.5 Focusing on defects can help us plan our tests
1.2.6 The defect clusters change over time
1.2.7 Debugging removes defects
1.2.8 Is the software defect free?
1.2.9 If we don’t find defects does that mean the
users will accept the software?

18/03/2024 12
The University of Lahore
A “W4” Category University

1.3 Testing principles


1.5 The psychology of testing
1.5.1 Independent testing- Who is tester?
1.5.2 Why do we sometimes not get on with the
rest of the team?

Problem/Review/Sample exam questions


Assignment + Quiz

18/03/2024 13
The University of Lahore
A “W4” Category University

1.1 Why is testing necessary?

What is human nature?

18/03/2024 14
The University of Lahore
A “W4” Category University

1.1 Why is testing necessary?

Human nature is the concept that there are set of


characteristics, including ways of thinking, feeling
and acting, that all 'normal' human beings have in
common.
18/03/2024 15
The University of Lahore
A “W4” Category University

1.1 Why is testing necessary?

Why he is so sad?

18/03/2024 16
The University of Lahore
A “W4” Category University

1.1 Why is testing necessary?

Why are they being punished?

18/03/2024 17
The University of Lahore
A “W4” Category University

1.1 Why is testing necessary?

They are being punished because they did


MISTAKES

It is the human nature that all humans make


mistakes all the time
18/03/2024 18
The University of Lahore
A “W4” Category University

1.1 Why is testing necessary?

What is the solution if we make


mistakes often?

18/03/2024 19
The University of Lahore
A “W4” Category University

1.1.1 Introduction

Why it is important to test this device before launching


into the market?

18/03/2024 20
The University of Lahore
A “W4” Category University

1.1.1 Introduction

1- To ensure whether the components and softwares


are working properly.

2- To ensure whether the components and software


are producing the desired results (output).

3- To save cost/money

4- To save time

5- To maintain business repute


18/03/2024 21
The University of Lahore
A “W4” Category University

1.1.2 Software system context

Testing Principle-Testing is Context Dependent


It is done differently in different contexts (nature of the software)

1. Safety software is tested differently from an e-commerce site.


2. University software are tested differently from banking software.
3. Websites are tested differently from database sites.

18/03/2024 22
The University of Lahore
A “W4” Category University

1.1.2 Software system context

Software

Software are the programs associated with


documentation and data pertaining to the operation of a
computer system.
OR
Software are the programs which help the computer what
to do and how to do. It helps the computer to carry out
certain tasks.

18/03/2024 23
The University of Lahore
A “W4” Category University

1.1.2 Software system context

Common Examples of problems that may


happen because of software
1. An error on a bill
2. A delay when waiting for a credit card to process
3. A website that did not load correctly
4. A delay while withdrawing money from ATM.
5. Error while transferring money from one bank account to
another.

18/03/2024 24
The University of Lahore
A “W4” Category University

1.1.2 Software system context

Some of the problems can be quite unimportant but others


can be costly and damaging-with loss of money, time and
business reputation.
1. If my personal family tree website has my maternal grandmother’s name spelt
wrong, my mother gets annoyed but I can fix it easily and only the family see
it.
2. If the company website has some spelling mistakes, customers may be putt off
the company as it looks unprofessional.
3. If a software miscalculates pesticide quantity, then the farmer will use more
pesticides than needed, which raises his cost, environmental factors on
wildlife, fines for causing environmental and health problems.

18/03/2024 25
The University of Lahore
A “W4” Category University

1.1.3 Causes of software defects

Why is it that software sometimes do not work correctly?


Error (Mistake)
A human action that produces an incorrect result-the software is used incorrectly and does
not behave as we expected.

Defect (bug, fault)


A flaw in a component or system that can cause the component or system fail to perform its
required functions. NOT ALL DEFECTS RESULTS IN FAILURES; SOME STAY IN THE
CODE AND WE NEVER NOTICE THEM.

Failure
Deviation of the component or system from its expected delivery, service or result

18/03/2024 26
The University of Lahore
A “W4” Category University

1.1.3 Causes of software defects

Defects and Failures arising from:


- Errors in the specification, design, and
implementation of the software and system
- Human errors in interacting with the software
- Intentional damage or malicious damage

18/03/2024 27
The University of Lahore
A “W4” Category University

1.1.3 Causes of software defects

When do defects arise? How defects may arise in four requirements


for a product?

18/03/2024 28
The University of Lahore
A “W4” Category University

1.1.3 Causes of software defects


What is the cost of defects?

18/03/2024 29
The University of Lahore
A “W4” Category University

1.1.5 Testing and quality

What is Quality?
The degree to which a component, system or process
meets specified requirements of user/customer needs and
expectations.

18/03/2024 30
The University of Lahore
A “W4” Category University

1.1.5 Testing and quality

Customers Expectations
1. Quality
2. Budget
3. Time-scale
4. Meet the requirements
5. Excellent performance
6. Error free

18/03/2024 31
The University of Lahore
A “W4” Category University

1.1.5 Testing and quality

18/03/2024 32

You might also like