How to change the font in android settings using Robotium?

牧云@^-^@ 提交于 2019-12-24 11:56:25

问题


Can I change font size from medium to large or tiny in Android Settings via Robotium? If so, how? Thanks!


回答1:


I'm certainly sure that Robotium doesn't provide this feature. Robotium is an instrumentation test framework, which is close to your app's UI , so if your app doesn't provide this feature in its own interface, Robotium won't do it.

Although, lately I'd read about Google's UI test framework uiautomator and it seems to have this feature. To prove that assumption read this

Android: Espresso test for lock screen/main screen

http://qathread.blogspot.com/2015/05/espresso-uiautomator-perfect-tandem.html

So please try to find out more about this uiautomator framework which might be great addition to your existing Robotium tests.



来源:https://stackoverflow.com/questions/34221651/how-to-change-the-font-in-android-settings-using-robotium

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!