SlideShare ist ein Scribd-Unternehmen logo
1 von 15
ASSALAMUA’LAIKUM WR.WB
CHAPTER 1
FUNDAMENTALS OF TESTING
oleh:
CINDY YURISTIE
PRAGRAM STUDI S1 SISTEM INFORMASI
FAKULTAS SAINS DAN TEKNOLOGI
UNIVERSITAS ISLAM NEGERI SULTAN SYARIF KASIM RIAU
Referensi : Graham et.al (2006)
http://sif.uin-suska.ac.id http://fst.uin-suska.ac.id
http://uin-suska.ac.id
WHAT IS TESTING ?
Syllabus learning objectives for 1.2 What is testing?
1. Recall the common objectives of testing. (Kl)
2. Describe the purpose of testing in software development,
maintenance and operations as a means to find defects, provide
confidence and infor mation, and prevent defects. (K2)
In this section, we will review the common objectives of testing.
We'll explain how testing helps us to find defects, provide confidence
and information, and prevent defects. We will also introduce
additional fundamental principles of testing. As you read this
section, you'll encounter the terms code, debugging,development
of software, requirement, review, test basis, test case, testing
and test objective.
THE DRIVING TEST - ANANALOGY FOR SOFTWARE TESTING
Let's use an analogy to help us: driving tests. In a driving test, the examiner crit
made by the driver under test. The examiner takes the driver through a route which tests
many possible driving activities, such as road junctions of different types, control and
maneuvering of the car, ability to stop safely in an emergency, and awareness of the road,
other road users and hazards. Some of the activities must be tested. For example, in the UK,
an emergency stop test is always carried out, with the examiner simulating the moment of
emergency by hitting the dashboard at which point the driver must stop the car quickly,
safely and without loss of control.
THE DRIVING TEST - ANANALOGY FOR SOFTWARE TESTING
At the end of the test, the examiner makes a judgment about the driver'spe
judgment on the number and severity of the failures identified, and also whether
the driver has been able to meet the driving requirements. A single severe fault is enough
to fail the whole test, but a small number of minor faults might still mean the test is passed.
Many minor faults would reduce the confidence of the examiner in the quality —of the
driving to the point where the driver cannot pass.
DEFINING SOFTWARE TESTING
Let's break the definition down into parts; the definition has some key phrases
remember. The definition starts with a description of testing as a process and then
lists some objectives of the test process. This is a suitable definition of testing for any
level of testing, from compo-nent testing through to acceptance testing, provided
that we remember to take the varying objectives of these different levels of testing into
account.
SOFTWARE TEST AND DRIVING TESTCOMPARED
We can see that the software test is very like a driving test in
many ways, though of course it is not a perfect analogy! The driving
examiner becomes the software tester. The driver being examined becomes
the system or software under test, and you'll see as we go through this
book that the same approach broadly holds.
So, test activities exist before and after test execution. As a tester or
test manager, you will be involved in planning and control of the testing,
choosing test conditions, designing test cases based on those test conditions,
executing them and checking results, evaluating whether enough testing has
been done by Examining completion (or exit) criteria, reporting on the
testing process and system under test, and presenting test completion (or
summary) reports.
WHEN CAN WE MEET OUR TEST OBJECTIVES ?
We can use both dynamic testing and static testing as a means for achieving similar
test objectives. Both provide information to improve both the system to be tested, and the
development and testing processes. We mentioned above that testing can have different
goals and objectives, which often include:
 Finding defects;
 Gaining confidence in and providing information about the level of quality;
 preventing defects.
