【24h】

Encoding Test Cases using Execution Traces

机译:使用执行迹线编码测试用例

获取原文

摘要

Test case minimization can be critical to meeting the release date of a software product. Identifying redundant test cases can help improve the quality of the test suite and speed up the testing process. Thus, there is a need to uniquely characterize test cases. This identification can support the test engineer to remove redundancy in the test suite and prioritize test cases that are highly affected by the most recent modification in source code. This paper proposes a test case encoding approach that allows engineers to facilitate execution traces to classify and identify their test cases. It will empower test engineers and allow them to minimize the time and cost of testing by reducing the number of test cases, especially in regression testing. Furthermore, it enhances the documentation of the testing process by providing a one-to-one mapping between test cases and their corresponding execution traces, each of which is a sequence of execution events triggered during the execution of the test case. The one-to-one mapping allows the approach to uniquely represent the control-flow and data-flow within the source code. This trace can be used as a signature for the test case. Whenever a modification occurred in the source code, the newly captured signatures are compared against the previous ones; any mismatch indicates that the test case has been affected by the modification. Repeating this process will help classify the test suite into four groups of test cases. This provides the ability to put the testing efforts where it is needed. Additionally, keeping a hashed value for each of the captured sequences simplifies the comparison and unifies the mapping between test cases and captured traces. It also allows detection of minor modifications in the traced events, and reduces the lengthy traces to a set of fixed size hashed values.
机译:测试用例最小化对于遇到软件产品的发布日期至关重要。识别冗余测试用例可以帮助提高测试套件的质量并加快测试过程。因此,需要唯一地表征测试用例。该标识可以支持测试工程师在测试套件中删除冗余,并优先考虑受到源代码中最近修改的高度影响的测试用例。本文提出了一个测试用例编码方法,允许工程师促进执行跟踪来分类和识别其测试用例。它将赋予测试工程师,并允许它们通过减少测试用例的数量来最小化测试的时间和成本,尤其是在回归测试中。此外,它通过在测试用例和它们的相应执行迹线之间提供一对一的映射来增强测试过程的文档,每个映射是在执行测试用例期间触发的一系列执行事件。一对一的映射允许唯一代表源代码内的控制流程和数据流的方法。该迹线可以用作测试用例的签名。每当在源代码中发生修改时,将对新捕获的签名进行比较,与前一个签名进行比较;任何不匹配都表明测试用例已受到修改的影响。重复此过程将有助于将测试套件分为四组测试用例。这提供了将测试工作所需的测试工作提供。另外,对每个捕获的序列保持散列值简化了比较并统一测试用例和捕获的迹线之间的映射。它还允许检测跟踪事件中的微小修改,并将冗长的迹线减少到一组固定大小的哈希值。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号