节点文献
基于SVN的自动回归测试工具的设计与实现
Design And Implementation of Automatic Regression Testing Tool Based on SVN
【作者】 石锐;
【导师】 朱冰莲;
【作者基本信息】 重庆大学 , 工程硕士(电子与通信工程领域)(专业学位), 2016, 硕士
【摘要】 随着软件行业的不断发展,企业之间的竞争愈演愈烈,要想在众多同类企业的激烈竞争中生存和发展下去,就必须对软件产品的质量提出更高的要求。许多国外的研究机构和企业开发了大量优秀的软件测试工具来进一步提升软件的质量,但是价格都比较昂贵,对于国内的中小型企业来说成本过高。国内在软件回归测试工具方面的研究还不太成熟,其研究内容主要集中在测试用例自动化执行和测试用例约减技术方面,在回归测试的更动影响域分析和测试用例分配过程还需要测试人员的参与,使得回归测试的效率受到限制。针对上述问题及实习公司的工程需要,本文开发了一个自动回归测试工具,对回归测试中的更动影响域分析,测试用例分配和测试结果分析过程实现自动化。本文首先对国内外的软件测试工具进行了详细阐述;然后对软件测试、回归测试、自动化测试和SVN版本控制系统进行研究和分析总结,基于SVN在源代码管理上尤其是在版本回滚和查看历史版本信息方面的优势,提出了一种设计方法。该方法利用SVN命令提取两个版本之间的更动差异信息,进而根据代码与测试用例的映射关系进行测试用例分配,并且在测试用例执行通过后对测试用例覆盖率结果分析来决定回归测试是否结束,不仅能够提高工作效率、避免人工进行影响域分析和测试用例分配的主观性,而且在此引入代码覆盖率代替测试用例通过率来作为回归测试的结束标准可以保证全部代码得到测试;最后,根据提出的基于SVN进行回归测试的设计方法开发了自动回归测试工具,该工具包括更动影响域分析模块,测试用例分配模块和测试结果分析模块,实现了回归测试过程的自动化。自动回归测试工具的测试结果表明该工具能够满足设计需求,应用于回归测试过程中取得了良好的效果,不仅保证了软件回归测试的全面性,而且提高了软件回归测试的效率,节省了大量的人力物力,使测试人员能够将更多的精力投入到回归测试中未覆盖到的代码的分析和测试用例库的维护工作中。
【Abstract】 With the development of software industry, the competition between enterprises is becoming more and more fierce, and the quality of software products is particularly important if an enterprise wants to survive even to develop. Up to now, many foreign research institutions and companies have developed a lot of excellent software testing tools to further enhance the quality of software, but they are relatively expensive to domestic small and medium-sized enterprises. Meanwhile, domestic research in software testing tool is not mature enough, and researches are mainly focused on the automatic execution and reduction technology of test cases. As for modification influence domain analysis and test cases allocation process in regression testing, more testers are required, which makes the efficiency of regression testing limited. To solve these problems and meet the needs of the project, an automatic regression testing tool is developed to make modification influence domain analysis, test cases allocation and test results analysis automation.In the thesis, the software testing tools at home and abroad are introduced in detail firstly. Then the theory of software testing, regression testing, automatic testing and SVN are studied and analyzed. Based on the outstanding performance in the source code management of SVN, especially in achieving version rollback and viewing the version history information, a new design method of regression testing is proposed. The design method is that SVN is used to get modified differences information, and then test cases are distributed according to the mapping relation bewteen codes and test cases, and code-coverage results of test cases are analyzed after test cases executed and passed to decide whether regression test can be finished. The design method can not only improve the working efficiency and avoid the subjectivity of the testers,but also bring in code coverage rate to guarantee all codes can be tested. Finally, according to the design method of regression testing based on SVN, automatic software regression testing tool which consists of modification influence domain analysis module, test cases allocation module and test results analysis module is deveopeded to achieve regression testing process automation.The test results of the automatic regression testing tool indicate that the tool can meet the design requirements, and it has a good effect on applying to regression testing process.The tool can not only ensure the comprehensiveness of regression testing, but also improve the efficiency of regression testing. It saves a lot of resources, so the testers can put main energy into the analysis of the uncovered function in regression testing process and maintenance of test case library.
【Key words】 software testing; regression testing; automatic testing; SVN; code coverage;
- 【网络出版投稿人】 重庆大学 【网络出版年期】2017年 03期
- 【分类号】TP311.53
- 【被引频次】4
- 【下载频次】125