计算机科学 ›› 2013, Vol. 40 ›› Issue (1): 171-174.

• 软件与数据库技术 • 上一篇    下一篇

基于输出代码行的回归测试集生成方法

丰 凯,高建华   

  1. (上海师范大学计算机科学与技术系 上海200234)
  • 出版日期:2018-11-16 发布日期:2018-11-16

Method of Regression Test Set Generation Based on Output Lines of Code

  • Online:2018-11-16 Published:2018-11-16

摘要: 由于软件产品版本的不断更替、原代码的不断更改,使得测试人员需要具有针对性的回归测试,而目前的方法难以满足这样的需求。提出一种针对输出代码行进行生成回归测试集的方法,该方法通过每个测试用例的运行路径将回归测试集分类,测试用例若通过选定的输出代码行,则被选入测试子集中。此方法考虑代码行输出的功能特性,适用于在小段代码中获取具有针对性的测试集。此外,还将该方法应用于生成基于需求的回归测试集。实例表明,此方法可高效、全面地对已改代码选取回归测试集,能够满足要求严格的回归测试,并具有扩展性。

关键词: 回归测试,代码行,选取测试子集,测试需求

Abstract: By reason of the constant turnover of the software version as well as the ceaseless change of the source code,tester needs the regression test with a specific targeted direction. However, the current technical methods arc difficult in meeting such requirement. A method generating the test sets of regression test specifically based on the lines of the output code was proposed. I}he method classifies the test sets of regression test pertinently according to the execution path of each test case. The selection of the test case into the test subset will be made only if the case passes through the selected lines of the output code. Our method roundly takes the output functional properties of code lines into consideration which makes it applicable for obtaining the test sets whit certain pertinence in small block of code. Furthermore,this paper made the application of the method into the generation of the regression test sets based on the user rectuiremenu. Some examples show that the selection of regression test sets for modified code through this method can be both efficient and comprehensive, which enables it to suffice the regression test with stringent demand and provide test with expansibility.

Key words: Regression test,Lines of code,Select test subset, Lest requirement

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!