Explain components testing.
I am new to testing. I would like to know:
What is component testing? How do I write component test cases?Please explain with examples if possible to make it more helpful for me to understand.
Component testing is that in which we test those test objects which are separately testable as an isolated unit without integrating with other components (e.g. modules, programs, objects, classes, etc.).
Testing of separate software components is known as component testing. Component Testing is considered as the Module Testing, because we are testing each module or component differently and effectively. Suppose there is only one project which consists of 10 components and we are testing each component differently and effectively than it is known as component testing. A group of components is known as module testing. Component testing is fulfilled by programmers on the code written by them and with the support of a development environment, such as a unit test structure or debugging tool.
Component Testing Example: For Example there are two web pages. In one of the web pages there are many certain fields like username, address, mobile no. etc in which data has to be entered. In the other (second) web page also there are certain fields which carry forward the data from the first page. Testing the functionality of these individual pages is called Component Testing.