跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2003.00257 (cs)
[提交于 2020年2月29日]

标题:ADF-GA: Data Flow Criterion Based Test Case Generation for Ethereum Smart Contracts

作者:Pengcheng Zhang, Jianan Yu, Shunhui Ji
查看论文《ADF-GA: Data Flow Criterion Based Test Case Generation for Ethereum Smart Contracts》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Testing is an important technique to improve the quality of Ethereum smart contract programs. However, current work on testing smart contract only focus on static problems of smart contract programs. A data flow oriented test case generation approach for dynamic testing of smart contract programs is still missing. To address this problem, this paper proposes a novel test case generation approach, called ADF-GA (All-uses Data Flow criterion based test case generation using Genetic Algorithm), for Solidity based Ethereum smart contract programs. ADF-GA aims to efficiently generate a valid set of test cases via three stages. First, the corresponding program control flow graph is constructed from the source codes. Second, the generated control flow graph is analyzed to obtain the variable information in the Solidity programs, locate the require statements, and also get the definition-use pairs to be tested. Finally, a genetic algorithm is used to generate test cases, in which an improved fitness function is proposed to calculate the definition-use pairs coverage of each test case with program instrumentation. Experimental studies are performed on several representative Solidity programs. The results show that ADF-GA can effectively generate test cases, achieve better coverage, and reduce the number of iterations in genetic algorithm.
主题: 软件工程 (cs.SE)
引用方式: arXiv:2003.00257 [cs.SE]
  (或者 arXiv:2003.00257v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2003.00257
期刊参考: Published as a conference paper at 3rd International Workshop on Emerging Trends in Software Engineering for Blockchain, 2020

提交历史

来自:Pengcheng Zhang
[v1] 2020年2月29日 星期六 13:59:21 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2020-02
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站