An Approach to Generate Integration Test Cases Based on UML Collaboration Diagrams
暂无分享,去创建一个
UML collaboration diagrams represent the structure relationship and interactive behavior of the objects involving in a collaboration of the software system,whether they are correctly implemented or not could be validated by integration testing.An approach is proposed to generate integration test cases based on UML collaboration diagrams.It takes a collaboration diagram as the test model,it identifies all the scenario paths in the diagram which represents use case realization by traversing the direct successors of each message.It selects and traverses each scenario path to get the method call sequence,path condition and parameters.It applies category partition method to generate rational combination of input parameters,environmental conditions,as well as the corresponding output and method call sequence,to form a test case for each scenario path.This method,combines white-box and black-box test method to generate fewer test cases to test the gray-box behavior,as well as to cover all the integration requirements.