Practical approaches to improving your testing by maximizing code coverage [White paper for download]

This is a white paper written by ‘Huw Price‘. With over 20 years experience, Huw Price has been the lead technical architect for several US and European software companies. His new venture Grid-tools is specialized in test data management techniques. Thank you Jessica for providing this white paper for our readers.

How to improve testing by maximizing code coverage – A practical approach.

Article Summary:

As a white box tester your first goal should be maximizing code coverage!

Increasing code coverage is the route to improved testing. Code coverage is always a critical testing path and creating good test data for maximum code coverage is another difficult task.

Testers need to balance the need for complete coverage with only limited time to test. The key challenge here is to be more efficient and more effective.

Should 100% code coverage be the testing goal?

According to Huw Price, 90% code coverage would be the maximum that can be expected. A more effective and realistic goal, however, is a 100% functional coverage.

How to create test data for code coverage testing?

Here are the three approaches discussed in detail:

  • Creating the data using the application
  • Searching for data that matches your criteria: Copy production data to development and testing environment.
  • Hacking existing data: Just go and edit the existing data to fit to your test cases.

This white paper discusses some techniques and tools to build the most accurate input to tests and also the practical methods and tools of creating the data to run these test. Simply building an optimized set of inputs is just the start of a solution.

Huw Price has explained code coverage and test data creation methods with simple examples. I can only say, a nice article for white box testers.

Download this white paper from following link:

Code coverage testing


The Best Software Testing Training You'll Ever Get!

software testing QA training


#1 sravanthi on 11.07.08 at 7:28 pm

Hi all..,
I heard that present no testing it true? if it is false ..wht r extra actvities for testing jobs? How can I improve realtime work in testing myself? Pl guide me..

#2 Shailesh on 11.08.08 at 5:36 am

I really enjoy white box testing.. having entire code base for your reference, you have full control on how to achieve the max code coverage tests.
For efficient code coverage testing you need to have good code review skill though :-)

yet I haven’t used any tools to create my test data, looking for Huw’s methods in my future tests..

#3 Beena on 11.08.08 at 10:07 am

@sravanthi ,
It’s actually true and fect. Thr s no hiring in testing, as per my knowledge. U hav to wait for the market 2 com up.

#4 swapna on 11.09.08 at 10:43 pm

hello sir/madam,

actually, how many types of “Test Reports” are there?

i came through different terminology like—

Test summary reports
Test execution reports
Test status reports
Test log reports
Test daily, weekly reports

These all mean same???

if not please explain me and also explain me if there are any other reports that come under above list. in the least case please provide me exact link. Thanks in advance.

I’ve been waiting for reply. plz give me suggestions.

#5 Shilpa on 11.10.08 at 5:55 am

Good paper. Creating useful data for code coverage testing is always a difficult task.

#6 Pavan on 11.10.08 at 10:03 am

Hi Shailesh,

Can you give me some inputs on the code coverage for white box testing?

#7 Sreenivas on 11.13.08 at 5:00 am

Please explain briefly about Defect Reporting and Tracking?

#8 Daiju on 11.13.08 at 9:17 am

Hi Sreenivas,
Defect Reporting and Tracking are the phases is testing.
For a tester, we should know the exact procedure .
Defect reporting means we are executing the test cases and test datas which we have already prepared. then we should track the bug by doing different types of testing like syste, functional, adhoc, Exploratory etc…

#9 Sheela on 11.18.08 at 7:50 am


Can anyone guide me How to test Gaming Applications?

Pls send me materials to mail id.



#10 prasan on 11.18.08 at 8:36 am

hi sravanthi

shoot a mail to me ,

i will help you inthis regard

#11 prasan on 11.18.08 at 8:37 am

hi sravanthi

shoot a mail to me ,

i will help you inthis regard

#12 Sreenivasa Rao on 11.19.08 at 11:24 am

I am unable to download the white paper – Practical approaches to improving your testing by maximizing code coverage. Could anypne pls mail me the pdf to the following id – Thanks in advance.

