SlideShare a Scribd company logo
1 of 21
Download to read offline
Test Estimation in Practice
STC JULY 2014
VU NGUYEN
Faculty of Information Technology
University of Science, VNU-HCMC
Agenda
• Background and Motivation
• qEstimation Process
– Test Size Estimation
– Test Effort Estimation
• Conclusion
2
Background
• Software estimation
– process of determining cost, time, staff, and other attributes
of software projects
• Estimation is important for success or failure of
projects
• Methods and Metrics
– Source Lines of Code (SLOC)
– Function Points
– Use Case Points
– Story Points
– COCOMO
– Expert Judgment
3
Motivation
• Testing accounts for up to 50% of project effort
[1]
• Current problems
– estimates done for the whole project rather than
testing specific
– lack of reliable methods designed for estimating
software testing
• Our aim
– Introducing qEstimation for estimating size and
effort of testing projects
4
Agenda
• Background and Motivation
• qEstimation Process
– Test Size Estimation
– Test Effort Estimation
• Conclusion
5
Test Case
qEstimation Process
6
Test Case
Count TCPs
of all Test
Cases
Estimate
Testing
Effort
Parameters
Counted
Size
Estimated
Effort
[Test Cycle i]
Test Cycle Size Actual
Effort
Effort by
Activity
…. …. …. ….
Test cycle i …. …. ….
…. …. …. ….
Historical Data of this Project
Update
Historical
Data
Calibrate
Estimation
Model
Estimate size and effort of different test cycles of a same project:
qEstimation Principles
• Size measures complexity of each test cycle
• Test case’s complexity is based on
– Number of checkpoints
– Complexity of test setup or precondition
– Complexity of test data
• Test Case Point (TCP) is used as size unit
• Model refinement (calibration) is key to
estimating effort
– based on previous cycles of the current project or
similar projects
7
Count Size of Test Cycle
• Size of a test cycle: total TCPs of all test cases to be
executed in that test cycle
• Steps:
8
Test Case
Count
Checkpoints
Determine Set Up
Complexity
Determine Test
Data Complexity
Adjust based on
Test Type
(optional)
Unadjusted
TCPs
TCPs
Count Size of Test Cycle - 2
• Checkpoints
– Checkpoint is the condition in which the tester
verifies whether the result produced by the target
function matches the expected criterion
– One test case consists of one or many checkpoints
9
One checkpoint is counted as one TCP
Count Size of Test Cycle - 3
• Test Setup or Precondition
– Test setup specifies the condition to execute the test case
• Include setup steps to prepare environment for testing
– Four levels of Test Setup complexity
• Each is assigned a number of TCPs
10
Number
of TCP(*)
Complexity
Level
Description
0 None • The set up is not applicable or important to execute the test case
• Or, the set up is just reused from the previous test case to continue the current test case
1 Low • The condition for executing the test case is available with some simple modifications required
• Or, some simple set-up steps are needed
3 Medium • Some explicit preparation is needed to execute the test case
• Or, The condition for executing is available with some additional modifications required
• Or, some additional set-up steps are needed
5 High • Heavy hardware and/or software configurations are needed to execute the test case
Count Size of Test Cycle - 4
• Test Data
– Test Data is used to execute the test case
• It can be generated at the test case execution time, sourced from previous
tests, or generated by test scripts
– Four levels of Test Data complexity
• Each is assigned a number of TCPs
Number of TCP
(*)
Complexity
Level
Description
0 None • No test data preparation is needed
1 Low • Simple test data is needed and can be created during the test case execution time
• Or, the test case uses a slightly modified version of existing test data and requires
little or no effort to modify the test data
3 Medium • Test data is deliberately prepared in advance with extra effort to ensure its
completeness, comprehensiveness, and consistency
6 High • Test data is prepared in advance with considerable effort to ensure its completeness,
comprehensiveness, and consistency
• This could include using support tools to generate data and a database to store and
manage test data
• Scripts may be required to generate test data
Count Size of Test Cycle - 5
• Adjust TCPs based on Type of Test
– This is an OPTIONAL step
– Adjustment is based on types of test cases
• Each type of test case is assigned a weight
• Adjusted TCP of the test case = Counted TCP x Weight(*)
12
Agenda
• Background and Motivation
• qEstimation Process
– Test Size Estimation
– Test Effort Estimation
• Conclusion
13
Estimate Effort of Test Cycle
• Overview
– Two estimation methods
• Based on Test Velocity
• Regression analysis of Size and Effort of completed test
cycles
– Effort distributed by activity
• Test Planning
• Test Analysis and Design
• Test Execution
• Test Tracking and Reporting
14
Each of these activities may
be performed multiple times
Estimate Effort of Test Cycle - 2
• Estimate Effort based on Test Velocity
Effort(person-hour) = Size(TCP) / Test Velocity(TCP per person-hour)
– Test Velocity is measured as TCP/person-hour
• Test Velocity is dependent on project
• It should be calculated based on data from completed test cycles
of the same project.
15
Estimate Effort of Test Cycle - 3
• Estimate effort using Linear Regression
Analysis
– Find out the equation of effort and size using similar
completed test cycles of a project
16
y = 0.0729x + 1.6408
0
10
20
30
40
50
60
70
80
90
100
0 100 200 300 400 500 600 700 800 900 1000
Effort(PM)
Adjusted TCP
Equation of
Size and Effort
The data analysis tool like
Excel can be used to find
out the equation
Calibrate qEstimation
• Calibration: a process adjusting parameters for
a model using historical data or experiences
• With qEstimation, you can calibrate:
(1) TCP assigned to each complexity level of Test Setup
(2) TCP assigned to each complexity level of Test Data
(3) Test Velocity
(4) Effort distribution
(5) Weights of test case types
• Process can be done with the help of tools
17
18
Tool Demo
Conclusion
• qEstimation is an agile approach to estimating
tests
– Estimate Size in TCP by measuring the complexity
of test cases
– Estimate Effort using Test Velocity or Regression
– An Excel toolkit to simplify the approach
• Advantages
– Easy to implement
– Reflecting real complexity of test cases
– Independent with the level of details of test cases
– Useful for estimating testing effort
19
References
• [1] Y. Yang, Q. Li, M. Li, Q. Wang, An empirical analysis on distribution patterns of
software maintenance effort, International Conference on Software Maintenance,
2008, pp. 456-459
• [2] N. Patel, M. Govindrajan, S. Maharana, S. Ramdas, “Test Case Point Analysis”,
Cognizant Technology Solutions, White Paper, 2001
• [3] QASymphony: www.qasymphony.com
• [4] Vu Nguyen, Vu Pham, and Vu Lam. “qEstimation: a process for estimating size
and effort of software testing.” Proceedings of the 2013 International Conference
on Software and System Process. ACM, 2013
© 2014 HCMC Software Testing Club
Thank You

More Related Content

What's hot

Test planning & estimation
Test planning & estimationTest planning & estimation
Test planning & estimation
Leslie Smart
 
Test Estimation Techniques
Test Estimation TechniquesTest Estimation Techniques
Test Estimation Techniques
Nishant Worah
 
Test effort estimation
Test effort estimationTest effort estimation
Test effort estimation
ramesh kumar
 
T19 performance testing effort - estimation or guesstimation revised
T19   performance testing effort - estimation or guesstimation revisedT19   performance testing effort - estimation or guesstimation revised
T19 performance testing effort - estimation or guesstimation revised
TEST Huddle
 
'Houston We Have A Problem' by Rien van Vugt & Maurice Siteur
'Houston We Have A Problem' by Rien van Vugt & Maurice Siteur'Houston We Have A Problem' by Rien van Vugt & Maurice Siteur
'Houston We Have A Problem' by Rien van Vugt & Maurice Siteur
TEST Huddle
 
'How To Apply Lean Test Management' by Bob van de Burgt
'How To Apply Lean Test Management' by Bob van de Burgt'How To Apply Lean Test Management' by Bob van de Burgt
'How To Apply Lean Test Management' by Bob van de Burgt
TEST Huddle
 
Quality_Assurance_Engineer_8yrs_Exp_ISTQB_Certified_MCA
Quality_Assurance_Engineer_8yrs_Exp_ISTQB_Certified_MCAQuality_Assurance_Engineer_8yrs_Exp_ISTQB_Certified_MCA
Quality_Assurance_Engineer_8yrs_Exp_ISTQB_Certified_MCA
Muhammed Salim Hussain
 

What's hot (20)

Test planning & estimation
Test planning & estimationTest planning & estimation
Test planning & estimation
 
