Skip to main content

Unit Testing

Unit Testing is the smallest testable part of the software.  It may be a function, Class, procedure and the Interface. In Unit Testing individual unit of source code are tested to determine whether they are fit for use.

Unit Testing is the short source code testing which is done by programmer or done by white box tester during the development process. This testing mode is component of Extreme Programming (XP), which means developing a product with continuous testing and revisions.



In the Unit Testing, developer think only about the unit which is under test. If any error occur then they fix it as per the Unit without thinking about the effect over other unit. Once every unit fix or error free then on integration we concern about the effects.

Unit Testing finds problem early in the development phase. These bugs may be because of the flow that development are using or any missing part in the specification. The cost of finding the bugs in Unit Testing phase is lower if bugs found in later stages so Unit Testing is very important phase of Testing as per the cost.

Unit Testing allow the programmer to upgrade system in later stage means unit testing allow the user to change the code if needed. Unit Testing make the system less interdependent so the changes on one unit reduces the error in other units.

Unit Testing simplifies the Integration Testing. It uses the bottom up testing approach. First tested the Unit and them complete modules so possibility of errors is reduces.

Unit Testing is the part of documentation. Developer look at the document and as per the document write the code.


Comments

Popular posts from this blog

Why Jmeter is best option for Performance Testing?

There are multiple tools in market for performance testing of any software but Jmeter is the best solution among all of them due to some reason listed below 1) Jmeter is the open source application so users who use this application will not to pay anything. 2) You can use Jmeter for performance of any web application,  Databases and Web Services (REST and SOAP APIs). 3) Jmeter have the user friendly UI component so it is very easy to use. 4) Jmeter can be used to simulate to put maximum number of concurrent users on a server, network or object to test its strength or to analyze overall performance under different load types. 5) Jmeter also use for functional testing for static( JavaScript and HTML) and dynamic( JSP, Servlets and AJAX) resources. 6) Jmeter provides Verity of graphical representations for performance report so it is easy to understand.

How You Can Test Database?

Now we know the Database Testing which you can learn in my last article. In this article we will discuss about the steps that need to following to test any Database. Database Tester should have some basic knowledge regarding SQL Command like DDL (create/drop),  DML (Insert/Delete/Update) and DCL (Grant/Revoke).

Causes of Software Defects

It is practically impossible that developer develop a bug free software and that software we can deliver without Testing. If the complexity of the software increased then there must be bugs that can harm the users who will use that software.