Test Automation Effort Estimation
Test Automation Effort Estimation
Test Automation Effort Estimation
- Best practices
"The subject of software estimating is definitely a black art" says Lew Ireland, former president of the Project
Management Institute. Estimation is more of an art than a science, and inherently more prone to the negative aspects
of human biases.
This paper introduces and outlines the best practices of effort estimation process for test automation projects. In
addition, the paper summarizes possible framework components for any test automation project.
One of the classical mistakes of the test automation team is: ‘NOT choosing right test cases for automation’.
The test automation scripts are only a support device to manual testing, NOT to bump off the later. In that case, the
customer will be more focused on the return on investment (ROI) for each of test automation script built (as the initial
investment is high!). So choose the tangible test cases to automate against each phases of development (and
demonstrate the same to the customer).
The root casual analysis showed us the necessity of phase-wise test automation than one-go test automation process.
So advice that test automation needs to kick off with critical test cases that are of good candidate type and then slowly
branching out to other mediums as required. This solution helps the customer by lesser maintenance costs and more
business for you.
Also remember that framework needs constant updates along with script development process and thereby it becomes
harder to maintain the framework incase if you have many scripts to develop in parallel.
What test type to be automated?
It is always good to script ‘integration and/or system’ functional test cases as they mostly bundle component level test
cases within them. This would reduce your effort further and find good defects (Yep! Of course, this is primary
objective of any test automation project) too. Please note that if you have good framework, then you can change the
test scope and/or test type using configuration files.
The following factors may have varying impact on the test automation effort calculation exercise.
This is an important exercise as it may draw wrong overall effort in spite of depth application analysis.
STEP 1:
Suggest finding number of actions and verifications points for each test case (that are in automation scope) and then
draw a chart to find the average actions, verification points and then the control limits for them. So that the
complexity derivation will be based on the AUT not based on the generic industry standards.
Example,
TC 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
STEPS 8 12 15 12 16 30 4 8 22 21 12 27 22 15 11 15 12 9 8 19 21 42 6 22 22
1. Neither group test case steps too close, nor wide for labeling the complexity. Be aware that the pre-script
development effort for each test script is considerable as the following activities are time-consuming
operations:-
1) Executing test case manually before scripting for confirming the successful operation.
2) Test data selection and/or generation for the script.
3) Script template creation (like header information, comments for steps, identifying the right reusable to be
used from the repository and so on.)
These efforts are highly based on the number of steps in the test case. Note that if test case varies by fewer
steps, then this effort does not deviate much but incase it varies by many steps even this effort widely differs.
2. Also another factor in determining the complexity is the functionality repetition. If the test case is Complex by
steps but the functionality is same as the other test case then this can be labeled as ‘Medium or Simple’ (based
on the judgment).
3. If the test case steps count are more than upper control limit (~ 25 in this case) value then those additional
steps need to be considered as another test case. For example, the TC - 06 containing 30 steps shall be labeled
as
‘1 complex + 1 simple (30-25)’ test cases.
If the test case is marked as ‘Complex’ instead of ‘Medium’, understand that your efforts shoot up and hurts your
customer. On other way of miscalculation, it hurts us. There by, this ‘complexity grouping’ is more of logical
workout with data as input.
4. Framework design & estimation.
“We have experienced a significant increase in software reusability and an overall improvement in software quality due
to the application programming concepts in the development and (re)use of semi finished software architectures rather
than just single components and the bond between them, that is, their interaction.” - Wolfgang Pree [Pree94]
There are many frameworks that are available commercially & as open-source which are specific to a test tool or wide-
open. Also you find homebrew test automation frameworks too specific to test tools. These frameworks saves a lot of
scripting, debugging and maintenance efforts but aware that the customization of framework (based on the
application) are very essential.
Please note that these efforts have wide range as the framework size
and scope purely depends on application nature, size and complexity.
ESTIMATED EFFORT
Simple Medium Complex
SL.NO SUB COMPONENT REMARKS
(<8 (8-16 (17-25
steps) steps) steps)
1 Pre–Script Development
a Test Case execution (Manual) For 1 iteration (assuming scripter knows navigation)
b Test data selection For one data set (valid/invalid/erratic kind)
c Script Template creation Can use script template generation utility to avoid this.
d Identify the required reusable Assuming proper reusable traceability matrix presence.
2 Script Development
a Application map creation Assuming the no of objects = number of actions
b Base scripting Normally all these go hand-in-hand. Separated for
c Add error/exception handling analysis & reasoning.
d Implement framework elements
3 Script Execution
a Script execution For n iterations (~ average iteration count)
b Verification & Reporting Assuming there will minimal defect reporting.
Total Effort per script