期刊文献+

基于CPN对系统的并发行为进行测试 被引量:1

Testing Concurrent Behavior of System Based on CPN
下载PDF
导出
摘要 首先对基本并发行为进行CPN建模及状态空间生成,逐渐增大模型的复杂性,展示了CPN建模并发行为可能存在的状态空间快速增大问题。在保证并发覆盖的前提下,将测试序列的生成划分为3个阶段,重点讨论了覆盖并发行为的测试序列生成方法。对于并发开始(末)库所按照CPN执行产生的状态空间中的节点进行了映射,得到状态空间中对应并发的开始(末)库所的开始(末)节点集合。通过对并发的开始(末)节点集内的节点间的关系进行分析,依据它们在状态空间中的前驱后继关系,生成一个由开始(末)节点的序列构成的序列的集合,然后以此序列集内的序列作为覆盖并发行为的测试序列的开始部分或者结尾部分,生成覆盖并发的测试序列。通过一个自行实现的P2P软件,使用了提出的建模方法及测试序列生成算法。最后通过得到的测试序列设计了测试场景及测试方案,包括Tracker并发行为测试系统结构、服务器测试方案及典型的测试场景设计。将P2P软件和TTCN-3测试机部署在一起实现了TTCN-3测试套的执行,测试结果表明测试工作的设计与实现是正确的。 The basic concurrent behavior was firstly modeled with CPN and the state space was obtained through CPN Tools.After that the complexity of the CPN was increased to show the possibly problems along with the state space quickly increasing.Secondly the phase of test generation was divided into three parts to guarantee the test coverage of concurrent behavior.Among them,the test sequences which only focused on the coverage of concurrent behaviors were generated and the other two parts were generated according to the regular path generation methods.The concurrency start(end)places were mapped with the state space nodes according to the CPN model execution and the sets of start(end)nodes in the state space were achieved.After analyzing the relationship between the nodes in the sets of start(end)nodes,the sequences sets were built according to the pre or pro relationship in the sets.The start(end)parts of the test sequences were selected from such sets,and the middle test sequences between start sequence to end sequence were generated.Furthermore,to illustrate the usage of the modeling method and the test generation,a simple P2 Psoftware system which is inherited concurrent behaviors was implemented and modeled with hierarchy CPN and the test sequences were generated to coverage the concurrent behavior.Finally,a TTCN-3test scheme was designed according to the requirement of test sequences and a test scenario was designed.And the implemented software system and the TTCN-3tester were deploying in one scenario to execute designed TTCN-3testing suite.The test results show the correctness of the designed and implemented test work.
出处 《计算机科学》 CSCD 北大核心 2016年第1期218-225,共8页 Computer Science
基金 国家自然科学基金项目(61562064 61163011 61262082) 内蒙古自然科学基金项目(2012MS0922)资助
关键词 并发行为 CPN 测试序列生成 TTCN-3 Concurrent behavior CPN Test sequence generation TTCN-3
  • 相关文献

参考文献16

  • 1Lee D, Yannakakis M. Principles and methods of testing finite state machines-a survey[J]. Proceedings of the IEEE, 1996,84 (8) : 1090-1123.
  • 2Tretmans J. A formal approach to conformance testing[D]. Uni- versity of Twente, Enschede, Netherlands, 1992.
  • 3Tretmans J. Test generation with inputs, outputs and repetitive quiescence [J]. Software Concepts and Tools, 1996,17 (3) : 103- 120.
  • 4Petrenko A, Yevtushenko N, Huo J L. Testing transition sys- tems with input and output testers[J]. Testing of Communica- ting Systems, Springer Berlin Heidelberg, 2003, 2644 (0302- 9743) : 129-145.
  • 5Peterson J L. Petri net theory and the modeling of systems [M]. Englewood Cliffs, Nj, Prentic-Hall, Inc. 1981.
  • 6J ensen K. Coloured Petri Nets.. Basic concepts, analysis methods and practical use. Vol. 3 [M] // Practical use, Monographs in Theoretical Computer Science. Springer, 1997.
  • 7Jensen K, Kristensen L M. Coloured Petri Nets: modelling and validation of concurrent systems[M]. Spring-Verlag,2009.
  • 8王冠,吴际,徐珞,金茂忠.面向TTCN-3分布式测试执行平台的测试适配器框架的研究与设计[J].电子学报,2009,37(B04):125-130. 被引量:5
  • 9Lei Y,Carver R H. Reachability testing of concurrent programs [J]. IEEE Transactions on Software Engineering, 2006, 32 (6): 382-403.
  • 10Sen K, Marinov D, Agha G. CUTE A concolic unit testing en- gine for C[C]//Proceedings of the 13th ACM SIGSOFT Sym- posium on Foundations of Software Engineering jointly with 10th European Software Engineering Conference. Lisbon, Portu- gal, ACM Press, 2005.

二级参考文献16

  • 1高翔,蒋凡,杨敬峰,李贺禄.TTCN-3研究综述[J].计算机工程与科学,2004,26(6):17-20. 被引量:8
  • 2袁洁松,王林章,李宣东,郑国梁.UMLTGF:一个基于灰盒方法从UML活动图生成测试用例的工具[J].计算机研究与发展,2006,43(1):46-53. 被引量:13
  • 3ITU-T Z. 140146:2006. TTCN-3 - - Testing and Test Control Notation[S]. Institute for Telematics.
  • 4Jens Grabowski, Dieter Hogrefe, Gyorgy Rethy, Ina Schieferdecker,Anthony Wiles, Colin WiUcock. An introduction to the testing and test control notation(TTCN-3) [J]. Computer Networks,2003,42(3) :375 -403.
  • 5ETSI.European Standard(ES) 201 873-6 V3.1.1(2005-06). Methods for Testing and Specification(MTS) ;The Testing and Test Control Notation version 3; Part 6:TTCN-3 Control Interface(TCI). European Telecommunications Standards Institute (ETSI) [S]. Sophia-Antipotis, France, also published as ITU-T. Recommendation Z. 140,2005.
  • 6EISI.European Standard(ES) 201 873-5 V3.1.1 (2005-06). Methods for Testing and Specification( MTS );The Testing and Test Control Notation version 3;Part 5:TTCN-3 Runtime Interface ( TRI ). European Telecommunications Standards Institute (ETSI) [ S ]. Sophia-Antipolis, France, also published as ITU-T. Recommendation Z. 140,2005.
  • 7Ina Schieferdecker, Stephan Pietsch, Theofanis Vassiliou-Gioles. Systematic testing of intemet protocols-first experiences in using TTCN-3 for SIP[ A ]. Proceedings of 5th Africom Conference on Communication Systems[C]. Cape Town, South Africa, May 2001.
  • 8T Tworkbench, TestingTechnologies [OL]. http://www.testingtech. de/products/ttwb-intro. php, 2007.
  • 9Rudram C. Generating Test Cases from UML[EB/OL]. (2000- 02-11). http://www- 128.ibm.com/developerworks/rational/library/ content/RationalEdge/junO1/GeneratingTest<>CasesFromUseCase s June01 .pdf.
  • 10Xu Dong, Lain C E Using Adaptive Agents to Automatically Generate Test Scenarios from the UML Activity Diagrams[C]// Proc. of the 12th Software Engineering Conference. [S. 1.]: IEEE Computer Society, 2005.

共引文献8

同被引文献3

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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