FOCUSING ON DEFECTS CAN HELP US PLAN OUR TESTS
Reviewing defects and failures in order to improve processes allows us to im
processes. One phenomenon that many testers have observed is that defects tend
to cluster. This can happen because an area of the code is particularly complex and tricky, or
because changing software and other products tends to cause knock-on defects. Testers will
often use this information when making their risk assessment for planning the tests, and will
focus on known 'hot spots'.
FOCUSING ON DEFECTS CAN HELP US PLAN OUR TESTS
A main focus of reviews and other static tests is to carry out
testing as early as
from appearing at later stages of this project. These
activities help us find out about defects earlier and identify
potential clusters. Additionally, an important outcome of all
testing is information that assists in risk assess-ment; these
reviews will contribute to the planning for the tests executed
later in the software development life cycle. We might also
carry out root cause analysis to prevent defects and failures
happening again and perhaps to identify the cause of clusters
and potential future clusters.
THE DEFECT CLUSTERS CHANGE OVER TIME
Over time, as we improve our whole software
development life cycle and the
defects. A typical test improvement initiative will
initially find more defects as the testing improves and
then, as the defect prevention kicks in, we see the defect
numbers dropping. The first part of the improvement
enables us to reduce failures in operation; later the
improve-ments are making us more efficient and effective
in producing the software with fewer defects in it.
THE DEFECT CLUSTERS CHANGE OVER TIME
As the 'hot spots' for bugs get cleaned up we need to
move our focus else- where, to the next set of risks.
Over time, our focus may change from finding coding
bugs, to looking at the requirements and design
documents for defects, and to looking for process
improvements so that we prevent defects in the
product.
DEBUGGING REMOVES DEFECTS
When a test finds a defect that must be fixed, a programmer must do
some
rk to locate the defect in the code and make the fix. In this process,
called debug-ging, a programmer will examine the code for the
immediate cause of the problem, repair the code and check that the code
now executes as expected. The fix is often then tested separately (e.g. by
an independent tester) to confirm the fix. Notice that testing and
debugging are different activities. Developers may test their own fixes, in
which case the very tight cycle of identifying faults, debugging, and
retesting is often loosely referred to as debugging. However, often
following the debugging cycle the fixed code is tested independently
both to retest the fix itself and to apply regression testing to the
surrounding unchanged software.
IS THE SOFTWARE DEFECT FREE ?
This principle arises from the theory of
the process of scientific ex testing books. While
you are not expected to read the scientific theory [Popper] the
analogy used in science is useful; however many white swans we
see, we cannot say 'All swans are white'. However, as soon as we
see one black swan we can say 'Not all swans are white'. In the
same way, however many tests we execute without finding a bug,
we have not shown 'There are no bugs'. As soon as we find a bug,
we have shown 'This code is not bug-free'.
IF WE DON’T FIND DEFECTS DOES THAT MEAN THE
USERS WILL ACCEPT THESOFTWARE
There is another important principle we must consider; the
customers for soft-ware - the people and organizations who
buy and use it to aid in their day-to-day tasks - are not
interested in defects or numbers of defects, except when they
are directly affected by the instability of the software. The
people using soft-ware are more interested in the software
supporting them in completing tasks efficiently and effectively.
The software must meet their needs. It is for this reason that the
requirements and design defects we discussed earlier are so
important, and why reviews and inspections are such a funda-
mental part of the entire test activity.
TERIMA KASIH
WASSALAMU’ALAIKUM WR.WB

Weitere ähnliche Inhalte

Was ist angesagt?

Qa interview questions and answers for placements
Qa interview questions and answers for placementsQa interview questions and answers for placements
Qa interview questions and answers for placementsGaruda Trainings
 
Materi testing dan Implementasi sistem - Fundamentals of testing-What is Testing
Materi testing dan Implementasi sistem - Fundamentals of testing-What is TestingMateri testing dan Implementasi sistem - Fundamentals of testing-What is Testing
Materi testing dan Implementasi sistem - Fundamentals of testing-What is Testingdevinta sari
 
Seven testing principles
Seven testing principlesSeven testing principles
Seven testing principlesVaibhav Dash
 
Software testing principles
Software testing principlesSoftware testing principles
Software testing principlesDonato Di Pierro
 