Test effort estimation a reason behind successful testing
Test effort estimation   a reason behind successful testingTest effort estimation   a reason behind successful testing
Test effort estimation a reason behind successful testing
 
Software testing metrics | David Tzemach
Software testing metrics | David Tzemach Software testing metrics | David Tzemach
Software testing metrics | David Tzemach
 
Test case-point-analysis (whitepaper)
Test case-point-analysis (whitepaper)Test case-point-analysis (whitepaper)
Test case-point-analysis (whitepaper)
 
Software Testing - Defect Metrics & Analysis
Software Testing - Defect Metrics & AnalysisSoftware Testing - Defect Metrics & Analysis
Software Testing - Defect Metrics & Analysis
 
Tracking through kanban
Tracking through kanbanTracking through kanban
Tracking through kanban
 
Testing strategies
Testing strategiesTesting strategies
Testing strategies
 
Effective Test Estimation
Effective Test EstimationEffective Test Estimation
Effective Test Estimation
 
Software Testing Metrics
Software Testing MetricsSoftware Testing Metrics
Software Testing Metrics
 
Test Estimation Techniques
Test Estimation TechniquesTest Estimation Techniques
Test Estimation Techniques
 
Test effort estimation
Test effort estimationTest effort estimation
Test effort estimation
 
Software Test Metrics and Measurements
Software Test Metrics and MeasurementsSoftware Test Metrics and Measurements
Software Test Metrics and Measurements
 
T19 performance testing effort - estimation or guesstimation revised
T19   performance testing effort - estimation or guesstimation revisedT19   performance testing effort - estimation or guesstimation revised
T19 performance testing effort - estimation or guesstimation revised
 
[HCMC STC Jan 2015] FATS: A Framework For Automated Testing Scenarios
[HCMC STC Jan 2015] FATS: A Framework For Automated Testing Scenarios[HCMC STC Jan 2015] FATS: A Framework For Automated Testing Scenarios
[HCMC STC Jan 2015] FATS: A Framework For Automated Testing Scenarios
 
'Houston We Have A Problem' by Rien van Vugt & Maurice Siteur
'Houston We Have A Problem' by Rien van Vugt & Maurice Siteur'Houston We Have A Problem' by Rien van Vugt & Maurice Siteur
'Houston We Have A Problem' by Rien van Vugt & Maurice Siteur
 
What is Test Matrix?
What is Test Matrix?What is Test Matrix?
What is Test Matrix?
 
'How To Apply Lean Test Management' by Bob van de Burgt
'How To Apply Lean Test Management' by Bob van de Burgt'How To Apply Lean Test Management' by Bob van de Burgt
'How To Apply Lean Test Management' by Bob van de Burgt
 
Training program BaffleSol academy of learning
Training program BaffleSol academy of learningTraining program BaffleSol academy of learning
Training program BaffleSol academy of learning
 
Quality_Assurance_Engineer_8yrs_Exp_ISTQB_Certified_MCA
Quality_Assurance_Engineer_8yrs_Exp_ISTQB_Certified_MCAQuality_Assurance_Engineer_8yrs_Exp_ISTQB_Certified_MCA
Quality_Assurance_Engineer_8yrs_Exp_ISTQB_Certified_MCA
 
Reliable Relevant Metrics to the Right Audience - Manual Testing Whitepaper
Reliable Relevant Metrics to the Right Audience - Manual Testing WhitepaperReliable Relevant Metrics to the Right Audience - Manual Testing Whitepaper
Reliable Relevant Metrics to the Right Audience - Manual Testing Whitepaper
 

Viewers also liked

Finding stem women
Finding stem womenFinding stem women
Finding stem women
scsneal
 
Libertad de prensa
Libertad de prensaLibertad de prensa
Libertad de prensa
SergiRami
 
Alteration of Patent Protection Length in the Intellectual Property Provision...
Alteration of Patent Protection Length in the Intellectual Property Provision...Alteration of Patent Protection Length in the Intellectual Property Provision...
Alteration of Patent Protection Length in the Intellectual Property Provision...
Karim Khayat
 
Training 111024223009-phpapp02
Training 111024223009-phpapp02Training 111024223009-phpapp02
Training 111024223009-phpapp02
mehraj shah
 
