节点文献

基于规则引擎的测试用例提取与维护方法研究

Research on the Rule Engine-based Test Cases Extraction and Maintenance

【作者】 孙晓飞

【导师】 罗省贤;

【作者基本信息】 成都理工大学 , 计算机应用技术, 2008, 硕士

【摘要】 软件测试是保证软件质量和可靠性的主要手段,软件测试的工作量一般占软件总开发量的40%至60%,而测试工作中有很大部分适于采用自动化测试方法。自动化测试可以提高测试过程的系统性和计划性,大规模地提高测试效率,减少测试开销,并有利于进行回归测试。本论文以成都理工大学DNCPC实验室与企业合作的项目为依托,重点研究了测试用例规则模型、交易参数模型、测试用例加载、用例集优化、测试要素管理、基准数据管理,通过交易参数模型和测试用例规则模型把规则全部显式地表达出来,使规则匹配的完整性和一致性得到很大提高,在此基础上提出了由规则模型产生测试点以及提取测试点相关的测试用例集的方法;应用了配对算法来优化用例集,使用例数可降低好几个量级。在以上基础上研究了基于规则引擎的软件测试用例提取与维护技术。本文讨论了基于规则引擎的测试用例提取和维护的基本理论和相关概念,研究了当前流行的基于J2EE的轻量级框架和规则引擎,设计了一套基于Flex+Spring+Drools+Hibernate的测试用例提取系统的体系架构。这种架构在设计上充分体现了分层的思想。整个系统分为呈现层、业务层和持久层,显著提高了系统的可扩展性和可维护性。本文在以上研究的基础上用规则引擎技术设计与实现了基于规则引擎的测试用例提取与维护系统,本系统能显著提高测试用例的可维护性和可复用性,所采用的技术框架能显著提高业务规则复杂的软件测试自动化程序的开发效率。实践证明将规则引擎应用于测试用例的提取对测试自动化具有重要的指导意义和实用价值。

【Abstract】 Software testing is to ensure that software quality and reliability of the major means of software testing the workload of the general development of software for the 40 to 60 percent, while the tests are very suitable for the majority of the use of automated testing methods. Automated test can improve the testing process of systematic and planned, large-scale testing to improve efficiency and reduce testing costs, and is conducive to regression testing.This paper discusses the rules-based engine test case extract and preserve the basic theory and related concepts, the study of the current popular J2EE-based lightweight framework and rules engine , and design an architecture based on Flex + Spring + Drools + Hibernate. This architecture designed to fully reflect the hierarchical thinking.The layered structure of the system significantly improve the system scalability and maintainability.A test case model rules, the transaction parameter model, the test case for the achievement and maintenance of extraction provide a solid theoretical foundation. A rule-based engine test case extraction and maintenance of software technology and applications using Java and Rete algorithm rules engine technology design and training of the rule-based engine test case extraction and maintenance. Application of the rules engine technology, significantly improve the maintainability of the test case and reusability, and other aspects of dwarfs. At the same time the introduction of rules engines, and can significantly improve the business rules for better software automatically generated test case application development efficiency. Practice has proved that this paper will propose the rules engine test case for the extraction of automated testing of major guiding significance and practical value.

  • 【分类号】TP311.52
  • 【被引频次】2
  • 【下载频次】130
节点文献中: