ABSTRACT

This chapter discusses two vital issues in the context of component-based software: testing techniques and test-case generation techniques. Both functional and structural testing strategies, as well as test-case generation techniques for CBSE, are discussed. Testing is divided into two broad categories: black-box testing and white-box testing. The chapter also aims to define levels of testing for component-based software, focusing on specific elements in component testing at individual component level: test specification, test plan, test cases and test documentation.

When components are integrated, they produce explicit effects termed integration effects. Black-box test-case generation techniques use an integration-effect graph to calculate the number of test cases in component-based software. Test-case generation methods are illustrated through case studies of various components. Test-case count techniques for black-box components using cyclomatic complexity methods are also discussed.