Integrating uiautomator test case with application code in Android

北城以北 提交于 2019-12-05 21:22:20

Not currently. What I did to simplify the process was to write a bash script.

Example:

#!/bin/bash -xe
ant clean build

adb push bin/AutomatedTests.jar /data/local/tmp/

adb shell uiautomator runtest /data/local/tmp/AutomatedTests.jar -c com.example.tests.SimpleTest

You can check Uiautomator-bot, it does what you are looking for. You don't have to use any command line. It can also run test cases on multiple devices simultaneously. For more info check this link.

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