Testing C and C++ applications

You have just completed a variety of what are, in essence, reliability tests on the UMTS base station. In other words, you have verified the absence of memory leaks, the optimization of performance, the sensibility of process flow, and the completeness of your testing.

But does the base station code do what it is designed to do? And wouldn't it be useful to create automated tests rather than rely solely on manual interaction?

Runtime analysis completes the picture, but functional testing of your code gets to the heart of the matter - that is, will your application generate the results it was designed to achieve. Rational® Test RealTime provides you with three automated testing features to address your testing needs.

  • Component Testing for C: For use with C functions and Ada functions and procedures.

  • Component Testing for C++: For use with C++ classes.

  • System Testing for C: For use with C threads, tasks, processes, and nodes.

You'll start with a look at the component testing feature for C and Ada.