Chapter 1 Fundamental of testing (By Eva Normala)
Chapter 1 Fundamental of testing (By Eva Normala)Chapter 1 Fundamental of testing (By Eva Normala)
Chapter 1 Fundamental of testing (By Eva Normala)EvaNormala
 
Fundamentals of testing
Fundamentals of testingFundamentals of testing
Fundamentals of testingTaufik hidayat
 
Software Testing Interview Questions
Software Testing Interview QuestionsSoftware Testing Interview Questions
Software Testing Interview QuestionsTestbytes
 
Testing softvamp techno solutions technical interview questions 2 years expe...
Testing  softvamp techno solutions technical interview questions 2 years expe...Testing  softvamp techno solutions technical interview questions 2 years expe...
Testing softvamp techno solutions technical interview questions 2 years expe...SoftvampTechnoSoluti
 
Automation testing interview pdf org
Automation testing interview pdf orgAutomation testing interview pdf org
Automation testing interview pdf orgTestbytes
 
All you need to know about regression testing | David Tzemach
All you need to know about regression testing | David TzemachAll you need to know about regression testing | David Tzemach
All you need to know about regression testing | David TzemachDavid Tzemach
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testingSuraj Motee
 
Effective Testing fo Startups
Effective Testing fo StartupsEffective Testing fo Startups
Effective Testing fo StartupsTestnetic
 
fundamentals of testing
fundamentals of testingfundamentals of testing
fundamentals of testingaidil fitra
 
Fundamental Of Testing
Fundamental Of TestingFundamental Of Testing
Fundamental Of Testingsuci maisaroh
 

Was ist angesagt? (20)

Fundamentals of testing
Fundamentals of testingFundamentals of testing
Fundamentals of testing
 
Qa interview questions and answers for placements
Qa interview questions and answers for placementsQa interview questions and answers for placements
Qa interview questions and answers for placements
 
Principles of software testing
Principles of software testingPrinciples of software testing
Principles of software testing
 
Materi testing dan Implementasi sistem - Fundamentals of testing-What is Testing
Materi testing dan Implementasi sistem - Fundamentals of testing-What is TestingMateri testing dan Implementasi sistem - Fundamentals of testing-What is Testing
Materi testing dan Implementasi sistem - Fundamentals of testing-What is Testing
 
7 testing principles
7 testing principles7 testing principles
7 testing principles
 
Seven testing principles
Seven testing principlesSeven testing principles
Seven testing principles
 
Software testing principles
Software testing principlesSoftware testing principles
Software testing principles
 
Chapter 1 Fundamental of testing (By Eva Normala)
Chapter 1 Fundamental of testing (By Eva Normala)Chapter 1 Fundamental of testing (By Eva Normala)
Chapter 1 Fundamental of testing (By Eva Normala)
 
Testing Principles
Testing PrinciplesTesting Principles
Testing Principles
 
Fundamentals of testing
Fundamentals of testingFundamentals of testing
Fundamentals of testing
 
Software Testing Interview Questions
Software Testing Interview QuestionsSoftware Testing Interview Questions
Software Testing Interview Questions
 
Testing softvamp techno solutions technical interview questions 2 years expe...
Testing  softvamp techno solutions technical interview questions 2 years expe...Testing  softvamp techno solutions technical interview questions 2 years expe...
Testing softvamp techno solutions technical interview questions 2 years expe...
 
Formal method
Formal methodFormal method
Formal method
 
What is testing
What is testingWhat is testing
What is testing
 
Automation testing interview pdf org
Automation testing interview pdf orgAutomation testing interview pdf org
Automation testing interview pdf org
 
All you need to know about regression testing | David Tzemach
All you need to know about regression testing | David TzemachAll you need to know about regression testing | David Tzemach
All you need to know about regression testing | David Tzemach
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testing
 
Effective Testing fo Startups
Effective Testing fo StartupsEffective Testing fo Startups
Effective Testing fo Startups
 
fundamentals of testing
fundamentals of testingfundamentals of testing
fundamentals of testing
 
