简体   繁体   English

Android Studio Espresso 测试记录器慢

[英]Android Studio Espresso Test Recorder Slow

I am trying to create some Espresso UI tests using Android Studio's inbuilt Espresso Test Recorder.我正在尝试使用 Android Studio 的内置 Espresso 测试记录器创建一些 Espresso UI 测试。 The issue is: when I type it is very slow to appear on the screen.问题是:当我输入时,它出现在屏幕上的速度很慢。

Anything text entry/keyboard-based takes a while for a single letter to appear.任何基于文本输入/键盘的内容都需要一段时间才能出现一个字母。 I have tested this on a super simple one view app vs a larger app, with the larger app having an increased delay.我已经在一个超级简单的单视图应用程序和一个更大的应用程序上测试了这个,更大的应用程序具有增加的延迟。 I have also tested it on Genymotion vs Android Studio emulators, with the same delay.我还在 Genymotion 与 Android Studio 模拟器上进行了测试,延迟相同。

Here is a gif of the delay on the single-page app:这是单页应用程序延迟的 gif:

在此处输入图片说明

Any idea how to fix this issue?知道如何解决这个问题吗?

切换到较低的 API 可能会有所帮助,因为它对我有用,并且它提高了 Espresso 测试记录的速度性能。

You should check visualization settings in Developer settings on your device. 您应该检查设备上的开发人员设置中的可视化设置。

I'm using TestProject recorder tool for android automation. 我正在使用TestProject记录器工具进行Android自动化。 Free tool, works fast 免费工具,工作速度快

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM