...
首页> 外文期刊>Innovations in Systems and Software Engineering >Prioritizing test scenarios from UML communication and activity diagrams
【24h】

Prioritizing test scenarios from UML communication and activity diagrams

机译:根据UML通信和活动图确定测试方案的优先级

获取原文
获取原文并翻译 | 示例
           

摘要

Due to the large size and complexity of software, exhaustive testing becomes impossible. Hence, testing must be done in an optimized way keeping in mind factors, such as requirements of the customer, cost and time. For this, there is a need to generate test cases and exercise them to gain maximum throughput by uncovering defects. Test case/scenario prioritization is a well known and efficient technique to ensure the software quality. Prioritization of test scenarios helps in early detection of bugs. In this paper, we present an integrated approach and aprioritization technique to generate cluster-level test scenarios from UML communication and activity diagrams. In our approach, we first construct a tree representation of communication diagrams, and then a tree representation of activity diagrams. We convert them into an intermediate tree named as COMMACT tree. We, then carry out a post-order traversal of the constructed tree for selecting conditional predicates from the intermediate tree. Then, we propose an algorithm to generate test scenarios from the constructed tree. Next, the necessary information, such as method-activity sequence, associated objects, and constraint conditions is extracted from test scenario. The test sequences are a set of theoretical paths starting from initialization to end, while taking conditions (pre- and post-condition) into consideration. Each generated test sequence corresponds to a particular scenario of the considered use case. The third phase is to generate test scenarios from the tree satisfying the message-activity path test adequacy criteria. Preliminary results obtained on a case-study indicate that the technique is effective in extracting the critical scenarios from the communication and activity diagrams. Our approach generates redundant test scenarios and still achieves adequate test coverage.
机译:由于软件的大小和复杂性,不可能进行详尽的测试。因此,必须考虑到客户需求,成本和时间等因素,以优化的方式进行测试。为此,需要生成测试用例并对其进行练习以通过发现缺陷来获得最大的吞吐量。测试用例/场景优先级确定是一种众所周知的有效技术,可以确保软件质量。测试方案的优先级排序有助于早期发现错误。在本文中,我们提出了一种集成的方法和优先化技术,可以从UML通信和活动图生成集群级别的测试方案。在我们的方法中,我们首先构造通信图的树形表示,然后构造活动图的树形表示。我们将它们转换为名为COMMACT树的中间树。然后,我们对构造的树进行后遍历,以从中间树中选择条件谓词。然后,我们提出了一种从构造的树生成测试场景的算法。接下来,从测试场景中提取必要的信息,例如方法活动序列,关联的对象和约束条件。测试序列是从初始化到结束的一系列理论路径,同时考虑了条件(前置条件和后置条件)。每个生成的测试序列对应于所考虑用例的特定场景。第三阶段是从满足消息活动路径测试适当性标准的树中生成测试方案。通过案例研究获得的初步结果表明,该技术可有效地从交流和活动图中提取关键情景。我们的方法产生了冗余的测试场景,并且仍然实现了足够的测试覆盖范围。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号