Fundamental Of Testing
Fundamental Of TestingFundamental Of Testing
Fundamental Of Testing
 

Ähnlich wie Fundamentals of Testing Chapter 1

01. foundamentals of testing
01. foundamentals of testing01. foundamentals of testing
01. foundamentals of testingTricia Karina
 
Software_testing Unit 1 bca V.pdf
Software_testing Unit 1 bca V.pdfSoftware_testing Unit 1 bca V.pdf
Software_testing Unit 1 bca V.pdfAnupmaMunshi
 
Software Testing Interview Questions For Experienced
Software Testing Interview Questions For ExperiencedSoftware Testing Interview Questions For Experienced
Software Testing Interview Questions For Experiencedzynofustechnology
 
Chapter 1 Fundamentals of Testing
Chapter 1 Fundamentals of TestingChapter 1 Fundamentals of Testing
Chapter 1 Fundamentals of TestingZetryan Satria
 
Manual Testing guide by nagula sai kiran.docx
Manual Testing guide by nagula sai kiran.docxManual Testing guide by nagula sai kiran.docx
Manual Testing guide by nagula sai kiran.docxsai kiran
 
Fundamentals of testing
Fundamentals of testingFundamentals of testing
Fundamentals of testingYusran5
 
EFFECTIVE TEST CASE DESING: A REVIEW
EFFECTIVE TEST CASE DESING: A REVIEWEFFECTIVE TEST CASE DESING: A REVIEW
EFFECTIVE TEST CASE DESING: A REVIEWJournal For Research
 
Overcoming The Challenges Faced in Exploratory Testing
Overcoming The Challenges Faced in Exploratory TestingOvercoming The Challenges Faced in Exploratory Testing
Overcoming The Challenges Faced in Exploratory TestingSarah Elson
 
Software testing q as collection by ravi
Software testing q as   collection by raviSoftware testing q as   collection by ravi
Software testing q as collection by raviRavindranath Tagore
 
Software testing pdf
Software testing pdfSoftware testing pdf
Software testing pdfGaurav Nigam
 
Software testing(1)
Software testing(1)Software testing(1)
Software testing(1)ramvyata123
 
software_testing pdf.pdf
software_testing pdf.pdfsoftware_testing pdf.pdf
software_testing pdf.pdfGaurav Nigam
 

Ähnlich wie Fundamentals of Testing Chapter 1 (20)

01. foundamentals of testing
01. foundamentals of testing01. foundamentals of testing
01. foundamentals of testing
 
Software_testing Unit 1 bca V.pdf
Software_testing Unit 1 bca V.pdfSoftware_testing Unit 1 bca V.pdf
Software_testing Unit 1 bca V.pdf
 
2.fundamental of testing
2.fundamental of testing2.fundamental of testing
2.fundamental of testing
 
What is testing?
What is testing?What is testing?
What is testing?
 
Software Testing Interview Questions For Experienced
Software Testing Interview Questions For ExperiencedSoftware Testing Interview Questions For Experienced
Software Testing Interview Questions For Experienced
 
Chapter 1 Fundamentals of Testing
Chapter 1 Fundamentals of TestingChapter 1 Fundamentals of Testing
Chapter 1 Fundamentals of Testing
 
Fundamentals of testing
Fundamentals of testingFundamentals of testing
Fundamentals of testing
 
Manual Testing guide by nagula sai kiran.docx
Manual Testing guide by nagula sai kiran.docxManual Testing guide by nagula sai kiran.docx
Manual Testing guide by nagula sai kiran.docx
 
Fundamentals of testing
Fundamentals of testingFundamentals of testing
Fundamentals of testing
 
Fundamentals of testing
Fundamentals of testingFundamentals of testing
Fundamentals of testing
 
Fundamentals of testing
Fundamentals of testingFundamentals of testing
Fundamentals of testing
 
