Component testing overview

Component testing provides a unique, fully automated, and proven solution for applications written in C/C ++, dramatically increasing test productivity.

Component testing in HCL OneTest Embedded supports C ++ ANSI C89 and C99.

A test case contains code blocks which call the methods under test and check blocks for variable checks, which verify that the values of a variable are within a specified set of requirements during the run. The test harness is the execution unit producing the executable. It contains the test cases, the source code under test and any files required to run the application, including libraries, stubs, and the runtime of the Target Deployment Port (TDP), which allows the test to run on a target platform. When you run the test harness, the code is compiled and tested. If any runtime analysis tools are engaged on the test harness, then the source code is also instrumented.

During the run, the test cases interact with the source code, producing test results, and if engaged, coverage and runtime analysis results.

After the run, you can open the test results in the test editor to check which test cases passed or failed, and to view the actual values obtained for each variable during the run.

A test suite is a list of test harnesses to run automatically. It generates an additional test suite report and a merged coverage report. The test suite can be executed in batch mode or interactively. Each test suite allows you to select one or two different configurations. When the two different configurations are selected, the tool generates the result report in comparison mode so that you can have the obtained values in both configurations.