#13 rajan g on 11.23.08 at 8:53 am

Hello Sravanthi ji , Market is bad , our project may have some openings . Would you be interested in moving.
Pls contact me if you need more info.
thanks rajan

#14 Sreenivasa Rao on 11.24.08 at 11:38 am

I am unable to download the white paper – Practical approaches to improving your testing by maximizing code coverage. Displaying the following error – The file is damaged and couldn’t be repaired.Could anyone pls mail me the pdf to the following id – Thanks in advance.

#15 swapna on 12.01.08 at 5:49 am

i’m working in the science field at present. software testing sounds interesting to me though i’d need to spend a lot and take training for s/w testing as i am totally new to this field.
is it worth the effort, risk, money and time? most importantly…are jobs available?

#16 prasan on 12.01.08 at 9:19 am

hi send me your email id

i can help you

#17 swapna on 12.01.08 at 9:36 am

my email id is
pls let me know of institute of repute, in mumbai, from where i could take training
thanking you in advance for offering to help.

#18 prasan on 12.01.08 at 10:28 am

please check ur mail



#19 Hanumantha rao.K on 12.26.08 at 8:05 am

hi this is hanu, i have one doubt in testing, how to find bugs without using any bug trackibg tool. If any one known answer send to my mail id
thanks \ hanu

#20 Vishal sharma on 01.07.09 at 12:32 pm

Hi All
I am working on a project in which we are using liferay and alfresco as a database. Applicaton demands that there will be a sign in functionality and that users also saves in mailing list (Lyris using as a mailing list). so whem any user sign in liferay than his name should save in liferay database and at the same time in the mailing list as well in another database so what can be the possible scenarios for Rollback Testing.
Kindly help as I have to test that both the database gets updated as a person sign in…………………..

In short what can be the possible scenarios of rollback……….be a most destructive user (think all possible destructive possibilties)

#21 Rama on 02.02.09 at 10:29 am


Can any body explain about Penetration testing. And what are all the things will come under this type of testing…

Thanks In Advance…


#22 lucky on 03.10.09 at 12:54 pm

hi rama
shoot me a mail i will explain okay

#23 prasad on 04.07.09 at 8:50 am

whats ur mail id rama ji


#24 Rama on 04.07.09 at 9:15 am

Hi Prasad,

Sorry for late reply, my mail ID is

#25 sandhya on 04.23.10 at 11:23 am

can anybody help me to learn testing practically.

#26 sandhya on 04.23.10 at 11:24 am

can anybody help me to learn testing practically.and help me with some real time examples

#27 sumit sharma on 04.30.10 at 5:00 am

It’s not that there is no job in the testing, to get that you have to be perfect & you should have skilled in the practical term.

#28 Vimmi on 08.25.10 at 11:42 am

I am unable to download the white paper – Practical approaches to improving your testing by maximizing code coverage. Displaying the following error – The file is damaged and couldn’t be repaired.Could anyone pls mail me the pdf to the following id –

#29 saket on 02.26.11 at 12:59 pm

dear, all

these days companies hiring for software testing engineers. try to apply on jobs websites.

dont worry, just try & try……


#30 Amarjeet Chavhan on 07.15.11 at 12:18 pm

Its really a good coverage…but its for White Box testers… what if im doing Black Box testing and i wanna cover all the possible combination of my complex project …? How i can track and approach to it…?

#31 nithiya on 08.22.11 at 10:01 am

Hi i am new to web testing.I have to know if i can integrate transition coverage and code coverage in web application testing.

#32 Gulshan on 05.27.12 at 3:41 pm

I m learning software testing. I am an electronics engineer,dnt hav job now. Can any one help me for this. Thanx

#33 rashid on 11.21.12 at 8:27 am

i am a fresher in testing field so i need program of white box and black box so i am going black box testing. how to correlate with white box testing as i am interested. information on automation tools. could any one send brif description on statement , branch and decision coverage.

Leave a Comment