EFFECTIVE TEST CASE DESING: A REVIEW
EFFECTIVE TEST CASE DESING: A REVIEWEFFECTIVE TEST CASE DESING: A REVIEW
EFFECTIVE TEST CASE DESING: A REVIEW
 
Overcoming The Challenges Faced in Exploratory Testing
Overcoming The Challenges Faced in Exploratory TestingOvercoming The Challenges Faced in Exploratory Testing
Overcoming The Challenges Faced in Exploratory Testing
 
Software testing q as collection by ravi
Software testing q as   collection by raviSoftware testing q as   collection by ravi
Software testing q as collection by ravi
 
Software testing pdf
Software testing pdfSoftware testing pdf
Software testing pdf
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing(1)
Software testing(1)Software testing(1)
Software testing(1)
 
Software testing
Software testingSoftware testing
Software testing
 
software_testing pdf.pdf
software_testing pdf.pdfsoftware_testing pdf.pdf
software_testing pdf.pdf
 

Kürzlich hochgeladen

Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsChristian Birchler
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfStefano Stabellini
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...confluent
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...OnePlan Solutions
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identityteam-WIBU
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Matt Ray
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 

Kürzlich hochgeladen (20)

Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdf
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identity
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 

Fundamentals of Testing Chapter 1

  • 1. ASSALAMUA’LAIKUM WR.WB CHAPTER 1 FUNDAMENTALS OF TESTING oleh: CINDY YURISTIE PRAGRAM STUDI S1 SISTEM INFORMASI FAKULTAS SAINS DAN TEKNOLOGI UNIVERSITAS ISLAM NEGERI SULTAN SYARIF KASIM RIAU Referensi : Graham et.al (2006) http://sif.uin-suska.ac.id http://fst.uin-suska.ac.id http://uin-suska.ac.id
  • 2. WHAT IS TESTING ? Syllabus learning objectives for 1.2 What is testing? 1. Recall the common objectives of testing. (Kl) 2. Describe the purpose of testing in software development, maintenance and operations as a means to find defects, provide confidence and infor mation, and prevent defects. (K2) In this section, we will review the common objectives of testing. We'll explain how testing helps us to find defects, provide confidence and information, and prevent defects. We will also introduce additional fundamental principles of testing. As you read this section, you'll encounter the terms code, debugging,development of software, requirement, review, test basis, test case, testing and test objective.
  • 3. THE DRIVING TEST - ANANALOGY FOR SOFTWARE TESTING Let's use an analogy to help us: driving tests. In a driving test, the examiner crit made by the driver under test. The examiner takes the driver through a route which tests many possible driving activities, such as road junctions of different types, control and maneuvering of the car, ability to stop safely in an emergency, and awareness of the road, other road users and hazards. Some of the activities must be tested. For example, in the UK, an emergency stop test is always carried out, with the examiner simulating the moment of emergency by hitting the dashboard at which point the driver must stop the car quickly, safely and without loss of control.
  • 4. THE DRIVING TEST - ANANALOGY FOR SOFTWARE TESTING At the end of the test, the examiner makes a judgment about the driver'spe judgment on the number and severity of the failures identified, and also whether the driver has been able to meet the driving requirements. A single severe fault is enough to fail the whole test, but a small number of minor faults might still mean the test is passed. Many minor faults would reduce the confidence of the examiner in the quality —of the driving to the point where the driver cannot pass.
  • 5. DEFINING SOFTWARE TESTING Let's break the definition down into parts; the definition has some key phrases remember. The definition starts with a description of testing as a process and then lists some objectives of the test process. This is a suitable definition of testing for any level of testing, from compo-nent testing through to acceptance testing, provided that we remember to take the varying objectives of these different levels of testing into account.
  • 6. SOFTWARE TEST AND DRIVING TESTCOMPARED We can see that the software test is very like a driving test in many ways, though of course it is not a perfect analogy! The driving examiner becomes the software tester. The driver being examined becomes the system or software under test, and you'll see as we go through this book that the same approach broadly holds. So, test activities exist before and after test execution. As a tester or test manager, you will be involved in planning and control of the testing, choosing test conditions, designing test cases based on those test conditions, executing them and checking results, evaluating whether enough testing has been done by Examining completion (or exit) criteria, reporting on the testing process and system under test, and presenting test completion (or summary) reports.
  • 7. WHEN CAN WE MEET OUR TEST OBJECTIVES ? We can use both dynamic testing and static testing as a means for achieving similar test objectives. Both provide information to improve both the system to be tested, and the development and testing processes. We mentioned above that testing can have different goals and objectives, which often include:  Finding defects;  Gaining confidence in and providing information about the level of quality;  preventing defects.
  • 8. FOCUSING ON DEFECTS CAN HELP US PLAN OUR TESTS Reviewing defects and failures in order to improve processes allows us to im processes. One phenomenon that many testers have observed is that defects tend to cluster. This can happen because an area of the code is particularly complex and tricky, or because changing software and other products tends to cause knock-on defects. Testers will often use this information when making their risk assessment for planning the tests, and will focus on known 'hot spots'.
  • 9. FOCUSING ON DEFECTS CAN HELP US PLAN OUR TESTS A main focus of reviews and other static tests is to carry out testing as early as from appearing at later stages of this project. These activities help us find out about defects earlier and identify potential clusters. Additionally, an important outcome of all testing is information that assists in risk assess-ment; these reviews will contribute to the planning for the tests executed later in the software development life cycle. We might also carry out root cause analysis to prevent defects and failures happening again and perhaps to identify the cause of clusters and potential future clusters.
  • 10. THE DEFECT CLUSTERS CHANGE OVER TIME Over time, as we improve our whole software development life cycle and the defects. A typical test improvement initiative will initially find more defects as the testing improves and then, as the defect prevention kicks in, we see the defect numbers dropping. The first part of the improvement enables us to reduce failures in operation; later the improve-ments are making us more efficient and effective in producing the software with fewer defects in it.
  • 11. THE DEFECT CLUSTERS CHANGE OVER TIME As the 'hot spots' for bugs get cleaned up we need to move our focus else- where, to the next set of risks. Over time, our focus may change from finding coding bugs, to looking at the requirements and design documents for defects, and to looking for process improvements so that we prevent defects in the product.
  • 12. DEBUGGING REMOVES DEFECTS When a test finds a defect that must be fixed, a programmer must do some rk to locate the defect in the code and make the fix. In this process, called debug-ging, a programmer will examine the code for the immediate cause of the problem, repair the code and check that the code now executes as expected. The fix is often then tested separately (e.g. by an independent tester) to confirm the fix. Notice that testing and debugging are different activities. Developers may test their own fixes, in which case the very tight cycle of identifying faults, debugging, and retesting is often loosely referred to as debugging. However, often following the debugging cycle the fixed code is tested independently both to retest the fix itself and to apply regression testing to the surrounding unchanged software.
  • 13. IS THE SOFTWARE DEFECT FREE ? This principle arises from the theory of the process of scientific ex testing books. While you are not expected to read the scientific theory [Popper] the analogy used in science is useful; however many white swans we see, we cannot say 'All swans are white'. However, as soon as we see one black swan we can say 'Not all swans are white'. In the same way, however many tests we execute without finding a bug, we have not shown 'There are no bugs'. As soon as we find a bug, we have shown 'This code is not bug-free'.
  • 14. IF WE DON’T FIND DEFECTS DOES THAT MEAN THE USERS WILL ACCEPT THESOFTWARE There is another important principle we must consider; the customers for soft-ware - the people and organizations who buy and use it to aid in their day-to-day tasks - are not interested in defects or numbers of defects, except when they are directly affected by the instability of the software. The people using soft-ware are more interested in the software supporting them in completing tasks efficiently and effectively. The software must meet their needs. It is for this reason that the requirements and design defects we discussed earlier are so important, and why reviews and inspections are such a funda- mental part of the entire test activity.