Dossierde presse - À vos restes !
Dossierde presse - À vos restes !Dossierde presse - À vos restes !
Dossierde presse - À vos restes !
OpenOdyssey
 
AGIForesight _2020_MJP Article
AGIForesight _2020_MJP ArticleAGIForesight _2020_MJP Article
AGIForesight _2020_MJP Article
Martin Penney
 

Viewers also liked (20)

Finding stem women
Finding stem womenFinding stem women
Finding stem women
 
Muasc lleida & segovia walks' (spain) summary
Muasc lleida & segovia walks' (spain) summaryMuasc lleida & segovia walks' (spain) summary
Muasc lleida & segovia walks' (spain) summary
 
5 Ragioni per cui non puoi fare a meno di un CRM
5 Ragioni per cui non puoi fare a meno di un CRM 5 Ragioni per cui non puoi fare a meno di un CRM
5 Ragioni per cui non puoi fare a meno di un CRM
 
Libertad de prensa
Libertad de prensaLibertad de prensa
Libertad de prensa
 
Alteration of Patent Protection Length in the Intellectual Property Provision...
Alteration of Patent Protection Length in the Intellectual Property Provision...Alteration of Patent Protection Length in the Intellectual Property Provision...
Alteration of Patent Protection Length in the Intellectual Property Provision...
 
Mazurek prezentacja
Mazurek prezentacjaMazurek prezentacja
Mazurek prezentacja
 
Farmacy s (drama)
Farmacy s (drama)Farmacy s (drama)
Farmacy s (drama)
 
“Zap”: A Mobile Application for Quartz Air-Conditioning
“Zap”: A Mobile Application for Quartz Air-Conditioning“Zap”: A Mobile Application for Quartz Air-Conditioning
“Zap”: A Mobile Application for Quartz Air-Conditioning
 
[HCMC STC Jan 2015] Creating a Better Testing Future
[HCMC STC Jan 2015] Creating a Better Testing Future[HCMC STC Jan 2015] Creating a Better Testing Future
[HCMC STC Jan 2015] Creating a Better Testing Future
 
Training 111024223009-phpapp02
Training 111024223009-phpapp02Training 111024223009-phpapp02
Training 111024223009-phpapp02
 
Farmacy s (drama)
Farmacy s (drama)Farmacy s (drama)
Farmacy s (drama)
 
Dossierde presse - À vos restes !
Dossierde presse - À vos restes !Dossierde presse - À vos restes !
Dossierde presse - À vos restes !
 
Jobs
JobsJobs
Jobs
 
Blbost
BlbostBlbost
Blbost
 
ITCamp 2015. Apps 2015: a legal odissey
ITCamp 2015. Apps 2015: a legal odisseyITCamp 2015. Apps 2015: a legal odissey
ITCamp 2015. Apps 2015: a legal odissey
 
Be an ingredient detective
Be an ingredient detectiveBe an ingredient detective
Be an ingredient detective
 
AGIForesight _2020_MJP Article
AGIForesight _2020_MJP ArticleAGIForesight _2020_MJP Article
AGIForesight _2020_MJP Article
 
[Thao Vo] Deadly Traps of Automation Testing
[Thao Vo] Deadly Traps of Automation Testing[Thao Vo] Deadly Traps of Automation Testing
[Thao Vo] Deadly Traps of Automation Testing
 
Dossier de presse - Les rendez-vous de la Transition Environnementale
Dossier de presse - Les rendez-vous de la Transition EnvironnementaleDossier de presse - Les rendez-vous de la Transition Environnementale
Dossier de presse - Les rendez-vous de la Transition Environnementale
 
Muasc marches lleida et ségovie (espagne) résumé
Muasc marches lleida et ségovie (espagne) résuméMuasc marches lleida et ségovie (espagne) résumé
Muasc marches lleida et ségovie (espagne) résumé
 

Similar to [Vu Van Nguyen] Test Estimation in Practice

Software-Testing-Chapgdgdgsghshshshshshshs
Software-Testing-ChapgdgdgsghshshshshshshsSoftware-Testing-Chapgdgdgsghshshshshshshs
Software-Testing-Chapgdgdgsghshshshshshshs
shaikbab
 
A study on the efficiency of a test analysis method utilizing test-categories...
A study on the efficiency of a test analysis method utilizing test-categories...A study on the efficiency of a test analysis method utilizing test-categories...
A study on the efficiency of a test analysis method utilizing test-categories...
Tsuyoshi Yumoto
 
Test Management.pptx
Test Management.pptxTest Management.pptx
Test Management.pptx
MAshok10
 

Similar to [Vu Van Nguyen] Test Estimation in Practice (20)

Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...
Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...
Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...
 
Test Estimation using Test Case Point Analysis method
Test Estimation using Test Case Point Analysis methodTest Estimation using Test Case Point Analysis method
Test Estimation using Test Case Point Analysis method
 
An Approach to estimate Software Testing
An Approach to estimate Software TestingAn Approach to estimate Software Testing
An Approach to estimate Software Testing
 
Risk based testing and random testing
Risk based testing and random testingRisk based testing and random testing
Risk based testing and random testing
 
Software engineering Testing technique,test case,test suit design
Software engineering Testing technique,test case,test suit designSoftware engineering Testing technique,test case,test suit design
Software engineering Testing technique,test case,test suit design
 
PAC 2019 virtual Joerek Van Gaalen
PAC 2019 virtual Joerek Van GaalenPAC 2019 virtual Joerek Van Gaalen
PAC 2019 virtual Joerek Van Gaalen
 
Test case prioritization usinf regression testing.pptx
Test case prioritization usinf regression testing.pptxTest case prioritization usinf regression testing.pptx
Test case prioritization usinf regression testing.pptx
 
Class9_SW_Testing_Strategies.pdf
Class9_SW_Testing_Strategies.pdfClass9_SW_Testing_Strategies.pdf
Class9_SW_Testing_Strategies.pdf
 
Testing of Object-Oriented Software
Testing of Object-Oriented SoftwareTesting of Object-Oriented Software
Testing of Object-Oriented Software
 
Test Progress Monitoring and Control
Test Progress Monitoring and ControlTest Progress Monitoring and Control
Test Progress Monitoring and Control
 
Software Engineering (Testing Activities, Management, and Automation)
Software Engineering (Testing Activities, Management, and Automation)Software Engineering (Testing Activities, Management, and Automation)
Software Engineering (Testing Activities, Management, and Automation)
 
How Automation is Changing The Testing Scene
How Automation is Changing The Testing SceneHow Automation is Changing The Testing Scene
How Automation is Changing The Testing Scene
 
TMPA-2017: Regression Testing with Semiautomatic Test Selection for Auditing ...
TMPA-2017: Regression Testing with Semiautomatic Test Selection for Auditing ...TMPA-2017: Regression Testing with Semiautomatic Test Selection for Auditing ...
TMPA-2017: Regression Testing with Semiautomatic Test Selection for Auditing ...
 
Key Factors To Ensure Test Automation Framework Success
Key Factors To Ensure Test Automation Framework SuccessKey Factors To Ensure Test Automation Framework Success
Key Factors To Ensure Test Automation Framework Success
 
Software-Testing-Chapgdgdgsghshshshshshshs
Software-Testing-ChapgdgdgsghshshshshshshsSoftware-Testing-Chapgdgdgsghshshshshshshs
Software-Testing-Chapgdgdgsghshshshshshshs
 
20220914-MBT-Experiences-SB1-final.pptx
20220914-MBT-Experiences-SB1-final.pptx20220914-MBT-Experiences-SB1-final.pptx
20220914-MBT-Experiences-SB1-final.pptx
 
A study on the efficiency of a test analysis method utilizing test-categories...
A study on the efficiency of a test analysis method utilizing test-categories...A study on the efficiency of a test analysis method utilizing test-categories...
A study on the efficiency of a test analysis method utilizing test-categories...
 
Model Based Test Validation and Oracles for Data Acquisition Systems
Model Based Test Validation and Oracles for Data Acquisition SystemsModel Based Test Validation and Oracles for Data Acquisition Systems
Model Based Test Validation and Oracles for Data Acquisition Systems
 
Test Management.pptx
Test Management.pptxTest Management.pptx
Test Management.pptx
 
Generating test cases using UML Communication Diagram
Generating test cases using UML Communication Diagram Generating test cases using UML Communication Diagram
Generating test cases using UML Communication Diagram
 

More from Ho Chi Minh City Software Testing Club

