UnitTest Framework Overview is a testing methodology by which individual units of source code, such as functions, methods, and class are tested to determine whether they are fit for use. This is a brief tutorial that explains the functionality of the UnitTest Framework.
After completing this tutorial, you will find yourself at a moderate level of expertise in using the UnitTest Framework framework from where you can take yourself to the next levels.
UnitTest Framework Overview
Intuitively, one can view a unit as the smallest testable part of an application. Unit test It forms the basis for component testing.
Unit testing following two ways −
Manual Testing | Automated Testing |
---|---|
Executing the test cases manually without any tool support is known as manual testing. Since test cases are executed by human resources so it is very time-consuming and tedious.As test cases need to be executed manually so more testers are required in manual testing. It is less reliable as tests may not be performed with precision each time because of human errors.No programming can be done to write sophisticated tests which fetch hidden information. | Taking tool support and executing the test cases by using automation tools is known as automation testing. Fast Automation runs test cases significantly faster than human resources. The investment over human resources is less as test cases are executed by using an automation tool. Automation tests perform precisely the same operation each time they are run and are more reliable. Testers can program sophisticated tests to bring out hidden information. |
JUnit is a unit testing framework for the Java programming language. JUnit has been important in the development of test-driven development and is one of a family of unit testing frameworks collectively known as xUnit that originated with JUnit. You can find out JUnit Topic here.
The Python unit testing to as “PyUnit,” PyUnit forms part of the Python Standard Library as of Python version 2.1.
Python unit testing framework supports test automation, sharing of setup and shutdown code for tests, aggregation of tests into collections, and independence of the tests from the reporting framework. The unit test module provides classes that make it easy to support these qualities for a set of tests.
After completing this tutorial you will find yourself at a moderate level of expertise in using the Python testing framework from where you can take yourself to the next levels.
You should have reasonable expertise in software development using Python language. Our Python tutorial is a good place to start learning Python. Knowledge of the basics of software testing is also desirable.
Environment Setup
The classes needed to write tests are to be found in the ‘unit test module. If you are using older versions of Python (prior to Python 2.1), the module can be downloaded from http://pyunit.sourceforge.net/. However, the unit test module is now a part of the standard Python distribution; hence it requires no separate installation.
Next Topic – Click Here
Pingback: Nose Testing - Tools - Adglob Infosystem Pvt Ltd
Pingback: UML - Overview - Adglob Infosystem Pvt Ltd
Pingback: UML - Building Blocks - Adglob Infosystem Pvt Ltd
Pingback: UML - Architecture - Adglob Infosystem Pvt Ltd
Pingback: UML - Modeling Types - Adglob Infosystem Pvt Ltd
Pingback: UML - Basic Notations - Adglob Infosystem Pvt Ltd
Pingback: UML - Standard Diagrams - Adglob Infosystem Pvt Ltd
Pingback: UML - Class Diagram - Adglob Infosystem Pvt Ltd
Pingback: UML - Object Diagrams - Adglob Infosystem Pvt Ltd
Pingback: UML - Component Diagrams - Adglob Infosystem Pvt Ltd
Pingback: UML - Deployment Diagrams - Adglob Infosystem Pvt Ltd