首页> 外文会议>International Conference on Security, Privacy, and Anonymity in Computation, Communication and Storage >An Automatic Generation Method for Condition Expressions of CPN Model Focus on Tested Behaviors
【24h】

An Automatic Generation Method for Condition Expressions of CPN Model Focus on Tested Behaviors

机译:CPN模型对测试行为的条件表达的自动生成方法

获取原文

摘要

Testing of the parallel software becomes more difficult because of the state space explosion. In theory, all possible input should be considered when testing. However, in actual, completely test is impossible, so we should carry on the targeted test rather than blindly choose test cases. Colored Petri Net (CPN) is an excellent language to describe parallel system. But, testing based on this method couldn't complete efficiently when the state space is huge. A new automation algorithm which based on CPN is proposed in this paper. This method could generate the condition expressions automatically. The conditional expressions are a combination of the conditions on all feasible paths which from the initial place to the tested behaviors. First, all paths from current initial place to tested behaviors are found in this method. Second, all the pending arc expressions and guard expressions that obtained from these paths are extracted and processed, especially, the equivalence problem of the namesake variable of the key nodes would be resolved, and these key nodes mainly contain synchronous transition and synchronous concurrency transition. Besides, the substitution problem between different variables also is considered in this process. Finally, we obtain the conditional expressions by integrating all the pending expressions, these expressions are all about the initial position output variables. Test data that meet these conditions could reach the test target. These expressions could guide tester to choose the appropriate test case and remove redundancy data from testing data set. It can also be used to implement boundary value analysis, equivalence class division, and system model analysis. At the end of the paper, we give the instance to show this method is reasonable and effective.
机译:并行软件的测试变得由于状态空间爆炸的更加困难。从理论上讲,所有可能的输入应被视为测试时。然而,在实际的,完全测试是不可能的,所以我们应该对目标进行测试,而不是盲目选择测试用例。有色Petri网(CPN)是描述并行系统的优秀语言。但是,基于该方法检测不能有效时态空间是巨大的完成。它基于CPN一个新的自动化算法本文提出。这种方法可以自动生成条件表达式。的条件式的所有可行路径,其从所述初始位置到测试行为的条件的组合。首先,从当前的初始位置到测试行为的所有路径在该方法中找到。第二,所有的未决弧表达式和从这些路径获得保护表达式被提取和处理,特别是,关键节点的同名变量的等价问题将得到解决,这些关键节点主要包含同步过渡和同步并发过渡。此外,不同的变量之间的替代问题也在这个过程中加以考虑。最后,我们通过整合所有挂起的表情获得条件表达式,这些表达都是关于初始位置的输出变量。满足这些条件的测试数据可以达到测试目标。这些表达式可以指导测试仪测试,从数据集选择合适的测试案例和删除冗余数据。它也可以用来实现边界值分析,等价类划分,以及系统模型分析。在文章的最后,我们给出的实例表明,该方法是合理和有效的。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号