The rapid development for component-based software technology has caused great changes to software testing and made the component-based software testing a popular field. Because of some special characteristics, component-based software integration test has many differences with the traditional software integration test .These characteristics include source code invisible, unable to apply white-box test techniques to test the system composition unit carries on full test. Regarding these questions, the current domestic and foreign research organization has already done the massive research work, and advanced the lots of test theories and the test methods. But some theories and methods related to specific component development standard, thus does not have the universality, some theories and the methods is complex to realize, so has not formed the field standard. For example, BIT method, based on behavior protocol to confirm component behavior methods and so on. Therefore the field needs one kind which has the universality and easy realization to satisfy the test request for the component software integration testing tool.The component software integration test may divide into the static analysis and the dynamic test. However, the existing static analysis or the testing tools are mainly object-oriented or the structured software system. These testing tools are unable to provide the intermediate result information of static analysis or to provide very standard useful intermediate result information, and thus can't obtain the test information needed in dynamic test. This paper uses the reflection mechanism to expand the traditional software static state analysis method, can automatically withdraw the third party component test information through the reflection mechanism which the source code can't be known, and uses XML for serialization, and presents the interaction relations between the components by using component interaction graph. then further research the configuration architecture based on result of static analysis to achieve configurable component software integration test, and make the document machine readable, and when the test case and the test strategy changes does not need to change the test code, but through changes the XML documents content to be able to achieve the goal.Moreover, based on the method of this paper, a static state testing tool was implemented to prove our theory. This tool has three parts: Test input, source code analysis processing, test output. Source code analysis processing is the most important part, first uses the regular expression pattern matching to lexical analyzing the code which is visible, then uses reflection module to carry on the reflection to reflect the DLL and withdraw the test essential factor, last gives analysis result. |