Software Testing Fundamentals

Software Testing fundamental concepts -

Unit Testing

In computer programming, a unit test is a method of testing the correctness of a particular module of source code.

The idea is to write test cases for every non-trivial function or method in the module so that each
test case is separate from the others if possible. This type of testing is mostly done by the developers.


The goal of unit testing is to isolate each part of the program and show that the
individual parts are correct. It provides a written contract that the piece must satisfy. This isolated testing provides four main benefits:

Encourages change

Unit testing allows the
programmer to re factor code at a later date, and make sure the module still works correctly (regression testing). This provides the benefit of encouraging programmers to make changes to the code since it is easy for the programmer to check if the piece is still working properly.

Simplifies Integration

Unit testing helps eliminate uncertainty in the pieces themselves and can be used in a bottom-up testing style approach. By testing the parts of a program first and then testing the sum of its parts will make integration testing easier.

Documents the code

Unit testing provides a sort of "living document" for the class being tested. Clients looking to learn how to use the class can look at the unit tests to determine how to use the class to fit their needs.

Separation of Interface from Implementation

Because some classes may have references to other classes, testing a class can frequently spill over into testing another class. A common example of this is classes that depend on a
database; in order to test the class, the tester finds herself writing code that interacts with the database. This is a mistake, because a unit test should never go outside of its own class boundary. As a result, the software developer
abstracts an interface around the database connection, and then implements that interface with their own Mock Object. This results in loosely coupled code, thus minimizing dependencies in the system.


It is important to realize that unit-testing will not catch every error in the program. By definition, it only tests the functionality of the units themselves. Therefore, it will not catch integration errors, performance problems and any other system-wide issues. In addition, it may not be trivial to anticipate all special cases of input the program unit under study may receive in reality. Unit testing is only effective if it is used in conjunction with other
software testing activities.

Download document from the attachments section for complete set of Fundamentals 


Comments (27)

Said this on 4-17-2008 At 06:24 pm
Said this on 6-18-2008 At 02:17 pm
Very Good
Said this on 7-3-2008 At 10:21 am
This Document is very useful thanks A lot
Rohit Anthwal
Said this on 8-5-2008 At 03:47 pm
Good site for learning
Said this on 9-19-2008 At 04:56 pm
Very good If necessary please send me more doc files.

I Love to read it and Improve my knowledge aslo.

Said this on 4-28-2009 At 03:37 pm
it' a good article
Swagata Mukherjee
Said this on 12-23-2009 At 05:43 pm


Said this on 7-18-2011 At 06:01 am
One acknowledges that life is expensive, however people require cash for different things and not every one gets enough money. So to receive fast loans and car loan will be a correct way out.
Said this on 8-9-2011 At 03:28 am
You have defeated my anticipation; I am completely captivate with your chapter it will help me in my essays or term papers writing. Thank you so much. I will doubtlessly keep in touch.
Said this on 8-11-2011 At 02:44 pm
Prices for academic papers set due to customers' requirements. College students buy many custom written academic papers recently. Thus, we can see raising of costs. Nevertheless, I opine, it is real to see the good essay writing service that will offer good costs for custom research papers.
Said this on 8-13-2011 At 11:16 am
I know that term paper creating seems to be hard. Nevertheless, I propose to find essay writing service to relieve your stress.
Said this on 8-20-2011 At 02:44 am
Just submission issues by directory submissions service can be reasonable when we speak about site optimization. Nevertheless, a lot of business owners do not realize that. Thence, they don't strive to use search engine optimization frims and it is a big mistake because professionals are able to optimize traffic ubraptly.
Said this on 8-22-2011 At 03:55 pm
I see that you have done a very hard job, performing your good enough theme just about this good topic. Therefore, this kind of work scholars do writing their dissertation or just thesis help investigating.
Said this on 8-24-2011 At 09:39 am
You do not have to get all the pressure of research papers completing because famous papers writing companies can rid of your problems proposing you to order custom research essay and that's good, I think!
Said this on 8-24-2011 At 09:54 am
Looking for extra high quality and the most affordable? You can to buy essay paper at reputable writing firm.
Said this on 8-26-2011 At 02:21 pm
Several year ago businessmen did not have information about article submission services. Nevertheless, now business owners use links building consequently.
Said this on 12-13-2011 At 11:25 am
I guess that a lot of thesis service and dissertation service would hire you to make such of good enough mini dissertation just about this topic.
Said this on 12-19-2011 At 06:43 pm
Thanks for the really hot knowledge just about this good post! If you want to buy essay or essay writing select really good essay writing service. That’s the correct way to academic success!
Said this on 12-19-2011 At 06:44 pm
Lots of essays writers perform the custom written essay about this good topic. Hence, this is really good possibility to buy essay or buy a term paper about this good topic.
Said this on 12-24-2011 At 02:10 am
Very curious case about this topic, but still this contention is to hard to discuss.That is why we have compelled to create a custom writing service to help determined students. They can buy term papers that is custom and made by expert , buy custom essay papers or even buy research papers. But when students use this kind of benefit – an ethical question is raised: Is it ok to use these kinds of services? Is it ok to use them, and will you be punished for using them.
Said this on 1-31-2012 At 10:05 am
The internet is full with thesis and thesis paper just about this good post but to get really good enough buy dissertation service, men can search for it.
Said this on 2-6-2012 At 03:10 am
Eventually, I receive smashing data as this topic? I propose to find the custom thesis or purchase dissertation reference, just because that aid for receiving high grade if you have dissertation service.
Said this on 2-7-2012 At 10:46 am
If you go on with your investigation close to this good topic, we would probably buy dissertation thesis from the thesis writing service in Internet.
Said this on 2-7-2012 At 12:17 pm
We usually want to build reliable relationship with our customers and university students select to buy essays online from our reputable writing company.
Said this on 2-11-2012 At 04:06 am
Lots of kinds of seo are non-effective. We claim that you will get success with our rss submission directories service. The matter is that we do best rss submission non-automated. Numbers customers in the whole world are satisfied with our trustworthy company!
Said this on 2-27-2012 At 09:00 am
Our society moves further very fast and at present time you do not need to compose your writing assignments and can just buy essays in the web.
Said this on 2-28-2012 At 07:29 pm
That's known that high academic results seem to be not easy to approach. When you order custom essays writing written by experts, you should surely reach the top.
Post a Comment
* Your Name:
* Your Email:
(not publicly displayed)
Reply Notification:
Approval Notification:
* Security Image:
Security Image Generate new
Copy the numbers and letters from the security image:
* Message:

Email to Friend

Fill in the form below to send this article to a friend:

Email to Friend
* Your Name:
* Your Email:
* Friend's Name:
* Friend's Email:
* Security Image:
Security Image Generate new
Copy the numbers and letters from the security image
* Message: