ST L04 Common Testing Types
ST L04 Common Testing Types
© 2018
Lecture Learning Objectives
Objectives
▪ Provide basic concepts about some common testing types,
include:
• Regression Testing
• Smoke Testing
• Sanity Testing
Outcomes
▪ Understand what smoke testing, sanity testing and regression
testing are and when they are applied.
2
Outline
Regression Testing
Smoke Testing
Sanity Testing
3
04 | Common Testing Types
5
Guiding Questions
6
What is Regression Testing?
Regression Testing is a form of
software testing carried out to
ensure that:
▪ changes in the fixed defect(s)
▪ or any enhancement changes
9
Importance of Regression Testing
11
Regression Testing Strategies – 1
Source: https://www.softwaretestinghelp.com/regression-testing-tools-and-methods/
12
Regression Testing Strategies – 2
The simplest strategy is the retest-all approach.
However, it is considered impractical on account of cost,
resource and delivery schedule constraints that projects
are frequently subjected to.
Source: https://www.prototechsolutions.com/regression-testing/
13
Regression Testing Strategies – 3
Regression test selection
▪ Instead of re-executing the entire test suite, it is better
to select part of test suite to be run.
14
Regression Testing Strategies – 4
Test Case Prioritization
▪ Priority of test case depends on business impact, critical &
frequently used functionalities.
▪ One of the ideas is to classify the test cases into various
priorities based on importance and customer usage. Here it is
suggested the test cases be classified into three categories;
15
Regression Testing Strategies – 5
Hybrid
▪ Rather than selecting the entire test suite, select
only the test cases which are re-executed
depending on their priority.
16
How to Perform Regression Test?
Given below are the various steps involved in performing this
testing:
Execute regression
Create a test
TCs whenever having
execution report
any change in code
Test Team
(Retesting)
19
Regression Test
21
Regression Testing vs. Re-testing
Regression Testing (RT) Re-testing
Regression TCs we use are derived Test cases for Re-testing cannot be
from the functional specification, the prepared before starting testing.
user manuals, user tutorials, and
In Re-testing only re-execute the test
defect reports in relation to corrected
cases failed in the prior execution.
problems.
Automation is the key for RT. Manual You cannot automate the test cases
RT tends to get more expensive with for Re-testing.
each new release. RT is right time to
start automating test cases.
Defect verification is not comes under Defect verification is comes under
RT. Re-testing.
Based on the availability of resources Priority of Re-testing over Regression
the RT can be carried out parallel with testing is higher, so it is carried out
Re-testing. before regression testing.
22
Section Questions
25
Guiding Questions
26
What should you do
– when you have to sign off in a
day or two but the build for
testing is still not released?
29
Sanity Testing vs. Regression Testing
Regression Testing Sanity Testing
Regression testing is done to verify Sanity testing is done at random to
that the complete system and bug verify that each functionality is
fixes are working fine. working as expected.
Every tiniest part is regressed in this This is not a planned testing and is
testing. done only when there’s a time
crunch.
It is a well elaborate and planned This is not a planned testing and is
testing. done only when there’s a time
crunch.
An appropriately designed suite of It may not every time be possible to
test cases is created for this testing. create the test cases; a rough set of
test cases is created usually.
30
Sanity Testing vs. Regression Testing
Regression Testing Sanity Testing
This includes in-depth verification of This mainly includes verification of
functionality, UI, performance, business rules, functionality.
browser/OS testing etc. i.e. every
aspect of the system is regressed.
This is a wide and deep testing. This is a wide and shallow testing.
This testing is at times scheduled for This mostly spans over 2-3 days
weeks or even month(s). max.
Source: https://www.softwaretestinghelp.com/smoke-testing-and-sanity-testing-difference/
31
Section Questions
34
Guiding Questions
What is smoke testing?
35
Consider the following example:
• Let us assume that there is an application like ‘Student
Network’ which has 15 modules. Among them, there are 4
important components like Login page, Adding student
details, Updating it and Deleting it.
BUILD 1.0
ADD
LOGIN
STUDENT SMOKE PASSED BUILD
NO
TESTING ? REJECTED
UPDATE DELETE
STUDENT STUDENT
YES
FUNCTIONAL
TEST
What is Software Build?
The term build is the process by which source code is
converted to a stand-alone form that can be run on
any system.
37
What is Smoke Testing? – 1
Smoke testing is a type of software testing which
ensures that the major functionalities of the
application are working fine.
38
What is Smoke Testing? – 2
Smoke testing can be done by developers before
releasing the build to the testers. It is also tested by
the testing team to ensure that the build is stable
enough to perform the detailed testing.
39
Why Smoke Testing?
40
Why Should Automate Smoke Tests?
Consider the following example:
• Let us assume that we are testing a financial projection
application, which took inputs about your salary,
savings etc., and projected your taxes, savings, profits
depending on the financial rules. Along with this, we
had customization for countries that depend on the
country and its tax rules used to change (in the code).
• For this project, we had 250 Smoke TCs / 800 TCs.
Source: https://www.guru99.com/smoke-testing.html
42
Smoke Testing vs. Sanity Testing
43
Smoke Testing vs. Sanity Testing
44
Smoke Testing vs. Sanity Testing
45
Section Questions
Whereas
47
Take Away
regression testing to make
The main aim of
Whereas
2. https://www.softwaretestinghelp.com/smoke-testing-
and-sanity-testing-difference/
3. http://tryqa.com/what-is-smoke-testing-when-to-use-
it-advantages-and-disadvantages-2/#more-2237
4. http://www.guru99.com/smoke-sanity-testing.html
5. https://www.capgemini.com/2017/01/best-practices-
in-identifying-test-cases-for-regression-suite/#
49
Questions & Answers
50