期刊文献+

面向用户会话的Web应用测试用例生成及其优化 被引量:4

Test case generation and optimization for Web application test based on user sessions
下载PDF
导出
摘要 测试是保证Web应用的高质量、高可靠性的一种有效手段,然而,由于其特殊性和复杂性,使得传统的测试理论与方法很难直接运用到Web应用的测试中,一个关键的问题就是测试用例的生成及其优化。提出了一种将遗传算法用于基于用户会话的Web应用测试用例生成及其优化的方法。通过分析服务器的用户日志,清除无关的数据,得到大量有意义的用户会话,利用约简技术进一步剔除其中的冗余。为便于测试的重用和并发执行,将用户会话进行合理的分组,每一组称为一个测试套件,并在测试套件之间以及测试套件内部(测试用例之间)进行初步的优先排序。这样就得到了初始的测试套件和测试用例,以及它们的初始执行顺序。这种初始的测试方案离最优解的近似程度还不是很高,需进一步利用遗传算法对它们进行分组优化并优先排序。同时提出了一种利用交叉算子产生新的测试用例的方法,新的测试用例可以检测不同用户共享数据时可能带来的冲突而产生的错误。 The test is an effective way to ensure the high quality and high reliability of Web applications. Unfortunately, it is hard to directly employ the traditional test theories and methodologies because of the particularities and complexities of Web applications. The test case generation and optimization is one of the key problems.An approach to generating and optimizing test cases is proposed for Web application test based on user sessions using genetic algorithm. A large volume of meaningful user sessions are obtained after purging their irrelevant information by analyzing user logs on the Web server. Most of the redundant user sessions are also removed by reducing them. For test reuse and test concurrency, it divides the user sessions obtained into different groups, each of which is called a test suite, and then prioritizes the test suites and the test cases of each test suite. So, the initial test suites and test cases, and their initial executing sequences are achieved. However, the test scheme generated by the elementary prioritization is not much approximate to the best one. Therefore, genetic algorithm is employed to optimize the grouping and prioritization. Meanwhile, an approach to generating new test cases is presented using crossover. The new test cases can detect errors caused by the use of possible conflicting data shared by different users.
出处 《计算机科学与探索》 CSCD 2008年第6期627-640,共14页 Journal of Frontiers of Computer Science and Technology
基金 国家自然科学基金 国家重点基础研究发展规划(973) 国家高技术研究发展计划(863) 上海市教委科研项目 上海市重点学科建设项目~~
关键词 WEB应用 遗传算法 测试用例 测试套件 约简 优先排序 公共前缀 Web applications genetic algorithm test case test suite reduction prioritization common prefix
  • 相关文献

参考文献3

二级参考文献16

  • 1徐宝文,聂长海,史亮,陈火旺.一种基于组合测试的软件故障调试方法[J].计算机学报,2006,29(1):132-138. 被引量:38
  • 2荚伟,高仲仪.基于遗传算法的软件结构测试数据生成技术研究[J].北京航空航天大学学报,1997,23(1):36-40. 被引量:14
  • 3[1]Chen T Y,Lau M F. A new heuristic for test suite reduction.Information and Software Technology, 1998, 40(5/6) : 347~354 被引量:1
  • 4[2]Chen T Y, Lau M F. A simulation study on some heuristics for test suite reduction. Information and Software Technology,1998, 40(13): 777~787 被引量:1
  • 5[3]Lee J G, Chung C G. An optimal representative set selection method. Information and Software Technology, 2000, 42 (1):17~25 被引量:1
  • 6[4]Chen T Y,Lau M F. Dividing strategies for the optimization of a test suite. Information Processing Letters, 1996, 60(3): 135~141 被引量:1
  • 7[5]Johnson D S. Approximation algorithms for combinatorial problems. Journal of Computer and System Sciences, 1974, 9(3): 256~278 被引量:1
  • 8[6]Harrold M J,Gupta R,Soffa M L. A methodology for controlling the size of a test suite. ACM Transactions on Software Engineering and Methodology, 1993, 2(3): 270~285 被引量:1
  • 9[7]Chen T Y,Lau M F. Heuristics towards the optimization of the size of a test suite. In: Proceedings of the 3rd International Conference on Software Quality Management, Seville, Espagne, 1995, 2:415~424 被引量:1
  • 10[8]Jones J A, Harrold M J. Test-suite reduction and prioritization for modified condition/decision coverage. In: Proceedings of ICSM'01, Florence, Italy, 2001, 11:92~102 被引量:1

共引文献102

同被引文献25

  • 1李云,刘宗田,陈崚,沈夏炯,徐晓华.基于属性的概念格渐进式生成算法[J].小型微型计算机系统,2004,25(10):1768-1771. 被引量:27
  • 2黄陇,于洪敏,陈致明.基于UML顺序图的测试场景自动生成研究[J].计算机应用与软件,2006,23(4):30-31. 被引量:3
  • 3Li Z,Alaeddine N,Tian J.Multi-Faceted Quality and Defect Measurement for Web Software and Source Contents[J].Journal of Systems and Software,2009,83(1):18-28. 被引量:1
  • 4Hower R.Web Site Test Tools and Site Management Tools.Software QA and Testing Resource Center[OL].http://www.softwareqatest.com/qatweb1.html.Accessed on Feb.2010. 被引量:1
  • 5Lucca G A D,Fasolino A R.Testing Web-based Applications:The State of the Art and Future Trends[J].Information and Software Technology,2006(48):1172-1186. 被引量:1
  • 6Dobolyi K.An Exploration of User-Visible Errors to Improve Fault Detection in Web-based Applications[D].School of Engineering and Applied Science,University of Virginia,2009. 被引量:1
  • 7Halfond W G J,Anand S,Orso A.Precise Interface Identification to Improve Testing and Analysis of Web Applications[C] ∥The 18th International Symposium on Software Testing and Analysis.ACM,NY,USA,2009. 被引量:1
  • 8Subraya B M,Subrahmanya S V.Object Driven Performance Testing of Web Applications[C] ∥The First Asia-Pacific Conference on Quality Software.HongKong,China,Oct.2000. 被引量:1
  • 9Andrews A,Offutt J,Alexander R.Testing Web Applications by Modeling with FSMs[J].Software and Systems Modeling,2005,4(3):326-345. 被引量:1
  • 10Benedikt M,Freire J,Godefroid P.VeriWeb:Automatically Testing Dynamic Web Sites[C] ∥The 11th International World Wide Web Conference.Honolulu,HI,May 2002. 被引量:1

引证文献4

二级引证文献5

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部