SlideShare a Scribd company logo
FUNDAMENTALS OF TESTING 
Session 1B 
© AiTi Education 1
Overview 
• Why testing is necessary 
• Fundamental test process 
• Psychology of testing 
• Re-testing and regression testing 
• Expected results 
• Prioritisation of tests 
© AiTi Education 2
Why test? 
• build confidence 
• prove that the software is correct 
• demonstrate conformance to requirements 
• find faults 
• reduce costs 
• show system meets user needs 
• assess the software quality 
© AiTi Education 3
Confidence 
FFaauulltt sf ofouunndd 
© AiTi Education 4 
Time 
Confidence 
No faults found = confidence?
Assessing software quality 
High 
Low High 
© AiTi Education 5 
Few 
Many Faults 
Faults 
Few 
Faults 
Few 
Faults 
Few 
Faults 
You may 
be here 
You think 
you are here 
Test 
Quality 
Low 
Software Quality
A traditional testing approach 
• Show that the system: 
– does what it should 
– doesn't do what it shouldn't 
Goal: show working 
Success: system works 
Goal: show working 
Success: system works 
Fastest achievement: easy test cases 
RReessuulltt:: ffaauullttss lleefftt iinn 
© AiTi Education 6
A better testing approach 
• Show that the system: 
– does what it shouldn't 
– doesn't do what it should 
Goal: find faults 
Success: system fails 
Goal: find faults 
Success: system fails 
Fastest achievement: difficult test cases 
Result: Result: ffeewweerr ffaauullttss lleefftt iinn 
© AiTi Education 7
The testing paradox 
Purpose of testing: to find faults 
Finding faults destroys confidence 
Purpose of testing: destroy confidence 
Purpose of testing: build confidence 
The best way to build confidence 
The best way to build confidence 
is to try to destroy it 
is to try to destroy it 
© AiTi Education 8
Who wants to be a tester? 
• A destructive process 
• Bring bad news (“your baby is ugly”) 
• Under worst time pressure (at the end) 
• Need to take a different view, a different 
mindset (“What if it isn’t?”, “What could go 
wrong?”) 
• How should fault information be 
communicated (to authors and 
managers?) 
© AiTi Education 9
Tester’s have the right to: 
– accurate information about progress and 
changes 
– insight from developers about areas of the 
software 
– delivered code tested to an agreed standard 
– be regarded as a professional (no abuse!) 
– find faults! 
– challenge specifications and test plans 
– have reported faults taken seriously 
(unreproducible) 
– make predictions about future fault levels 
– improve your own testing process 
© AiTi Education 10
Testers have responsibility to: 
– follow the test plans, scripts etc. as 
documented 
– report faults objectively and factually (no 
abuse!) 
– check tests are correct before reporting s/w 
faults 
– remember it is the software, not the 
programmer, that you are testing 
– assess risk objectively 
– prioritise what you report 
– communicate the truth 
© AiTi Education 11
Independence 
• Test your own work? 
– find 30% - 50% of your own faults 
– same assumptions and thought processes 
– see what you meant or want to see, not what 
is there 
– emotional attachment 
• don’t want to find faults 
• actively want NOT to find faults 
© AiTi Education 12
Levels of independence 
• None: tests designed by the person who 
wrote the software 
• Tests designed by a different person 
• Tests designed by someone from a 
different department or team (e.g. test team) 
• Tests designed by someone from a 
different organisation (e.g. agency) 
• Tests generated by a tool (low quality tests?) 
© AiTi Education 13
Overview 
• Why testing is necessary 
• Fundamental test process 
• Psychology of testing 
• Re-testing and regression testing 
• Expected results 
• Prioritisation of tests 
© AiTi Education 14
Re-testing after faults are fixed 
• Run a test, it fails, fault reported 
• New version of software with fault “fixed” 
• Re-run the same test (i.e. re-test) 
– must be exactly repeatable 
– same environment, versions (except for the 
software which has been intentionally 
changed!) 
– same inputs and preconditions 
• If test now passes, fault has been fixed 
correctly - or has it? 
© AiTi Education 15
Re-testing (re-running failed tests) 
New faults introduced by the first 
fault fix not found during re-testing 
x 
© AiTi Education 16 
x 
x 
x 
Re-test to check 
Fault now fixed 

Regression test 
• to look for any unexpected side-effects 
x 
x 
© AiTi Education 17 
x 
x 
 