Introduction to Back End Automation Testing - Nguyen Vu Hoang, Hoang Phi
Introduction to Back End Automation Testing - Nguyen Vu Hoang, Hoang PhiIntroduction to Back End Automation Testing - Nguyen Vu Hoang, Hoang Phi
Introduction to Back End Automation Testing - Nguyen Vu Hoang, Hoang Phi
Ho Chi Minh City Software Testing Club
 
Test Design with Action-based Testing Methodology - Ngo Hoang Minh
Test Design with Action-based Testing Methodology - Ngo Hoang MinhTest Design with Action-based Testing Methodology - Ngo Hoang Minh
Test Design with Action-based Testing Methodology - Ngo Hoang Minh
Ho Chi Minh City Software Testing Club
 
Analytical Risk-based and Specification-based Testing - Bui Duy Tam
Analytical Risk-based and Specification-based Testing - Bui Duy TamAnalytical Risk-based and Specification-based Testing - Bui Duy Tam
Analytical Risk-based and Specification-based Testing - Bui Duy Tam
Ho Chi Minh City Software Testing Club
 
[HCMC STC Jan 2015] Making IT Count – Agile Test Metrics
[HCMC STC Jan 2015] Making IT Count – Agile Test Metrics[HCMC STC Jan 2015] Making IT Count – Agile Test Metrics
[HCMC STC Jan 2015] Making IT Count – Agile Test Metrics
Ho Chi Minh City Software Testing Club
 
