期刊文献+

EFSM模型字符串测试数据自动生成研究

Automatic string test data generation for EFSM model
下载PDF
导出
摘要 字符串测试数据自动生成是目前的研究难点,还没有很好地解决方法。针对这个问题,提出了一种将符号执行约束求解与搜索算法相结合实现基于EFSM模型的字符串测试数据自动生成方法。将测试数据候选字符集中的字符通过取余编码转换为整数;将目标路径上字符串约束转换成整数约束,通过约束求解获得中间解;采用搜索算法生成字符串测试数据。该方法能很好地减小字符串的搜索范围,有效地减少搜索算法的执行时间。实验结果表明,该方法达到了预期的效果,提高了测试数据生成效率。 Automatic string type test data generation was a difficult point and current study could not generatea good approach to solve this problem.A method of string test data automatic generation combining symbolic execution with constraint solving and search algorithm based on EFSM model was proposed.First,more candidate characters were gotter in a character set through the test data encoded into an integer,then the target string constraints were converted to integer constraints on the path,the constraints were solved and intermediate solution were solved,finally,string test data was generated by search algorithm.This method could effectively reduce the search range of the string and the execution time of the search algorithm.The experimental results showed that the method achieved the desired effect,and improved the efficiency of test data generation.
出处 《计算机工程与设计》 CSCD 北大核心 2014年第6期1968-1972,共5页 Computer Engineering and Design
基金 国家自然科学基金项目(61073035 61170082)
关键词 扩展有限状态机 符号执行 搜索算法 测试数据生成 字符串 extended finite state machine (EFSM) symbol execution search algorithm test data generation string
  • 相关文献

参考文献10

  • 1Kalaji A S, Hierons R M, Swift S. An integrated search-based approach for automatic testing from extended finite state ma- chine (EFSM) models [J]. Information and Software Technology, 2011, 53 (12): 1297-1318.
  • 2Feng You, Yu Yan, Zhao Ruilian. Test data generation for EF- SM models with procedure calls [J]. ICISE, 2011: 5508-5511.
  • 3Mohammad Alshraideh, Leonardo Bottaci. Search-based soft- ware test data generation for string data using program-specific search operators [J]. Test Verif Reliab, 2006 (16) : 175-203.
  • 4Zhao Ruilian, Michael R Lyu, Min Yinghua, Automatic string test data generation for detecting domain errors [J]. Test Verif Reliab, 2009 (20): 209-236.
  • 5Kiezun A, Ganesh V, Guo P J, et al. HAMPI: A solver for string constraints [C] //Proceedings of the Eighteenth International Symposium on Software Testing And Analysis, New York, NY, USA, 2009: 105-116.
  • 6Ruan H, Zhang J, Yan J. Test data generation for C programs with string-handling functions [C] //2nd IFIP/IEEE International Symposium on Theoretical Aspects of Software Engineering, 2008: 219-226.
  • 7De Moura L, Bjorner N. Z3: An efficient SMT solver [M]. Tools and Algorithms for The Construction and Analysis of Systems, 2008:337 340.
  • 8Ribeiro J C B, Zenha Rela M A, Fernandez de Vega K Test case evaluation and input domain reduction strategies for the evolutionary testing of object oriented software [J]. Information and Software Technology, 2009, 51 (11): 1534-1548.
  • 9McMinn P, Shahbaz M, Archer P. Search-based test input generation for string data types using the results of web queries [C]// IEEE Fifth International Conference on Software Testing, Verification and Validation, 2012: 141-150.
  • 10Nikolaj Biorner, Nikolai Tillmann, Andrei Voronkov. Path feasibility analysis for string manipulating programs [J]. TACAS, 2009: 307-321.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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