Can’t guarantee 
to find them all
Regression testing 1 
• misnomer: "anti-regression" or 
"progression" 
• standard set of tests - regression test pack 
• at any level (unit, integration, system, 
acceptance) 
• well worth automating 
• a developing asset but needs to be 
maintained 
© AiTi Education 18
Regression testing 2 
• Regression tests are performed 
– after software changes, including faults fixed 
– when the environment changes, even if 
application functionality stays the same 
– for emergency fixes (possibly a subset) 
• Regression test suites 
– evolve over time 
– are run often 
– may become rather large 
© AiTi Education 19
Regression testing 3 
• Maintenance of the regression test pack 
– eliminate repetitive tests (tests which test the 
same test condition) 
– combine test cases (e.g. if they are always 
run together) 
– select a different subset of the full regression 
suite to run each time a regression test is 
needed 
– eliminate tests which have not found a fault 
for a long time (e.g. old fault fix tests) 
© AiTi Education 20
Regression testing and automation 
• Test execution tools (e.g. capture replay) are 
regression testing tools - they re-execute tests 
which have already been executed 
• Once automated, regression tests can be run as 
often as desired (e.g. every night) 
• Automating tests is not trivial (generally takes 2 
to 10 times longer to automate a test than to run 
it manually 
• Don’t automate everything - plan what to 
automate first, only automate if worthwhile 
© AiTi Education 21
Overview 
• Why testing is necessary 
• Fundamental test process 
• Psychology of testing 
• Re-testing and regression testing 
• Expected results 
• Prioritisation of tests 
© AiTi Education 22
Expected results 
• Should be predicted in advance as part of 
the test design process 
– ‘Oracle Assumption’ assumes that correct 
outcome can be predicted. 
• Why not just look at what the software 
does and assess it at the time? 
– subconscious desire for the test to pass - less 
work to do, no incident report to write up 
– it looks plausible, so it must be OK - less 
rigorous than calculating in advance and 
comparing 
© AiTi Education 23
© AiTi Education 24 
A test 
• A Program: 
Read A 
IF (A = 8) THEN 
PRINT (“10”) 
ELSE 
PRINT (2*A) 
inputs 
expected 
outputs 
3 
8 
6? 
10?
Overview 
• Why testing is necessary 
• Fundamental test process 
• Psychology of testing 
• Re-testing and regression testing 
• Expected results 
• Prioritisation of tests 
© AiTi Education 25
Prioritising tests 
• We can’t test everything 
• There is never enough time to do all the 
testing you would like 
• So what testing should you do? 
© AiTi Education 26
Most important principle 
Prioritise tests 
Prioritise tests 
so that, 
so that, 
whenever you stop testing, 
you have done the best testing 
whenever you stop testing, 
you have done the best testing 
in the time available. 
in the time available. 
© AiTi Education 27
How to prioritise? 
• Possible ranking criteria (all risk based) 
– test where a failure would be most severe 
– test where failures would be most visible 
– test where failures are most likely 
– ask the customer to prioritise the 
requirements 
– what is most critical to the customer’s 
business 
– areas changed most often 
– areas with most problems in the past 
– most complex areas, or technically critical 
© AiTi Education 28
Summary: Key Points 
• Independence & relationships are important in 
testing 
• Re-test fixes; regression test for the unexpected 
• Expected results from a specification in advance 
• Prioritise to do the best testing in the time you 
have 
© AiTi Education 29
Thank You 
AiTi Education 
published by www.aiti.edu.vn @aiti_aptech 
aiti.edu.vn 
© AiTi Education 30

More Related Content

What's hot

[HCMC STC Jan 2015] Proving Our Worth Quantifying The Value Of Testing
[HCMC STC Jan 2015] Proving Our Worth  Quantifying The Value Of Testing[HCMC STC Jan 2015] Proving Our Worth  Quantifying The Value Of Testing
[HCMC STC Jan 2015] Proving Our Worth Quantifying The Value Of Testing
Ho Chi Minh City Software Testing Club
 
Practical Application Of Risk Based Testing Methods
Practical Application Of Risk Based Testing MethodsPractical Application Of Risk Based Testing Methods
Practical Application Of Risk Based Testing Methods
Reuben Korngold
 

What's hot (20)

14 lessons for successful testing outsourcing
14 lessons for successful testing outsourcing14 lessons for successful testing outsourcing
14 lessons for successful testing outsourcing
 
Geoff Thompson - Why Do We Bother With Test Strategies
Geoff Thompson - Why Do We Bother With Test StrategiesGeoff Thompson - Why Do We Bother With Test Strategies
Geoff Thompson - Why Do We Bother With Test Strategies
 
[HCMC STC Jan 2015] Proving Our Worth Quantifying The Value Of Testing
[HCMC STC Jan 2015] Proving Our Worth  Quantifying The Value Of Testing[HCMC STC Jan 2015] Proving Our Worth  Quantifying The Value Of Testing
[HCMC STC Jan 2015] Proving Our Worth Quantifying The Value Of Testing
 
Fredrik Rydberg - Can Exploratory Testing Save Lives - EuroSTAR 2010
Fredrik Rydberg - Can Exploratory Testing Save Lives - EuroSTAR 2010Fredrik Rydberg - Can Exploratory Testing Save Lives - EuroSTAR 2010
Fredrik Rydberg - Can Exploratory Testing Save Lives - EuroSTAR 2010
 
Isabel Evans - Quality In Use - EuroSTAR 2011
Isabel Evans - Quality In Use - EuroSTAR 2011Isabel Evans - Quality In Use - EuroSTAR 2011
Isabel Evans - Quality In Use - EuroSTAR 2011
 
[HCMC STC Jan 2015] How To Work Effectively As a Tester in Agile Teams
[HCMC STC Jan 2015] How To Work Effectively As a Tester in Agile Teams[HCMC STC Jan 2015] How To Work Effectively As a Tester in Agile Teams
[HCMC STC Jan 2015] How To Work Effectively As a Tester in Agile Teams
 
Building a testing team
Building a testing teamBuilding a testing team
Building a testing team
 
[HCMC STC Jan 2015] Workshop Of Context-Driven Testing In Agile
[HCMC STC Jan 2015] Workshop Of Context-Driven Testing In Agile[HCMC STC Jan 2015] Workshop Of Context-Driven Testing In Agile
[HCMC STC Jan 2015] Workshop Of Context-Driven Testing In Agile
 
Henrik Andersson - Exploratory Testing Champions - EuroSTAR 2010
Henrik Andersson - Exploratory Testing Champions - EuroSTAR 2010Henrik Andersson - Exploratory Testing Champions - EuroSTAR 2010
Henrik Andersson - Exploratory Testing Champions - EuroSTAR 2010
 
Root cause Analysis of Defects
Root cause Analysis of DefectsRoot cause Analysis of Defects
Root cause Analysis of Defects
 
David Hayman - The Future of Testing is in New Zealand
David Hayman - The Future of Testing is in New ZealandDavid Hayman - The Future of Testing is in New Zealand
David Hayman - The Future of Testing is in New Zealand
 
Inspection used in various ways
Inspection used in various waysInspection used in various ways
Inspection used in various ways
 
10 signs your testing is not enough
10 signs your testing is not enough10 signs your testing is not enough
10 signs your testing is not enough
 
Methodology: IT test
Methodology: IT testMethodology: IT test
Methodology: IT test
 
Peter Zimmerer - Establishing Testing Knowledge and Experience Sharing at Sie...
Peter Zimmerer - Establishing Testing Knowledge and Experience Sharing at Sie...Peter Zimmerer - Establishing Testing Knowledge and Experience Sharing at Sie...
Peter Zimmerer - Establishing Testing Knowledge and Experience Sharing at Sie...
 
Agile Testing - Not Just Tester’s Story _ Dang Thanh Long
Agile Testing - Not Just Tester’s Story _ Dang Thanh LongAgile Testing - Not Just Tester’s Story _ Dang Thanh Long
Agile Testing - Not Just Tester’s Story _ Dang Thanh Long
 
Practical Application Of Risk Based Testing Methods
Practical Application Of Risk Based Testing MethodsPractical Application Of Risk Based Testing Methods
Practical Application Of Risk Based Testing Methods
 
Paul Gerrard - The Redistribution of Testing – Where to Innovate and What to ...
Paul Gerrard - The Redistribution of Testing – Where to Innovate and What to ...Paul Gerrard - The Redistribution of Testing – Where to Innovate and What to ...
Paul Gerrard - The Redistribution of Testing – Where to Innovate and What to ...
 
Gitte Ottosen - Agility and Process Maturity, Of Course They Mix!
Gitte Ottosen - Agility and Process Maturity, Of Course They Mix!Gitte Ottosen - Agility and Process Maturity, Of Course They Mix!
Gitte Ottosen - Agility and Process Maturity, Of Course They Mix!
 
Agile Testing
Agile TestingAgile Testing
Agile Testing
 

Viewers also liked

Recoleccion de informacion, sen
Recoleccion de informacion, senRecoleccion de informacion, sen
Recoleccion de informacion, sen
juliangmeza
 
Planteamiento de soluciones
Planteamiento de solucionesPlanteamiento de soluciones
Planteamiento de soluciones
juliangmeza
 

Viewers also liked (18)

Case study manual testing web application
Case study manual testing web applicationCase study manual testing web application
Case study manual testing web application
 
Animales en peligro de extinción del Peú
Animales en peligro de extinción del PeúAnimales en peligro de extinción del Peú
Animales en peligro de extinción del Peú
 
goodie_card_advertise
goodie_card_advertisegoodie_card_advertise
goodie_card_advertise
 
Sembcorp team leadership
Sembcorp team leadershipSembcorp team leadership
Sembcorp team leadership
 
avcc 1
avcc 1avcc 1
avcc 1
 
eCampus: Workshop Certificate
eCampus: Workshop CertificateeCampus: Workshop Certificate
eCampus: Workshop Certificate
 
Gamification and Mobile Learning
Gamification and Mobile LearningGamification and Mobile Learning
Gamification and Mobile Learning
 
DXN COLOMBIA EQUIPO ALFA OPORTUNIDAD DE NEGOCIO EN COLOMBIA Y EL MUNDO
DXN COLOMBIA EQUIPO ALFA OPORTUNIDAD DE NEGOCIO EN COLOMBIA Y EL MUNDODXN COLOMBIA EQUIPO ALFA OPORTUNIDAD DE NEGOCIO EN COLOMBIA Y EL MUNDO
DXN COLOMBIA EQUIPO ALFA OPORTUNIDAD DE NEGOCIO EN COLOMBIA Y EL MUNDO
 
Recoleccion de informacion, sen
Recoleccion de informacion, senRecoleccion de informacion, sen
Recoleccion de informacion, sen
 
Planteamiento de soluciones
Planteamiento de solucionesPlanteamiento de soluciones
Planteamiento de soluciones
 
Gipuzkoa v2
Gipuzkoa v2Gipuzkoa v2
Gipuzkoa v2
 
рене декарт
рене декартрене декарт
рене декарт
 
Propuesta de política pública: obesidad en México.
Propuesta de política pública: obesidad en México.Propuesta de política pública: obesidad en México.
Propuesta de política pública: obesidad en México.
 
Branding 2.0 anand narasimha
Branding 2.0 anand narasimhaBranding 2.0 anand narasimha
Branding 2.0 anand narasimha
 
Best Mobile App Solutions Provider | IoT | eLearning | Education | Gaming | a...
Best Mobile App Solutions Provider | IoT | eLearning | Education | Gaming | a...Best Mobile App Solutions Provider | IoT | eLearning | Education | Gaming | a...
Best Mobile App Solutions Provider | IoT | eLearning | Education | Gaming | a...
 
14 software technical_metrics
14 software technical_metrics14 software technical_metrics
14 software technical_metrics
 
SERVICE MANAGEMENT PRESENTATION (MAXIS)
SERVICE MANAGEMENT PRESENTATION (MAXIS)SERVICE MANAGEMENT PRESENTATION (MAXIS)
SERVICE MANAGEMENT PRESENTATION (MAXIS)
 
11 software testing_strategy
11 software testing_strategy11 software testing_strategy
11 software testing_strategy
 

Similar to AiTi Education Software Testing Session 01 b

Top Ten Tips for Tackling Test Automation Webinar Presentation.pptx
Top Ten Tips for Tackling Test Automation Webinar Presentation.pptxTop Ten Tips for Tackling Test Automation Webinar Presentation.pptx
Top Ten Tips for Tackling Test Automation Webinar Presentation.pptx
Inflectra
 

Similar to AiTi Education Software Testing Session 01 b (20)

AiTi Education Software Testing Session 01 a
AiTi Education Software Testing Session 01 aAiTi Education Software Testing Session 01 a
AiTi Education Software Testing Session 01 a
 
AiTi Education Software Testing Session 02 a
AiTi Education Software Testing Session 02 aAiTi Education Software Testing Session 02 a
AiTi Education Software Testing Session 02 a
 
AiTi Education Software Testing Session 03
AiTi Education Software Testing Session 03AiTi Education Software Testing Session 03
AiTi Education Software Testing Session 03
 
Software Engineering (Testing Overview)
Software Engineering (Testing Overview)Software Engineering (Testing Overview)
Software Engineering (Testing Overview)
 
rryghg.ppt
rryghg.pptrryghg.ppt
rryghg.ppt
 
Testing software
Testing softwareTesting software
Testing software
 
CEN6070.1.Chapter10.1.ppt
CEN6070.1.Chapter10.1.pptCEN6070.1.Chapter10.1.ppt
CEN6070.1.Chapter10.1.ppt
 
CEN6070.1.Chapter10.1 (1).ppt
CEN6070.1.Chapter10.1 (1).pptCEN6070.1.Chapter10.1 (1).ppt
CEN6070.1.Chapter10.1 (1).ppt
 
CEN6070.1.Chapter10.1.ppt
CEN6070.1.Chapter10.1.pptCEN6070.1.Chapter10.1.ppt
CEN6070.1.Chapter10.1.ppt
 
CEN6070.1.Chapter10.1.ppt
CEN6070.1.Chapter10.1.pptCEN6070.1.Chapter10.1.ppt
CEN6070.1.Chapter10.1.ppt
 
Introduction To Testing by enosislearning.com
Introduction To Testing by enosislearning.com Introduction To Testing by enosislearning.com
Introduction To Testing by enosislearning.com
 
Top Ten Tips for Tackling Test Automation Webinar Presentation.pptx
Top Ten Tips for Tackling Test Automation Webinar Presentation.pptxTop Ten Tips for Tackling Test Automation Webinar Presentation.pptx
Top Ten Tips for Tackling Test Automation Webinar Presentation.pptx
 
Fundamentals_of_Software_testing.pptx
Fundamentals_of_Software_testing.pptxFundamentals_of_Software_testing.pptx
Fundamentals_of_Software_testing.pptx
 
Automation testing in Agile project
Automation testing in Agile projectAutomation testing in Agile project
Automation testing in Agile project
 
Integrate Test Activities in Agile
Integrate Test Activities in AgileIntegrate Test Activities in Agile
Integrate Test Activities in Agile
 
Integrate testing activities in Agile (EuroSTAR webinar)
Integrate testing activities in Agile (EuroSTAR webinar)Integrate testing activities in Agile (EuroSTAR webinar)
Integrate testing activities in Agile (EuroSTAR webinar)
 
Bab 1 Fundamentals Of Testing
Bab 1 Fundamentals Of TestingBab 1 Fundamentals Of Testing
Bab 1 Fundamentals Of Testing
 
7 steps to Software test automation success
7 steps to Software test automation success7 steps to Software test automation success
7 steps to Software test automation success
 
Unit iv-testing-pune-university-sres-coe
Unit iv-testing-pune-university-sres-coeUnit iv-testing-pune-university-sres-coe
Unit iv-testing-pune-university-sres-coe
 
Fundamentals of Testing Section 1/6
Fundamentals of Testing   Section 1/6Fundamentals of Testing   Section 1/6
Fundamentals of Testing Section 1/6
 

More from AiTi Education

[Vietnam Mobile Day 2014] Tăng doanh thu quảng cáo cho mobile site và ứng dụn...
[Vietnam Mobile Day 2014] Tăng doanh thu quảng cáo cho mobile site và ứng dụn...[Vietnam Mobile Day 2014] Tăng doanh thu quảng cáo cho mobile site và ứng dụn...
[Vietnam Mobile Day 2014] Tăng doanh thu quảng cáo cho mobile site và ứng dụn...
AiTi Education
 
[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...
[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...
[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...
AiTi Education
 
[Vietnam Mobile Day 2014] Mobile kết nối thế giới số và thế giới thực và vai ...
[Vietnam Mobile Day 2014] Mobile kết nối thế giới số và thế giới thực và vai ...[Vietnam Mobile Day 2014] Mobile kết nối thế giới số và thế giới thực và vai ...
[Vietnam Mobile Day 2014] Mobile kết nối thế giới số và thế giới thực và vai ...
AiTi Education
 
[Vietnam Mobile Day 2014] The new mobile marketing channel: Social Wifi Marke...
[Vietnam Mobile Day 2014] The new mobile marketing channel: Social Wifi Marke...[Vietnam Mobile Day 2014] The new mobile marketing channel: Social Wifi Marke...
[Vietnam Mobile Day 2014] The new mobile marketing channel: Social Wifi Marke...
AiTi Education
 
[Vietnam Mobile Day 2014] Cá nhân hóa và xác định Khách hàng mục tiêu trong q...
[Vietnam Mobile Day 2014] Cá nhân hóa và xác định Khách hàng mục tiêu trong q...[Vietnam Mobile Day 2014] Cá nhân hóa và xác định Khách hàng mục tiêu trong q...
[Vietnam Mobile Day 2014] Cá nhân hóa và xác định Khách hàng mục tiêu trong q...
AiTi Education
 
[Vietnam Mobile Day 2014] Chiến lược thu hút người dùng cho ứng dụng tại thị ...
[Vietnam Mobile Day 2014] Chiến lược thu hút người dùng cho ứng dụng tại thị ...[Vietnam Mobile Day 2014] Chiến lược thu hút người dùng cho ứng dụng tại thị ...
[Vietnam Mobile Day 2014] Chiến lược thu hút người dùng cho ứng dụng tại thị ...
AiTi Education
 
[Vietnam Mobile Day 2014] Thanh toán mobile, hiện tại và xu hướng- Nguyễn Chi...
[Vietnam Mobile Day 2014] Thanh toán mobile, hiện tại và xu hướng- Nguyễn Chi...[Vietnam Mobile Day 2014] Thanh toán mobile, hiện tại và xu hướng- Nguyễn Chi...
[Vietnam Mobile Day 2014] Thanh toán mobile, hiện tại và xu hướng- Nguyễn Chi...
AiTi Education
 
[Vietnam Mobile Day 2014] Thanh toán bằng thẻ ngân hàng trên mobile chưa bao ...
[Vietnam Mobile Day 2014] Thanh toán bằng thẻ ngân hàng trên mobile chưa bao ...[Vietnam Mobile Day 2014] Thanh toán bằng thẻ ngân hàng trên mobile chưa bao ...
[Vietnam Mobile Day 2014] Thanh toán bằng thẻ ngân hàng trên mobile chưa bao ...
AiTi Education
 
[Vietnam Mobile Day 2014] How to build a mobile store app in 5 minutes - Ng...
[Vietnam Mobile Day 2014] How to build a mobile store app in 5 minutes - 	 Ng...[Vietnam Mobile Day 2014] How to build a mobile store app in 5 minutes - 	 Ng...
[Vietnam Mobile Day 2014] How to build a mobile store app in 5 minutes - Ng...
AiTi Education
 
[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh - Cou...
[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh - Cou...[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh - Cou...
[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh - Cou...
AiTi Education
 
[Vietnam Mobile Day 2014] Xu hướng trong Mobile Learning, 2014 - Nguyễn Thàn...
[Vietnam Mobile Day 2014] Xu hướng trong Mobile Learning, 2014  - Nguyễn Thàn...[Vietnam Mobile Day 2014] Xu hướng trong Mobile Learning, 2014  - Nguyễn Thàn...
[Vietnam Mobile Day 2014] Xu hướng trong Mobile Learning, 2014 - Nguyễn Thàn...
AiTi Education
 
[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....
[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....
[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....
AiTi Education
 
[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....
[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....
[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....
AiTi Education
 
[Vietnam Mobile Day 2014] Gamification and Mobile Learning - Nguyễn Hữu Ân -...
[Vietnam Mobile Day 2014]  Gamification and Mobile Learning - Nguyễn Hữu Ân -...[Vietnam Mobile Day 2014]  Gamification and Mobile Learning - Nguyễn Hữu Ân -...
[Vietnam Mobile Day 2014] Gamification and Mobile Learning - Nguyễn Hữu Ân -...
AiTi Education
 
[Vietnam Mobile Day 2014] Cơ hội & thách thức cho Game Studio Việt trước tảng...
[Vietnam Mobile Day 2014] Cơ hội & thách thức cho Game Studio Việt trước tảng...[Vietnam Mobile Day 2014] Cơ hội & thách thức cho Game Studio Việt trước tảng...
[Vietnam Mobile Day 2014] Cơ hội & thách thức cho Game Studio Việt trước tảng...
AiTi Education
 
[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh – Cou...
[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh – Cou...[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh – Cou...
[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh – Cou...
AiTi Education
 
[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...
[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...
[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...
AiTi Education
 

More from AiTi Education (20)

AiTi Education Profile
AiTi Education ProfileAiTi Education Profile
AiTi Education Profile
 
AiTi Education Software Testing Session 02 b
AiTi Education Software Testing Session 02 bAiTi Education Software Testing Session 02 b
AiTi Education Software Testing Session 02 b
 
Vietnam mobile internet_2014_mwork_vietnam_mobile_day
Vietnam mobile internet_2014_mwork_vietnam_mobile_dayVietnam mobile internet_2014_mwork_vietnam_mobile_day
Vietnam mobile internet_2014_mwork_vietnam_mobile_day
 
[Vietnam Mobile Day 2014] Tăng doanh thu quảng cáo cho mobile site và ứng dụn...
[Vietnam Mobile Day 2014] Tăng doanh thu quảng cáo cho mobile site và ứng dụn...[Vietnam Mobile Day 2014] Tăng doanh thu quảng cáo cho mobile site và ứng dụn...
[Vietnam Mobile Day 2014] Tăng doanh thu quảng cáo cho mobile site và ứng dụn...
 
[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...
[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...
[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...
 
[Vietnam Mobile Day 2014] Mobile kết nối thế giới số và thế giới thực và vai ...
[Vietnam Mobile Day 2014] Mobile kết nối thế giới số và thế giới thực và vai ...[Vietnam Mobile Day 2014] Mobile kết nối thế giới số và thế giới thực và vai ...
[Vietnam Mobile Day 2014] Mobile kết nối thế giới số và thế giới thực và vai ...
 
[Vietnam Mobile Day 2014] The new mobile marketing channel: Social Wifi Marke...
[Vietnam Mobile Day 2014] The new mobile marketing channel: Social Wifi Marke...[Vietnam Mobile Day 2014] The new mobile marketing channel: Social Wifi Marke...
[Vietnam Mobile Day 2014] The new mobile marketing channel: Social Wifi Marke...
 
[Vietnam Mobile Day 2014] Cá nhân hóa và xác định Khách hàng mục tiêu trong q...
[Vietnam Mobile Day 2014] Cá nhân hóa và xác định Khách hàng mục tiêu trong q...[Vietnam Mobile Day 2014] Cá nhân hóa và xác định Khách hàng mục tiêu trong q...
[Vietnam Mobile Day 2014] Cá nhân hóa và xác định Khách hàng mục tiêu trong q...
 
[Vietnam Mobile Day 2014] Chiến lược thu hút người dùng cho ứng dụng tại thị ...
[Vietnam Mobile Day 2014] Chiến lược thu hút người dùng cho ứng dụng tại thị ...[Vietnam Mobile Day 2014] Chiến lược thu hút người dùng cho ứng dụng tại thị ...
[Vietnam Mobile Day 2014] Chiến lược thu hút người dùng cho ứng dụng tại thị ...
 
[Vietnam Mobile Day 2014] Thanh toán mobile, hiện tại và xu hướng- Nguyễn Chi...
[Vietnam Mobile Day 2014] Thanh toán mobile, hiện tại và xu hướng- Nguyễn Chi...[Vietnam Mobile Day 2014] Thanh toán mobile, hiện tại và xu hướng- Nguyễn Chi...
[Vietnam Mobile Day 2014] Thanh toán mobile, hiện tại và xu hướng- Nguyễn Chi...
 
[Vietnam Mobile Day 2014] Thanh toán bằng thẻ ngân hàng trên mobile chưa bao ...
[Vietnam Mobile Day 2014] Thanh toán bằng thẻ ngân hàng trên mobile chưa bao ...[Vietnam Mobile Day 2014] Thanh toán bằng thẻ ngân hàng trên mobile chưa bao ...
[Vietnam Mobile Day 2014] Thanh toán bằng thẻ ngân hàng trên mobile chưa bao ...
 
[Vietnam Mobile Day 2014] How to build a mobile store app in 5 minutes - Ng...
[Vietnam Mobile Day 2014] How to build a mobile store app in 5 minutes - 	 Ng...[Vietnam Mobile Day 2014] How to build a mobile store app in 5 minutes - 	 Ng...
[Vietnam Mobile Day 2014] How to build a mobile store app in 5 minutes - Ng...
 
[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh - Cou...
[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh - Cou...[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh - Cou...
[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh - Cou...
 
[Vietnam Mobile Day 2014] Xu hướng trong Mobile Learning, 2014 - Nguyễn Thàn...
[Vietnam Mobile Day 2014] Xu hướng trong Mobile Learning, 2014  - Nguyễn Thàn...[Vietnam Mobile Day 2014] Xu hướng trong Mobile Learning, 2014  - Nguyễn Thàn...
[Vietnam Mobile Day 2014] Xu hướng trong Mobile Learning, 2014 - Nguyễn Thàn...
 
[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....
[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....
[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....
 
[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....
[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....
[Vietnam Mobile Day 2014] Toàn cảnh thị trường game smartphone Việt Nam 2013....
 
[Vietnam Mobile Day 2014] Gamification and Mobile Learning - Nguyễn Hữu Ân -...
[Vietnam Mobile Day 2014]  Gamification and Mobile Learning - Nguyễn Hữu Ân -...[Vietnam Mobile Day 2014]  Gamification and Mobile Learning - Nguyễn Hữu Ân -...
[Vietnam Mobile Day 2014] Gamification and Mobile Learning - Nguyễn Hữu Ân -...
 
[Vietnam Mobile Day 2014] Cơ hội & thách thức cho Game Studio Việt trước tảng...
[Vietnam Mobile Day 2014] Cơ hội & thách thức cho Game Studio Việt trước tảng...[Vietnam Mobile Day 2014] Cơ hội & thách thức cho Game Studio Việt trước tảng...
[Vietnam Mobile Day 2014] Cơ hội & thách thức cho Game Studio Việt trước tảng...
 
[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh – Cou...
[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh – Cou...[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh – Cou...
[Vietnam Mobile Day 2014] Touch the future of the web - Nguyễn Việt Anh – Cou...
 
[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...
[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...
[Vietnam Mobile Day 2014] Mobile money - Xu hướng thanh toán nhỏ trên mobile ...
 

Recently uploaded

Recently uploaded (20)

How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 

AiTi Education Software Testing Session 01 b

  • 1. FUNDAMENTALS OF TESTING Session 1B © AiTi Education 1
  • 2. Overview • Why testing is necessary • Fundamental test process • Psychology of testing • Re-testing and regression testing • Expected results • Prioritisation of tests © AiTi Education 2
  • 3. Why test? • build confidence • prove that the software is correct • demonstrate conformance to requirements • find faults • reduce costs • show system meets user needs • assess the software quality © AiTi Education 3
  • 4. Confidence FFaauulltt sf ofouunndd © AiTi Education 4 Time Confidence No faults found = confidence?
  • 5. Assessing software quality High Low High © AiTi Education 5 Few Many Faults Faults Few Faults Few Faults Few Faults You may be here You think you are here Test Quality Low Software Quality
  • 6. A traditional testing approach • Show that the system: – does what it should – doesn't do what it shouldn't Goal: show working Success: system works Goal: show working Success: system works Fastest achievement: easy test cases RReessuulltt:: ffaauullttss lleefftt iinn © AiTi Education 6
  • 7. A better testing approach • Show that the system: – does what it shouldn't – doesn't do what it should Goal: find faults Success: system fails Goal: find faults Success: system fails Fastest achievement: difficult test cases Result: Result: ffeewweerr ffaauullttss lleefftt iinn © AiTi Education 7
  • 8. The testing paradox Purpose of testing: to find faults Finding faults destroys confidence Purpose of testing: destroy confidence Purpose of testing: build confidence The best way to build confidence The best way to build confidence is to try to destroy it is to try to destroy it © AiTi Education 8
  • 9. Who wants to be a tester? • A destructive process • Bring bad news (“your baby is ugly”) • Under worst time pressure (at the end) • Need to take a different view, a different mindset (“What if it isn’t?”, “What could go wrong?”) • How should fault information be communicated (to authors and managers?) © AiTi Education 9
  • 10. Tester’s have the right to: – accurate information about progress and changes – insight from developers about areas of the software – delivered code tested to an agreed standard – be regarded as a professional (no abuse!) – find faults! – challenge specifications and test plans – have reported faults taken seriously (unreproducible) – make predictions about future fault levels – improve your own testing process © AiTi Education 10
  • 11. Testers have responsibility to: – follow the test plans, scripts etc. as documented – report faults objectively and factually (no abuse!) – check tests are correct before reporting s/w faults – remember it is the software, not the programmer, that you are testing – assess risk objectively – prioritise what you report – communicate the truth © AiTi Education 11
  • 12. Independence • Test your own work? – find 30% - 50% of your own faults – same assumptions and thought processes – see what you meant or want to see, not what is there – emotional attachment • don’t want to find faults • actively want NOT to find faults © AiTi Education 12
  • 13. Levels of independence • None: tests designed by the person who wrote the software • Tests designed by a different person • Tests designed by someone from a different department or team (e.g. test team) • Tests designed by someone from a different organisation (e.g. agency) • Tests generated by a tool (low quality tests?) © AiTi Education 13
  • 14. Overview • Why testing is necessary • Fundamental test process • Psychology of testing • Re-testing and regression testing • Expected results • Prioritisation of tests © AiTi Education 14
  • 15. Re-testing after faults are fixed • Run a test, it fails, fault reported • New version of software with fault “fixed” • Re-run the same test (i.e. re-test) – must be exactly repeatable – same environment, versions (except for the software which has been intentionally changed!) – same inputs and preconditions • If test now passes, fault has been fixed correctly - or has it? © AiTi Education 15
  • 16. Re-testing (re-running failed tests) New faults introduced by the first fault fix not found during re-testing x © AiTi Education 16 x x x Re-test to check Fault now fixed 
  • 17. Regression test • to look for any unexpected side-effects x x © AiTi Education 17 x x  Can’t guarantee to find them all
  • 18. Regression testing 1 • misnomer: "anti-regression" or "progression" • standard set of tests - regression test pack • at any level (unit, integration, system, acceptance) • well worth automating • a developing asset but needs to be maintained © AiTi Education 18
  • 19. Regression testing 2 • Regression tests are performed – after software changes, including faults fixed – when the environment changes, even if application functionality stays the same – for emergency fixes (possibly a subset) • Regression test suites – evolve over time – are run often – may become rather large © AiTi Education 19
  • 20. Regression testing 3 • Maintenance of the regression test pack – eliminate repetitive tests (tests which test the same test condition) – combine test cases (e.g. if they are always run together) – select a different subset of the full regression suite to run each time a regression test is needed – eliminate tests which have not found a fault for a long time (e.g. old fault fix tests) © AiTi Education 20
  • 21. Regression testing and automation • Test execution tools (e.g. capture replay) are regression testing tools - they re-execute tests which have already been executed • Once automated, regression tests can be run as often as desired (e.g. every night) • Automating tests is not trivial (generally takes 2 to 10 times longer to automate a test than to run it manually • Don’t automate everything - plan what to automate first, only automate if worthwhile © AiTi Education 21
  • 22. Overview • Why testing is necessary • Fundamental test process • Psychology of testing • Re-testing and regression testing • Expected results • Prioritisation of tests © AiTi Education 22
  • 23. Expected results • Should be predicted in advance as part of the test design process – ‘Oracle Assumption’ assumes that correct outcome can be predicted. • Why not just look at what the software does and assess it at the time? – subconscious desire for the test to pass - less work to do, no incident report to write up – it looks plausible, so it must be OK - less rigorous than calculating in advance and comparing © AiTi Education 23
  • 24. © AiTi Education 24 A test • A Program: Read A IF (A = 8) THEN PRINT (“10”) ELSE PRINT (2*A) inputs expected outputs 3 8 6? 10?
  • 25. Overview • Why testing is necessary • Fundamental test process • Psychology of testing • Re-testing and regression testing • Expected results • Prioritisation of tests © AiTi Education 25
  • 26. Prioritising tests • We can’t test everything • There is never enough time to do all the testing you would like • So what testing should you do? © AiTi Education 26
  • 27. Most important principle Prioritise tests Prioritise tests so that, so that, whenever you stop testing, you have done the best testing whenever you stop testing, you have done the best testing in the time available. in the time available. © AiTi Education 27
  • 28. How to prioritise? • Possible ranking criteria (all risk based) – test where a failure would be most severe – test where failures would be most visible – test where failures are most likely – ask the customer to prioritise the requirements – what is most critical to the customer’s business – areas changed most often – areas with most problems in the past – most complex areas, or technically critical © AiTi Education 28
  • 29. Summary: Key Points • Independence & relationships are important in testing • Re-test fixes; regression test for the unexpected • Expected results from a specification in advance • Prioritise to do the best testing in the time you have © AiTi Education 29
  • 30. Thank You AiTi Education published by www.aiti.edu.vn @aiti_aptech aiti.edu.vn © AiTi Education 30