[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
 

More from Ho Chi Minh City Software Testing Club (20)

Web API Test Automation Using Frisby & Node.js
Web API Test Automation Using Frisby  & Node.jsWeb API Test Automation Using Frisby  & Node.js
Web API Test Automation Using Frisby & Node.js
 
Building an effective mobile testing strategy
Building an effective mobile testing strategyBuilding an effective mobile testing strategy
Building an effective mobile testing strategy
 
Common Web UI Problems Transforming Manual to Automation
Common Web UI Problems Transforming Manual to Automation Common Web UI Problems Transforming Manual to Automation
Common Web UI Problems Transforming Manual to Automation
 
A Universal Automation Framework based on BDD Cucumber and Ruby on Rails - Ph...
A Universal Automation Framework based on BDD Cucumber and Ruby on Rails - Ph...A Universal Automation Framework based on BDD Cucumber and Ruby on Rails - Ph...
A Universal Automation Framework based on BDD Cucumber and Ruby on Rails - Ph...
 
Introduction to Back End Automation Testing - Nguyen Vu Hoang, Hoang Phi
Introduction to Back End Automation Testing - Nguyen Vu Hoang, Hoang PhiIntroduction to Back End Automation Testing - Nguyen Vu Hoang, Hoang Phi
Introduction to Back End Automation Testing - Nguyen Vu Hoang, Hoang Phi
 
Test Design with Action-based Testing Methodology - Ngo Hoang Minh
Test Design with Action-based Testing Methodology - Ngo Hoang MinhTest Design with Action-based Testing Methodology - Ngo Hoang Minh
Test Design with Action-based Testing Methodology - Ngo Hoang Minh
 
Security testing-What can we do - Trinh Minh Hien
Security testing-What can we do - Trinh Minh HienSecurity testing-What can we do - Trinh Minh Hien
Security testing-What can we do - Trinh Minh Hien
 
Deliver Fast, Break Nothing Via Effective Building Developer and Tester Colla...
Deliver Fast, Break Nothing Via Effective Building Developer and Tester Colla...Deliver Fast, Break Nothing Via Effective Building Developer and Tester Colla...
Deliver Fast, Break Nothing Via Effective Building Developer and Tester Colla...
 
Analytical Risk-based and Specification-based Testing - Bui Duy Tam
Analytical Risk-based and Specification-based Testing - Bui Duy TamAnalytical Risk-based and Specification-based Testing - Bui Duy Tam
Analytical Risk-based and Specification-based Testing - Bui Duy Tam
 
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
 
A Novel Approach of Automation Test for Software Monitoring Solution - Tran S...
A Novel Approach of Automation Test for Software Monitoring Solution - Tran S...A Novel Approach of Automation Test for Software Monitoring Solution - Tran S...
A Novel Approach of Automation Test for Software Monitoring Solution - Tran S...
 
Mobile Video Games Testing Principles - Benjamin Poirrier
Mobile Video Games Testing Principles - Benjamin PoirrierMobile Video Games Testing Principles - Benjamin Poirrier
Mobile Video Games Testing Principles - Benjamin Poirrier
 
The New Agile Testing Quadrants: Bringing Skilled Testers and Developers Toge...
The New Agile Testing Quadrants: Bringing Skilled Testers and Developers Toge...The New Agile Testing Quadrants: Bringing Skilled Testers and Developers Toge...
The New Agile Testing Quadrants: Bringing Skilled Testers and Developers Toge...
 
Why a Mobile Test Strategy is just Test Strategy
Why a Mobile Test Strategy is just Test StrategyWhy a Mobile Test Strategy is just Test Strategy
Why a Mobile Test Strategy is just Test Strategy
 
[HCMC STC Jan 2015] Risk-Based Software Testing Approaches
[HCMC STC Jan 2015] Risk-Based Software Testing Approaches[HCMC STC Jan 2015] Risk-Based Software Testing Approaches
[HCMC STC Jan 2015] Risk-Based Software Testing Approaches
 
[HCMC STC Jan 2015] Practical Experiences In Test Automation
[HCMC STC Jan 2015] Practical Experiences In Test Automation[HCMC STC Jan 2015] Practical Experiences In Test Automation
[HCMC STC Jan 2015] Practical Experiences In Test Automation
 
[HCMC STC Jan 2015] Making IT Count – Agile Test Metrics
[HCMC STC Jan 2015] Making IT Count – Agile Test Metrics[HCMC STC Jan 2015] Making IT Count – Agile Test Metrics
[HCMC STC Jan 2015] Making IT Count – Agile Test Metrics
 
[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
 
[HCMC STC Jan 2015] Developing an Offshore Context-Driven Testing Team
[HCMC STC Jan 2015] Developing an Offshore Context-Driven Testing Team[HCMC STC Jan 2015] Developing an Offshore Context-Driven Testing Team
[HCMC STC Jan 2015] Developing an Offshore Context-Driven Testing Team
 
[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
 

Recently uploaded

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 

Recently uploaded (20)

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - Kanchana
 

[Vu Van Nguyen] Test Estimation in Practice

  • 1. Test Estimation in Practice STC JULY 2014 VU NGUYEN Faculty of Information Technology University of Science, VNU-HCMC
  • 2. Agenda • Background and Motivation • qEstimation Process – Test Size Estimation – Test Effort Estimation • Conclusion 2
  • 3. Background • Software estimation – process of determining cost, time, staff, and other attributes of software projects • Estimation is important for success or failure of projects • Methods and Metrics – Source Lines of Code (SLOC) – Function Points – Use Case Points – Story Points – COCOMO – Expert Judgment 3
  • 4. Motivation • Testing accounts for up to 50% of project effort [1] • Current problems – estimates done for the whole project rather than testing specific – lack of reliable methods designed for estimating software testing • Our aim – Introducing qEstimation for estimating size and effort of testing projects 4
  • 5. Agenda • Background and Motivation • qEstimation Process – Test Size Estimation – Test Effort Estimation • Conclusion 5
  • 6. Test Case qEstimation Process 6 Test Case Count TCPs of all Test Cases Estimate Testing Effort Parameters Counted Size Estimated Effort [Test Cycle i] Test Cycle Size Actual Effort Effort by Activity …. …. …. …. Test cycle i …. …. …. …. …. …. …. Historical Data of this Project Update Historical Data Calibrate Estimation Model Estimate size and effort of different test cycles of a same project:
  • 7. qEstimation Principles • Size measures complexity of each test cycle • Test case’s complexity is based on – Number of checkpoints – Complexity of test setup or precondition – Complexity of test data • Test Case Point (TCP) is used as size unit • Model refinement (calibration) is key to estimating effort – based on previous cycles of the current project or similar projects 7
  • 8. Count Size of Test Cycle • Size of a test cycle: total TCPs of all test cases to be executed in that test cycle • Steps: 8 Test Case Count Checkpoints Determine Set Up Complexity Determine Test Data Complexity Adjust based on Test Type (optional) Unadjusted TCPs TCPs
  • 9. Count Size of Test Cycle - 2 • Checkpoints – Checkpoint is the condition in which the tester verifies whether the result produced by the target function matches the expected criterion – One test case consists of one or many checkpoints 9 One checkpoint is counted as one TCP
  • 10. Count Size of Test Cycle - 3 • Test Setup or Precondition – Test setup specifies the condition to execute the test case • Include setup steps to prepare environment for testing – Four levels of Test Setup complexity • Each is assigned a number of TCPs 10 Number of TCP(*) Complexity Level Description 0 None • The set up is not applicable or important to execute the test case • Or, the set up is just reused from the previous test case to continue the current test case 1 Low • The condition for executing the test case is available with some simple modifications required • Or, some simple set-up steps are needed 3 Medium • Some explicit preparation is needed to execute the test case • Or, The condition for executing is available with some additional modifications required • Or, some additional set-up steps are needed 5 High • Heavy hardware and/or software configurations are needed to execute the test case
  • 11. Count Size of Test Cycle - 4 • Test Data – Test Data is used to execute the test case • It can be generated at the test case execution time, sourced from previous tests, or generated by test scripts – Four levels of Test Data complexity • Each is assigned a number of TCPs Number of TCP (*) Complexity Level Description 0 None • No test data preparation is needed 1 Low • Simple test data is needed and can be created during the test case execution time • Or, the test case uses a slightly modified version of existing test data and requires little or no effort to modify the test data 3 Medium • Test data is deliberately prepared in advance with extra effort to ensure its completeness, comprehensiveness, and consistency 6 High • Test data is prepared in advance with considerable effort to ensure its completeness, comprehensiveness, and consistency • This could include using support tools to generate data and a database to store and manage test data • Scripts may be required to generate test data
  • 12. Count Size of Test Cycle - 5 • Adjust TCPs based on Type of Test – This is an OPTIONAL step – Adjustment is based on types of test cases • Each type of test case is assigned a weight • Adjusted TCP of the test case = Counted TCP x Weight(*) 12
  • 13. Agenda • Background and Motivation • qEstimation Process – Test Size Estimation – Test Effort Estimation • Conclusion 13
  • 14. Estimate Effort of Test Cycle • Overview – Two estimation methods • Based on Test Velocity • Regression analysis of Size and Effort of completed test cycles – Effort distributed by activity • Test Planning • Test Analysis and Design • Test Execution • Test Tracking and Reporting 14 Each of these activities may be performed multiple times
  • 15. Estimate Effort of Test Cycle - 2 • Estimate Effort based on Test Velocity Effort(person-hour) = Size(TCP) / Test Velocity(TCP per person-hour) – Test Velocity is measured as TCP/person-hour • Test Velocity is dependent on project • It should be calculated based on data from completed test cycles of the same project. 15
  • 16. Estimate Effort of Test Cycle - 3 • Estimate effort using Linear Regression Analysis – Find out the equation of effort and size using similar completed test cycles of a project 16 y = 0.0729x + 1.6408 0 10 20 30 40 50 60 70 80 90 100 0 100 200 300 400 500 600 700 800 900 1000 Effort(PM) Adjusted TCP Equation of Size and Effort The data analysis tool like Excel can be used to find out the equation
  • 17. Calibrate qEstimation • Calibration: a process adjusting parameters for a model using historical data or experiences • With qEstimation, you can calibrate: (1) TCP assigned to each complexity level of Test Setup (2) TCP assigned to each complexity level of Test Data (3) Test Velocity (4) Effort distribution (5) Weights of test case types • Process can be done with the help of tools 17
  • 19. Conclusion • qEstimation is an agile approach to estimating tests – Estimate Size in TCP by measuring the complexity of test cases – Estimate Effort using Test Velocity or Regression – An Excel toolkit to simplify the approach • Advantages – Easy to implement – Reflecting real complexity of test cases – Independent with the level of details of test cases – Useful for estimating testing effort 19
  • 20. References • [1] Y. Yang, Q. Li, M. Li, Q. Wang, An empirical analysis on distribution patterns of software maintenance effort, International Conference on Software Maintenance, 2008, pp. 456-459 • [2] N. Patel, M. Govindrajan, S. Maharana, S. Ramdas, “Test Case Point Analysis”, Cognizant Technology Solutions, White Paper, 2001 • [3] QASymphony: www.qasymphony.com • [4] Vu Nguyen, Vu Pham, and Vu Lam. “qEstimation: a process for estimating size and effort of software testing.” Proceedings of the 2013 International Conference on Software and System Process. ACM, 2013
  • 21. © 2014 HCMC Software Testing Club Thank You