paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Log-based slicing for system-level test cases

面向系统级测试用例的基于日志的切片
ISSTA Proceedings of the 30th ACM SIGSOFT International Symposium on Software Testing and Analysis2021匹配度 2/10 · 论文属于传统程序切片与系统级测试用例分解,虽然涉及静态/动态切片局限,但既不针对 ML/Agentic 程序,也不涉及 LLM/Agent 与静态分析的交叉,与用户当前核心方向关联很弱。引用 20 inbox
Salma Messaoudi, Donghwan Shin, Annibale Panichella, Domenico Bianculli, Lionel C. Briand
crossref: 2026-09-12

AI 速览

一句话:提出基于日志的切片方法,将含多场景的系统级测试用例分解为更小用例,避免静态/动态切片局限。

回归测试中,系统级测试用例常把多个测试场景合并为一个用例,导致执行耗时耗资源,难以维护。将这类用例分解为仅含单一场景及其断言的小用例,可降低执行时间并保持测试有效性;由于测试用例本身也是程序,可使用程序切片实现。但现有静态与动态切片在用例依赖外部资源、无法进行代码插桩或测试执行代价高昂时存在局限。本文因此提出面向系统级测试用例的基于日志的切片方法,利用执行日志支持分解,避免插桩并适应外部资源与高执行成本。摘要未给出具体实验与结果,但目标是在保持原测试有效性的同时降低分解后用例的执行开销。

问题
系统级测试用例常包含多个测试场景且执行昂贵,需要在不损失测试有效性的前提下将其分解为更小用例;现有静态/动态切片因外部资源、无法插桩和执行昂贵而受限。
方法
提出基于日志的切片(log-based slicing)方法,利用测试执行日志对系统级测试用例进行分解,避免依赖代码插桩,并适用于使用外部资源、执行代价高的场景。
评估
摘要未报告具体评估结果;根据摘要,评估目标是分解后测试用例执行时间低于原用例,同时保持原用例的测试有效性。
原文摘要(Abstract)

Regression testing is arguably one of the most important activities in software testing. However, its cost-effectiveness and usefulness can be largely impaired by complex system test cases that are poorly designed (e.g., test cases containing multiple test scenarios combined into a single test case) and that require a large amount of time and resources to run. One way to mitigate this issue is decomposing such system test cases into smaller, separate test cases---each of them with only one test scenario and with its corresponding assertions---so that the execution time of the decomposed test cases is lower than the original test cases, while the test effectiveness of the original test cases is preserved. This decomposition can be achieved with program slicing techniques, since test cases are software programs too. However, existing static and dynamic slicing techniques exhibit limitations when (1) the test cases use external resources, (2) code instrumentation is not a viable option, and (3) test execution is expensive.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot6663,
  title = {Log-based slicing for system-level test cases},
  author = {Salma Messaoudi and Donghwan Shin and Annibale Panichella and Domenico Bianculli and Lionel C. Briand},
  booktitle = {ISSTA},
  year = {2021},
  doi = {10.1145/3460319.3464824}
}