UiAutomator 测试多个类

1、UiAutomator是手机内部工作,即adb shell uiautomator runtest,此时用Runtime.getRuntime().exec(String command)时,command为linux命令,否则出现IOException提示找不到文件;且手机默认用户的权限是普通用户权限,所以在执行command之前,必须得root手机,否则提示“权限不足”

UiAutomator可以测试多个测试类,用-c命令:如adb shell uiautomator runtest XXXX.jar -c + class + -c + class

猜你喜欢

转载自ilovejoe.iteye.com/blog/2101032