期刊文献+

基于符号执行和LTL公式重写的测试用例产生方法 被引量:3

Generation of Test Cases Based on Symbolic Execution and LTL Formula Rewriting
下载PDF
导出
摘要 基于模型检验等形式化方法的测试用例自动产生技术成为测试自动化领域一项重要的进展.对于输入和输出为无界抽象数据类型的无限状态系统,利用传统模型检验技术难以有效地产生测试用例集合,提出基于符号执行和公式重写的测试用例产生方法.通过建立程序的符号化执行模型,避免输入和输出变量数值化枚举而导致的无限状态系统的建模和状态爆炸问题;建立基于符号化执行模型的时序公式重写规则,并根据线性时序逻辑(linear temporal logic,LTL)公式的反例模式求取复杂属性及行为约束关系,利用约束求解的方法自动产生测试用例集合.这种方法集成了符号执行技术和时序公式状态重写——一种轻量级模型检验技术,成为基于复杂抽象数据类型系统与属性相关的测试用例自动产生的有效方法. It is a breakthrough to use model checking technique to automatically generate test cases. For infinite states systems with input/output domains defined on unbounded and types, the function of general model checking technique is very restricted in generating test cases. This paper presents the idea of auto-generation of test cases based on symbolic execution and LTL temporal formula rewriting method. The method proceeds with building the symbolic representation of program execution model, such that it can avoid explicitly building the model of infinite states systems with the enumeration of value of input and output or state explosion problem. Then temporal formula (test purposes) rewriting is applied to the symbolic execution model of program to generate complex constraint requirements according to the counterexample patterns related to test purposes and the suitable SMT(satisfiability modulo theory) solver is called for generating test cases. At the level of syntax, IOSTS and LTL formulae are used to specify interactive behaviors of systems under testing and test purposes, respectively. Therefore, the approach has the advantages of modeling the behaviors and data dependence as well as defining all kinds of test requirements concisely and naturally in a rigorous means. Further, the paper designs the algorithm for LTL formula rewriting engine, which computes the necessary condition satisfied by test cases related to the targeted test purposes. At last, a case study is conducted for showing the usefulness of the method.
作者 陈冬火 刘全
出处 《计算机研究与发展》 EI CSCD 北大核心 2013年第12期2661-2675,共15页 Journal of Computer Research and Development
基金 国家自然科学基金项目(61070223 61103045 61070122 61272005 61303108) 江苏省自然科学基金项目(BK2012616)
关键词 测试用例自动产生 符号执行 公式重写 模型检验 线性时序逻辑 输入 输出符号变迁系统 auto-generation of test cases symbolic execution formula rewriting model checking linear temporal logic (LTL) input/output symbolic transition system (IOSTS)
  • 相关文献

