{"title":"Practical Android Test Recording with Espresso Test Recorder","authors":"Stas Negara, N. Esfahani, Raymond P. L. Buse","doi":"10.1109/ICSE-SEIP.2019.00029","DOIUrl":null,"url":null,"abstract":"Tests for mobile apps can be difficult to write, are often fragile, unreliable, and come with a significant maintenance burden. As a result, many developers write few or no tests and instead rely on expensive and error-prone manual testing. We present Espresso Test Recorder, a practical approach to test creation for Android. Espresso Test Recorder employs a novel technique based on the Java Debugger to reliably capture UI interactions and generate robust well-formed instrumentation tests, which can be used across a wide range of devices. In this paper, we report on how we designed, built, and productionized Espresso Test Recorder in Android Studio, where it has been employed by thousands of users throughout the world to record tests with minimal effort.","PeriodicalId":378237,"journal":{"name":"2019 IEEE/ACM 41st International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP)","volume":"34 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-05-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"15","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 IEEE/ACM 41st International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICSE-SEIP.2019.00029","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 15
Abstract
Tests for mobile apps can be difficult to write, are often fragile, unreliable, and come with a significant maintenance burden. As a result, many developers write few or no tests and instead rely on expensive and error-prone manual testing. We present Espresso Test Recorder, a practical approach to test creation for Android. Espresso Test Recorder employs a novel technique based on the Java Debugger to reliably capture UI interactions and generate robust well-formed instrumentation tests, which can be used across a wide range of devices. In this paper, we report on how we designed, built, and productionized Espresso Test Recorder in Android Studio, where it has been employed by thousands of users throughout the world to record tests with minimal effort.
移动应用程序的测试很难编写,通常是脆弱的,不可靠的,并且带来了巨大的维护负担。因此,许多开发人员编写很少或不编写测试,而是依赖于昂贵且容易出错的手动测试。我们介绍了Espresso Test Recorder,这是一种为Android创建测试的实用方法。Espresso Test Recorder采用了一种基于Java调试器的新技术来可靠地捕获UI交互,并生成健壮的格式良好的仪器测试,这可以在广泛的设备上使用。在本文中,我们报告了我们如何在Android Studio中设计、构建和生产Espresso测试记录器,它已经被世界各地成千上万的用户使用,以最小的努力记录测试。