Protocol conformance testing is a method to test whether the implementation under test is consistent with the standard protocol specification,and is the basis to ensure the normal communication between heterogeneous networks.It is necessary to re-execute all the test cases to ensure the completeness of protocol conformance testing when the repaired equipment is dubuging and upgrade repaired.How to locate the fault as soon as possible becomes the major concern in the case of limited test resources or large number of test case.In order to achieve this goal,this thesis proposes an improved method for prioritizing test cases based on fault location prioritization,then designs and implements a software for prioritization of protocol conformance test cases.The main research contents of this thesis are listed as follows:(1)Firstly,research the existing protocol conformance test case prioritization method.And then designs an improved test case prioritization method based on the existing fault location prioritization.The propose method analyse the importance of the test requirement according to the historical execution information and the dependency structures between requirements.Then calculate the test importance of test case to optimize the initial execution sequence.Then adjust the priority of the unexecuted test case according to the executed information.Dynamic selection the test cases with high probability to detect faul.Thus improve the rate of fault detection.(2)Secondly,on the basis of the research on protocol conformance test case prioritization,the protocol conformance test case prioritization software is designed.And the main design ideas of the software and the detailed design instructions of each modules are explained,including human-machine interaction interface,requirement acquisition module,test case prioritization module,test execution module,data base module and test result feedback module.The effectiveness of the software is verified by practical tests.And then introduce the design idea and function description of the related module software.(3)Finally,the function verification and performance analysis of the protocol conformance test case prioritization software are validate,applied the software to the lowrate wireless sensor network protocol conformance test system.The test results show that the software can improve the efficiency of fault detection in protocol conformance testing. |