参考文献37

  • 1Cohen D M, Dalal S R, Parelius J, et al. The combinatorial design approach to automatic test generation [J]. IEEE Software, 1996, 13(5): 83-88.
  • 2Chilenski J J, Miller S P. Applicability of modified condition/ decision coverage to software testing [J. Journal of Software Engineering, 1994, 9(5): 193-200.
  • 3McMinn P. Search-based software test data generation: A survey [J]. Software Testing, Verification Reliability, 2004, 14(2): 102-156.
  • 4Marinov D. Automatic testing of software with structurally complex inputs [D]. Cambridge: MIT, 2005.
  • 5Godefroid P, Klarlund N, Sen K. DART: Directed automated random testing [C] //Proc of SIGPLAN 2005.Conf on Programming Language Design and Implementation (PLDI'05). New York: ACM, 2005: 213-223.
  • 6李留英,王戟,齐治昌.UML statecharts的测试用例生成方法[J].计算机研究与发展,2001,38(6):691-697. 被引量:26
  • 7Hierons R M, Bogdanov K, Bowen J P. Using formal specifications to support testing [J]. Computing Survey, 2009, 41(2): 1-76.
  • 8Fraser G, Wotawa F, Ammann P E. Testing with model checking; A survey [J]- Software Testing, Verification and Reliability, 2009, 19(3): 215-261.
  • 9Clarke E M, Grumberg O, Peled D A. Model Checking [M]. Cambridge MIT, 1999.
  • 10Prenninger W, Pretschner A. Abstractions for model-based testing [J]. Electronic Notes in Theoretical Computer Science, 2005, 116:59-71.

二级参考文献26

  • 1吴鹏,施小纯,唐江峻,林惠民,陈宗岳.关于蜕变测试和特殊用例测试的实例研究(英文)[J].软件学报,2005,16(7):1210-1220. 被引量:12
  • 2潘宏,林惠民,吕毅.Model Checking Data Consistency for Cache Coherence Protocols[J].Journal of Computer Science & Technology,2006,21(5):765-775. 被引量:1
  • 3李留英.UML测试技术的研究与实现:博士论文[M].长沙:国防科学技术大学,2000..
  • 4李留英,博士论文,2000年
  • 5Li Liuying,Proc of the 31th Int Conf Technology of Object Oriented Languages and Systems,1999年,273页
  • 6Jard C,Jéron T,Morel P.Verification of test suites[C]//Proc of 13th International Conference on Testing Communicating Systems.IFIP Conference Proceedings 176.Kluwer,2000:3-18.
  • 7EI-Far I K,Whittaker J A.Model-based software testing[M]//Marciniak J J.Encyclopedia of Software Engineering.2nd ed.[S.l.]:Wiley,2001:825-837.
  • 8Pretschner A,Prenninger W,Wagner S,et al.One evaluation of model-based testing and its automation[C]//Proc of 27th International Conference on Software Engineering.ACM Press,2005:392-401.
  • 9Wu Peng,Lin Huimin.Model-based testing of concurrent programs with predicate sequencing oonstraints[J].International Journal of Software Engineering and Knowledge Engineering,2006,16(5):727-746.
  • 10Heimdahl M P E,Rayadurgam S,Visser W,et al.Auto-generating test sequences using model checkers:A case study[C]//LNCS 2931:Proc of 3rd International Workshop of Formal Approaches to Software Testing.Springer,2003:42-59.

共引文献25

同被引文献42

  • 1陈涛,陈启买.分布式计算机系统负载平衡研究[J].计算机技术与发展,2006,16(5):33-35. 被引量:9
  • 2Duan Zhenhua. Temporal logic and temporal logic programming [M]. Beijing: Science Press, 2005.
  • 3Tian Cong, Duan Zhenhua. Model checking propositional projection temporal logic based on SPIN [G] //LNCS 4789: Formal Methods and Software Engineering. Berlin Springer, 2007:246-265.
  • 4Spivey J M. The Z. Notation= A reference manual [M]. Englewood Cliffs: Prentice-Hall, 1992.
  • 5Lausdahl K, Larsen P G, Battle N. A deterministic interpreter simulating a distributed real time system using VDM [G] //LNCS 6991: Formal Methods and Software Engineering. Berlin: Springer, 2011:179-194.
  • 6Fokkink W. Modelling Distributed Systems [M]. Berlin: Springer, 2007.
  • 7Murata T. Petri nets: Properties, analysis and applications [J]. Proc of thelEEE, 1989, 77(4): 541-580.
  • 8Tatara E, Cinar A, Teymour F. Control of complex distributed systems with distributed intelligent agents [J]. Journal of Process Control, 2007, 17(5) : 415-427.
  • 9Tianfield H, Tian Jiang. Agent based modeling and simulation of complex distributed systems [C] //Proc of the 7th World Congress on Intelligent Control and Automation. Piseataway, NJ: IEEE, 2008:416-421.
  • 10Kauer M, Steinhorst S, Goswami D, et al. Formal verification of distributed controllers using time-stamped event count automata [C] //Proc of the 18th Asia and South Pacific Design Automation Conf. Piscataway, NJ: IEEE, 2013:411-416.

引证文献3

二级引证文献16

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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