ICSE 2024
Fri 12 - Sun 21 April 2024 Lisbon, Portugal
Fri 19 Apr 2024 11:52 - 11:59 at Sophia de Mello Breyner Andresen - Testing with and for AI 1 Chair(s): Peter Rigby

Mocking is an essential unit testing technique for isolating the class under test from its dependencies. Developers often leverage mocking frameworks to develop stub code that specifies the behaviors of mock objects. However, developing and maintaining stub code is labor-intensive and error-prone. In this article, we present StubCoder to automatically generate and repair stub code for regression testing. StubCoder implements a novel evolutionary algorithm that synthesizes test-passing stub code guided by the runtime behavior of test cases. We evaluated our proposed approach on 59 test cases from 13 open source projects. Our evaluation results show that StubCoder can effectively generate stub code for incomplete test cases without stub code and repair obsolete test cases with broken stub code.

Fri 19 Apr

Displayed time zone: Lisbon change

11:00 - 12:30
Testing with and for AI 1Research Track / Journal-first Papers / Demonstrations at Sophia de Mello Breyner Andresen
Chair(s): Peter Rigby Concordia University; Meta
11:00
15m
Talk
Prompting Is All Your Need: Automated Android Bug Replay with Large Language Models
Research Track
Sidong Feng Monash University, Chunyang Chen Technical University of Munich (TUM)
11:15
15m
Talk
Towards Reliable AI: Adequacy Metrics for Ensuring the Quality of System-level Testing of Autonomous Vehicles
Research Track
Neelofar Neelofar Monash University, Aldeida Aleti Monash University
11:30
15m
Talk
Learning-based Widget Matching for Migrating GUI Test Cases
Research Track
Yakun Zhang Peking University, Wenjie Zhang Peking University, Dezhi Ran Peking University, Qihao Zhu Peking University, Chengfeng Dou Peking University, Dan Hao Peking University, Tao Xie Peking University, Lu Zhang Peking University
11:45
7m
Talk
A Search-Based Testing Approach for Deep Reinforcement Learning Agents
Journal-first Papers
Amirhossein Zolfagharian University of Ottawa - School of Electrical Engineering & Computer Science (EECS), Manel Abdellatif Software and Information Technology Engineering Department, École de Technologie Supérieure, Mojtaba Bagherzadeh Cisco, Lionel Briand University of Ottawa, Canada; Lero centre, University of Limerick, Ireland, Ramesh S
11:52
7m
Talk
StubCoder: Automated Generation and Repair of Stub Code for Mock Objects
Journal-first Papers
Hengcheng Zhu The Hong Kong University of Science and Technology, Lili Wei McGill University, Valerio Terragni University of Auckland, Yepang Liu Southern University of Science and Technology, Shing-Chi Cheung Hong Kong University of Science and Technology, Jiarong Wu , Qin Sheng WeBank Co Ltd, Bing Zhang WeBank Co. Ltd., Lihong Song WeBank Co. Ltd.
Link to publication DOI Authorizer link Pre-print
11:59
7m
Talk
Testing of Deep Reinforcement Learning Agents with Surrogate Models
Journal-first Papers
Matteo Biagiola Università della Svizzera italiana, Paolo Tonella USI Lugano
12:06
7m
Talk
Model vs System Level Testing of Autonomous Driving Systems: A Replication and Extension Study
Journal-first Papers
Andrea Stocco Technical University of Munich, fortiss, Brian Pulfer University of Geneva, Paolo Tonella USI Lugano
12:13
7m
Talk
SAFE: Safety Analysis and Retraining of DNNs
Demonstrations
Mohammed Attaoui University of Luxembourg, Fabrizio Pastore University of Luxembourg, Lionel Briand University of Ottawa, Canada; Lero centre, University of Limerick, Ireland
Pre-print
12:20
7m
Talk
MutaBot: A Mutation Testing Approach for Chatbots
Demonstrations
Michael Ferdinando Urrico University of Milano - Bicocca, Diego Clerissi University of Milano-Bicocca, Leonardo Mariani University of Milano-Bicocca
DOI Pre-print Media Attached