You are on page 1of 9

TECHNOLOGY

AND LIVELIHOOD
EDUCATION
9
COMPUTER SYSTEMS SERVICING

Self-Learning Module 7
Testing Methods for Electronic
Components
Quarter 4
Writer: Neil O. Gagarino
Editors: Maria O. del Barrio, Jhoanna V. Navata
Reviewers: Maria O. del Barrio, Jhoanna V. Navata
EXPECTATIONS

At the end of the lesson, the students should be able to:


A. explain the component testing techniques;
B. compare and contrast unit testing from component testing;
C. understand on how to perform the component testing.

PRETEST

Directions: Write True if the statement is correct and False if the statement is
incorrect. Write your answer on the space provided.
_________ 1. The developers conduct component testing where they test the individual
functionality or mechanism.
_________ 2. Testing individual programs and modules to demonstrate the program
executed as per the specification is called component testing.
_________ 3. Component testing is done by developers.
_________ 4. Component testing is done by testers.
_________ 5. Component testing is done after unit testing is completed from the
developers end.

RECAP
Yesterday we discussed Functionality. Let us test your memory if you can
still recall. Complete the puzzle below:
Functionality, includes the following:
1. LITYINTERAREPOBI - ______________________________
a type of software testing that tests whether other software
components and systems may communicate with the software.
2. LITYBILIARE TINGEST - ____________________________
Ensures that the product is free of faults and accurate for its intended
function.
3. MANCEFORPER TINGEST - ________________________
It checks the speed, response time, reliability, resource usage,
scalability of a software program under their expected workload.
4. TINGPEORA MERAPATER - _________________________
It is a set of facts which describes and puts limits on how something
should happen or be done by a person to control the functioning of a
machine, process, or system.
5. NACLIONTUNF TINGEST - __________________________
ensures that the specifications are met by the application properly.
L E S S ON
Testing Methods for
Electronic components
What is Component testing?
Component testing is referred to as a software testing type, in which the testing
is performed on each individual component separately without integrating with other
components. The other term for component testing is module testing when it is
viewed from an architecture perspective. Component Testing is also referred to as
unit testing, program testing or module testing.

The purpose is to find the defect in the module and verifies the functioning of
software.

Generally, any program as a whole is made of many components. Component


Level Testing deals with the individual testing of these items. The use of the term
"Component Testing" differs from domain to domain and from organization to
organization.

The objective of Component Testing


The main objective of component testing is to check the input / output
behavior of the test object. It ensures that the functionality of the test object is
working properly and completely in compliance with the desired specification.

Who does Component Testing?


Component testing is performed by testers. 'Unit Testing' is conducted by the
developers where they do the testing of the individual functionality or procedure.
After Unit Testing is conducted, the next testing is component testing.

When to perform Component testing?


The testers do component checking. Component testing is conducted shortly
after the developers conduct the unit testing and the build is released to the testing
team.
This build is called UT build (Unit Testing Build). Major functionality of all the
components are verified in this phase.

Entry criteria for component testing


• Minimum number of the component to be included in the UT (Unit Testing)
should be developed and tested.
Exit criteria for component testing

• The functionality of all the component should be working fine.


• There should be no presence of any critical or high or medium severity &
priority defects log.
It is necessary to establish the minimum number of components to be used
in the unit testing and test the device. The functionality of the entire component
should work well.

There should be no record of defects of critical or high or medium severity &


priority defects. As soon as they are formed, components are checked, so there are
chances that the results obtained from a component under test depend on other
components that are in.

Component Testing Techniques


Component testing can be categorized as:
1. CTIS - Component Testing in Small
2. CTIL - Component Testing in Large

CTIS – Component Testing in Small. It is performed with the isolation of another


component. Component testing may be carried out in isolation with other device
components depending on the implementation lifecycle model.

Example of CTIS: Consider a website which has 5 different web pages then
testing each webpage separately & with the isolation of other components is
referred as Component testing in Small.

CTIS – Component Testing in Large. Component testing done without isolation of


other components in the software or application under test.

Example of CTIL. Suppose there is an application consisting of three


components say Component A, Component B, and Component C.

The developer has developed the component B and wants it tested. But in
order to completely test the component B, few of its functionalities are dependent
on component A and few on component C.

