This paper with UML extensions which are state chart diagram and sequence diagram for CBSE analyses the features of component based software testing and founds generating test case on four elements in the literature [1] that can model the characteristics of the interactions between components, especially, to impose arithmetic of gaining context-dependence relationships and content-dependence relationships. And according to these elements, this paper proposes a valid method of generating test case for component based software integration testing.