摘要
为了提高设计测试用例的效率,提高软件测试效率,提出了基于测试用例推理的测试用例复用方法。介绍了基于测试用例推理方法,说明了基于测试用例推理的测试用例复用过程。确定了测试用例和测试用例集包含的要素集合,并在此基础上建立了测试用例相似度度量模型。针对模型的3个组成部分,即结构相似度、属性相似度和属性权重,分别作了计算说明,改进K最近邻算法,建立了测试用例检索算法。通过实例讨论了该方法的过程,表明了其可行性。
To improve the efficiency of test case designing and software testing, a method of reuse technology of test case based on TCBR (test case-based reasoning) is put forward. Firstly, the method of TCBR is introduced, and the process of test case reuse based on TCBR is expatiated. Then, the elements set that test case and test case set included are confirmed, besides, the similarity measure of test cases is established. Three components, namely structure similarity, attribute similarity and attribute weight, are respectively accounted. Afterwards, the algorithm of test case retrieval is designed based on improved K nearest neighbor algorithm. Finally, the feasibility of the method is provided as an example to demonstrate the general process.
出处
《计算机工程与设计》
CSCD
北大核心
2012年第11期4230-4234,4313,共6页
Computer Engineering and Design