The developer has created the B portion and wants it to be tested. However, in
order to evaluate Component B absolutely, few of its functions rely on Component A
and few on Component C.

Functionality Flow: A- > B- > C which means that both A and C are dependent
on B, as the diagram stub is called function, and the driver is called function.

Component A and Component C have not yet been developed. In that case, to
test Component B fully, we can replace Component A and Component C with Stub
and Drivers as needed. So essentially, the A & C part is replaced by the stub & driver,
which acts as a dummy object before it is actually created.

• Stub: A stub from the software feature to be checked is called Feature A, as


seen in the diagram below 'Stub.'
• Driver: The driver calls the part to be checked, as seen in the diagram below
'Component B' is called by Driver.

Testing Method of electronic components including its differences


The ‘Unit testing’ is done by the developers where they do the testing of the
individual functionality or procedure. After unit testing is executed, component
testing follows.

Component testing plays a very important role in finding the bugs. Before we
start with the integration testing it’s always preferable to do the component testing
in order to ensure that each component of an application is working effectively.

Here is a table that shows the differences between Unit testing and
Component testing:
Unit Testing Component Testing
Testing individual programs, modules Testing each object or parts of the
to demonstrate that program executes software separately with or without
as per the specification is called Unit isolation of other objects is
Testing called Component Testing

Its validated against design documents Its validated against test requirements,
use cases

Unit testing is done by Developers Component testing is done by Testers

Unit testing is done first Component testing is done after unit


testing is complete from the developers
end.
Component test cases
The test cases for component testing are derived from work products, for
instance, software design or the data model. Each component is tested through a
sequence of test cases where each test case covers a specific combination of
input/output i.e. partial functionality.

Below is a sample of a component test case for Login Module.


ACTIVITY

Directions: Answer the exercises below. Write your answer on the space provided.
A. What are the testing method techniques?
a. _______________________
b. _______________________

B. Compare and contrast unit testing from component testing.


_____________________________________________________________________
_____________________________________________________________________
_____________________________________.

WRAP–UP

Component testing is a method where testing of each component in an


application is done separately. Also known as module and program testing. It finds
the defects in the module and verifies the functioning of software.
Furthermore, to prove that you have learned something today, complete the
statement below:
I have learned that _________________________________________________________
__________________________________________________________________________________
__________________________________.

VALUING
1. What if you failed in using the different method in component testing? How will
you resolve the problem? Give example to support your answer.
___________________________________________________________________________
___________________________________________________________________________
_______________________________.
Pretest Posttest Recap
1. False 1. CT 1. Interoperability
2. False 2. UT 2. Reliability testing
3. False 3. UT 3. Performance testing
4. True 4. CT 4. Operating Parameter
5. True 5. CT 5. Functional testing
Activities:
1. The testing method techniques are unit testing and component
testing.
2. The unit testing test individual programs, modules to demonstrate
that program executes as per the specification while component
testing, test each object or parts of the software separately with or
without isolation of other objects.
Unit testing is conducted at a granular level. On the other hand,
component testing is done at the application level. In unit testing, it is
verified if an individual program or the piece of code is getting executed
as per the specified. In component testing, each object of the software
is tested separately with or without isolation with other
components/object of the system.
Component testing plays a very important role in finding the bugs.
Before we start with the integration testing it’s always preferable to do
the component testing in order to ensure that each component of an
application is working effectively.
KEYTOCORRECTION
_________ 5. It is done after unit testing is complete from the developers end.
_________ 4. Testing is done by Testers
_________ 3. Testing is done by Developers
executes as per the specification
_________ 2. Tests individual programs and modules to demonstrate that program
of an application.
_________ 1. A technique where testing is performed separately for each component
provided.
statement refers to Unit Testing. Write your answer on the space
Directions: Write CT if the statement refers to Component Testing and UT if the
TEST POST
R E F E R E N CE S
Says, Abhi Raj, Surinder Says, Mehmet says, Ehsan says, Vinayak More Says, Arnab
says, Neha says, and ISTQB Guide says. “Home.” Try QA. Accessed October 11,
2020. http://tryqa.com/what-is-component-testing/.

“What Is Component Testing? Definition of Component Testing, Component Testing


Meaning.” The Economic Times. Accessed October 11, 2020.
https://economictimes.indiatimes.com/definition/component-testing.

You might also like