Computer Engineering and Applications ›› 2016, Vol. 52 ›› Issue (18): 214-221.

Previous Articles     Next Articles

Test data generation and selection approach for Web application based on constraint-solving

DENG Zhidan, YANG Haiyan, WU Ji   

  1. School of Computer Science and Engineering, Beihang University, Beijing 100191, China
  • Online:2016-09-15 Published:2016-09-14

一种约束求解的Web应用测试数据生成与筛选方法

邓志丹,杨海燕,吴  际   

  1. 北京航空航天大学 计算机学院,北京 100191

Abstract: Conventional test data generation techniques based on random algorithm, constraint-solving and white-box testing oriented generation method ignore the dependency between test data and database, which are not suitable for test data reuse and web application testing. This paper presents a test data generation and selection approach based on data constraints in business processes, which improves the reusability of data by injecting semi-formalized constraints into web business process with data pool storage technique. The case study shows a set of test data with high usability can be generated by this technique with low consumption.

Key words: Web application testing, test data, business process, semi-formal description, constraint, data reuse

摘要: 传统基于随机算法、约束求解以及面向白盒测试的测试数据生成方法往往忽略了测试数据与数据库系统之间的依赖关系,同时并不适用于数据复用、Web应用测试。提出一种面向业务流程数据约束的测试数据生成与筛选方法,通过在Web业务流程模型中引入对测试数据的半形式化约束,利用数据池存储技术,并提高测试数据的复用性。通过案例表明,新的测试数据生成技术能够以较低的开销生成可用性高的测试数据集。

关键词: Web应用测试, 测试数据, 业务流程, 半形式化描述, 约束, 数据复用