.NET/C# instrumentation for search-based software testing

被引:0
|
作者
Amid Golmohammadi
Man Zhang
Andrea Arcuri
机构
[1] Kristiania University College,
[2] Oslo Metropolitan University,undefined
来源
Software Quality Journal | 2023年 / 31卷
关键词
.NET instrumentation; White-box test generation; SBST; RESTful APIs;
D O I
暂无
中图分类号
学科分类号
摘要
C# is one of the most widely used programming languages. However, to the best of our knowledge, there has been no work in the literature aimed at enabling search-based software testing techniques for applications running on the .NET platform, like the ones written in C#. In this paper, we propose a search-based approach and an open source tool to enable white-box testing for C# applications. The approach is integrated with a .NET bytecode instrumentation, in order to collect code coverage at runtime during the search. In addition, by taking advantage of Branch Distance, we define heuristics to better guide the search, e.g., how heuristically close it is to cover a branch in the source code. To empirically evaluate our technique, we integrated our tool into the EvoMaster test generation tool and conducted experiments on three .NET RESTful APIs as case studies. Results show that our technique significantly outperforms gray-box testing tools in terms of code coverage.
引用
收藏
页码:1439 / 1465
页数:26
相关论文
共 50 条
  • [41] Search-based Testing using EFSMs
    Turlea, Ana
    2019 IEEE 30TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING WORKSHOPS (ISSREW 2019), 2019, : 100 - 103
  • [42] Search-Based Energy Testing of Android
    Jabbarvand, Reyhaneh
    Lin, Jun-Wei
    Malek, Sam
    2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2019), 2019, : 1119 - 1130
  • [43] Search-based testing in membrane computing
    Turlea, Ana
    Gheorghe, Marian
    Ipate, Florentin
    Konur, Savas
    JOURNAL OF MEMBRANE COMPUTING, 2019, 1 (04) : 241 - 250
  • [44] Search-based testing in membrane computing
    Ana Ţurlea
    Marian Gheorghe
    Florentin Ipate
    Savas Konur
    Journal of Membrane Computing, 2019, 1 : 241 - 250
  • [45] Special Issue on Search-Based Software Engineering
    Sarro, Federica
    Kessentini, Marouane
    Deb, Kalayanmoy
    IEEE TRANSACTIONS ON EVOLUTIONARY COMPUTATION, 2018, 22 (03) : 333 - 333
  • [46] Search-based software engineering for maintenance and reengineering
    Harman, Mark
    10th European Conference on Software Maintenance and Reengineering, Proceedings, 2006, : 309 - 309
  • [47] Evaluating Search-Based Software Microbenchmark Prioritization
    Laaber, Christoph
    Yue, Tao
    Ali, Shaukat
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2024, 50 (07) : 1687 - 1703
  • [48] A Watershed Moment for Search-Based Software Engineering
    Ozkaya, Ipek
    IEEE SOFTWARE, 2021, 38 (04) : 3 - 6
  • [49] Guest editorial: Search-based software engineering
    Gordon Fraser
    Jerffeson Teixeira de Souza
    Empirical Software Engineering, 2014, 19 : 1421 - 1422
  • [50] Special Issue on Search-Based Software Maintenance
    Di Penta, Massimiliano
    Antoniol, Giuliano
    Harman, Mark
    JOURNAL OF SOFTWARE MAINTENANCE AND EVOLUTION-RESEARCH AND PRACTICE, 2008, 20 (05): : 317 - 319