Work Flow DCMTesting
Work Flow DCMTesting
com
Unit Testing
White Papers: Unit Testing www.dcmtech.com
Table of Contents
C1 100% COVERAGE..................................................................................................................................3
QUERY GENERATION ..............................................................................................................................4
White Papers: Unit Testing www.dcmtech.com
Specifically, DCM Technologies has had experience in Unit Testing for the Automotive
industry.
Unit Testing involves testing the smallest possible unit of an application. Unit testing is
recognized as an essential component of the software development process. Unit testing
practitioners enjoy such benefits as easier error detection, which has the very desirable end result
of increasing software quality at the same time that it reduces development time and cost. Easier
error reduction leads to reduced development time, effort, and cost because less time and
resources are consumed finding and fixing errors. In addition, Unit testing involves several
complex types of testing:
• White-box testing: Ensures that code is constructed properly and does not contain any
hidden weaknesses.
• Black box testing: Ensures that code functions in the way that it is intended to function.
• Regression testing: Ensures that modifications do not introduce errors into previously
correct code.
DCM has been carrying out White-box testing for Automotive companies, it being a critical
part of the automotive software. White box testing checks that code is robust by determining if it
performs correctly when it encounters unexpected input. This type of testing must be performed
with full knowledge of the unit's implementation details as specified in the specifications/design.
The goal of white-box testing is to execute every branch of code under different input conditions
to uncover any abnormal behavior.
White-box test cases should uncover defects by fully exercising the code with a wide variety of
inputs. To create effective white-box test cases, one needs to examine the given unit's internal
structure, and then write test cases that will cover all of the code as fully as possible, and uncover
inputs that will cause the unit to crash. Achieving the scope of coverage required for effective
white-box testing mandates that a significant number of paths are executed.
1
White Papers: Unit Testing www.dcmtech.com
WORK FLOW
The workflow between the customer and DCM, for Unit Testing can be summarized below:
DCM Receives Document and Code
Modules
Yes No
Discrepancy? Compilation of code
Yes Clarification
Required?
No
First level Review of test cases with input and theoretical values
No
Is Correction Yes
Correction and
Required?
Verification
No
2
White Papers: Unit Testing www.dcmtech.com
C1 100% COVERAGE
One of the important requirements of Unit Testing is that the test program should execute all test
items in all program steps. This is specified as C1 100% coverage. To have C1 100% coverage,
test plan is made such that all conditions & all possible paths are covered. Reviews are done to
confirm the same and in case the compiler supports generation of profiler reports, the same are
obtained to judge that 100% coverage has been made or not.
3
White Papers: Unit Testing www.dcmtech.com
QUERY GENERATION
Query generation is an essential process in case of offshore projects. The queries need to be
systematically communicated and databases of the same needs to be maintained in order to
effectively utilize the same. There is a streamlined process followed for Query generation in DCM
as summarized below:
CUSTOMER DCM
Clarifications/Dis
crepancy
Send new Specs Yes Spec/
Document and code Code Query generated
modules. change
No
No
Send Back Mail Query
Closed
Yes
Impact analysis
Return
From Query
Generation