KLOC – What does it mean to Software Testing
Introduction to KLOC
Lines of Code (LOC) is one of the software metric that is used by most of the people for Software Measurement. Thousand lines of code is treated as KLOC. This metric helps us in knowing the size and complexity of the Software Application. Click here for more details on KLOC. This info is from wikipedia
What does it mean to Software Testing
We do test applications with the intention to see if the promised functionality works fine or not. Any deviation here will be considered as a Bug. So each of these bugs must be originated from some line of code in the product.
So it’s understood that when the size of the code is more there is a chance for more number of bugs in the prodcut. Even most of the process to talk about some % of issues is fine or acceptable quality per KLOC(even though there is lot of subjectivity).
The Defect Density is arrived at Number of Bugs / KLOC per the product under test. The defect density is one of the metric used to measure the quality of the product. Most of the Quality Process does talk about this metric.
Concerns
The concern in this approach is that how these values are measured. The general bias with KLOC is that people try to see that only the excutable lines of code in the product.
Each every line in the product may not be code at all & we may not execute each and every one of them. So it’s not taken care, then the issues related to documentation, images, installation etc might be misleading.
Since we are looking at KLOC as the size of the product it’s better to include each and every entity that effects the same. Then it’s helpful for both development and test teams.
Explore posts in the same categories: Programming, Project Management, Software Development, Software Metrics, Software Testing, Test Metrics
March 1, 2007 at 11:56 am
Agreed, the entities that effects this can be criticality of bugs, Lines of unreachable code. For example a product with bug density of 15 minor/KLOC is better than product with 10 major bugs/Kloc
March 27, 2012 at 3:33 pm
I got what it (KLOC) mean. Thank you a lot!!
March 1, 2007 at 1:36 pm
Mallik,
Thanks for your comments.
The unreachable code (dead code) is the bottleneck incase if it exists for the Bug Density
January 26, 2010 at 4:44 am
I must say this is a great article i enjoyed reading it keep the good work
April 8, 2010 at 6:11 pm
Yeah! this method surely help the tester a lot. A nice post.
February 16, 2011 at 12:32 pm
hi,
this is nice blog for software testing. if u take care of pc maintenance then u can also become the good tester….
November 8, 2012 at 12:06 am
Ahaa, its nice dialogue concerning this article here at this webpage, I have read all
that, so now me also commenting at this place.
November 9, 2012 at 6:02 am
Link exchange is nothing else but it is simply placing the other person’s website link on your page at appropriate place and other person will also do same for you.
March 20, 2013 at 10:31 pm
Thanks for this post. I didnt found KLOC in my textbook and google help me to reach here, really appreciating blog.
March 12, 2014 at 7:11 am
Remarkable issues here. I am very satisfied to look your post.
Thanks a lot and I am looking forward to contact you.
Will you please drop me a e-mail?
June 12, 2014 at 7:49 am
I every time used to read post in news papers but now as I am a user of
net so from now I am using net for articles, thanks to web.
June 17, 2016 at 2:47 pm
It’s gгeat that yoᥙ are getting thoughts from this post as well as from our discussіon made
at this time.