【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 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号