期刊文献+

基于形式规约的软件测试用例自动生成技术研究 被引量:4

Research on Automatic Test Case Generation Based on Form Specification
下载PDF
导出
摘要 在Hierons提出的一种基于Z语言软件自动测试方法的基础上进行了拓展.该方法基于软件的Z语言规约;以Hierons提出的推理规则为基础,提出了分裂树的算法,将操作模式的约束条件转换为形如∨iPi∧Qi的析取范式;然后根据析取范式将Z语言描述的操作模式划分为子操作模式;依据子操作模式的前置条件和后置条件,将子操作模式作为状态转换图的转换关系,构建了被测试软件的状态转换图;依据状态转换图,提出了相应的状态覆盖准则、转换关系覆盖准则和转换关系谓词覆盖准则等测试数据选择准则. This paper extended Hierons′ automatic test case generated from Z specification. Based on Hierons′s rewrite rules and Z specification, a tree split arithmetic was presented to rewrite the restriction predication in Operation Scheme to ∨iP_i∧Q_i disjunctive normal form. With this disjunctive normal form, the Operation Scheme written in Z was divided into Sub-Operation Scheme. According to Sub-Operation Scheme′s pre-condition and post-condition, Sub-Operation Scheme was used as state graph′s transition. Then a finite state automation model (FSM) was derived. According to the FSM, test criterion, such as state coverage adequacy criterion, transition coverage adequacy criterion and transition predication coverage criterion were also presented.
出处 《湖南大学学报(自然科学版)》 EI CAS CSCD 北大核心 2004年第3期81-85,共5页 Journal of Hunan University:Natural Sciences
基金 国家863基础研究类项目(No.2002AA411510) 中国科学院软件所计算机科学重点实验室课题(No.SYSKF0307)
关键词 自动化测试 软件测试 Z语言 测试用例生成 状态转换 automatic testing software testing Z notation test case generation state transition
  • 相关文献

参考文献7

  • 1FURUKAWA Z, NOGI K, TOKUNAGA K.AGENT:an advanced test-case generation system for function testing[A].AFIPS press national computer conference[C].1985,54:525-535.
  • 2TSAI W, VOLOVIK D, KEEFE T. Automated test case generation for program specified by relational algebra queries[J].IEEE Transactions on Software Engineering, 1990,16(3): 316-324.
  • 3HIERONS R M. Testing from a Z specification[J].Journal of Software Testing, Verification and Reliability, 1997,7(1):19-33.
  • 4HIERONS R M. Using formal specification to enhance the software testing process[D].Ph D Thesis: Brunel University, 1993.
  • 5MICHAEL SPIVEY J. The Z notation: a reference manual[M].2nd ed. Englzwood:Prentice Hall, 1992.
  • 6何炎祥,宋强,黄谦.从过程描述语言到Z语言[J].小型微型计算机系统,2002,23(9):1110-1113. 被引量:8
  • 7HONG Zhu, PATRICK A V Hall, JOHN H R. May: software unit test coverage and adequacy[J].ACM Computing Surveys,1997,29(4): 366-427 .

二级参考文献2

  • 1何炎祥 宋强.基于STS语义模型的Z规格的平衡集成.武汉大学软件工程国家重点实验室技术报告[M].武汉:武汉大学,2000..
  • 2何炎祥,宋强.多视点需求工程的模型研究[J].计算机科学,2001,28(2):44-47. 被引量:7

共引文献7

同被引文献22

  • 1黄陇,陈致明,于洪敏,于秀山.基于UML的软件测试用例自动生成技术研究[J].计算机应用与软件,2004,21(11):16-17. 被引量:11
  • 2Jorgensen P C.韩柯译.软件测试[M].北京:机械工业出版社,2003-02.
  • 3HALL P V. Towards testing with respect to formal specification : the 2nd IEE/BCS Conference on Software Engineering[ C]. New York:IEEE Press, 1988 : 159-163.
  • 4HALL P V. Relationship between specification and testing[ J]. Information and Software Technology, 1991,33( 1 ) :47-52.
  • 5SRIDHAR A, VEMURI R. Automatic precondition verification for high-level design transformations: IEEE International Symposium on Circuits and Systems[ C ]. [ S. 1. ] : [ s. n. ], 1990:2654-2657.
  • 6VEMURI R, PAPACHRISTOU C A. On the control-step assignment in a transformational synthesis system: C-Expressions and their algebra:proceedings of the Logic and Architecture Synthesis for Silicon Compilers[ C]. [ S. 1. ] : Elsevier, 1988.
  • 7李莹,吴江琴.软件工程形式化方法与语言[M].杭州:浙江大学出版社,2010.
  • 8KarlE.Wiegers.陆丽娜,等,译.软件需求(SoftwareRequirements)[M].北京:机械工业出版社,2000,42-65.
  • 9H5PATTONR嗽件测试[M].北京:机械工业出版社,2002,1-96.
  • 10Barroca L.M,Mcdermid J.A,Formal methods: Use and Relevance for The Development of Safety Critical Systems[J].The Computer Journal, 1992,35:579-599.

引证文献4

二级引证文献18

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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