android - 在没有 PC/SD 卡的情况下在 android 中运行 shell 脚本/启动 Junit 测试

标签 android linux shell

我有一个 Robotium 测试用例,它是一个工具性 JUnit 测试用例,我可以使用以下 shell 脚本从我的 PC 的命令行运行它:

adb shell am instrument -w android.support.v7.appcompat.test/android.test.InstrumentationTestRunner

然而,据我们所知,Android Linux 系统没有安装终端。有没有办法让设备识别/运行 shell 脚本?不能是我必须手动点击的外部程序,文件或测试用例是从应用程序调用的。

非常感谢任何帮助,包括我可以研究的原始想法。再次感谢任何提供帮助的人。

最佳答案

关于android - 在没有 PC/SD 卡的情况下在 android 中运行 shell 脚本/启动 Junit 测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24290583/

相关文章:

android - 确保 Android 应用程序正在运行

android MVP - 我可以为自定义 View 和 fragment 设置多个演示者吗

java.util.zip.ZipException : duplicate entry :how to overcome

linux - 无需 GUI 的蓝牙配对

shell - 通过逻辑 && 和 || 表达 If then else

python - 从命令行调用 python 脚本而不先输入 "python"

android - 保留对 SharedPreferences 及其编辑器的静态引用是否安全?

linux - AWS lambda 生成 `CXXABI_1.3.9' 在 native 库调用中找不到

python - 导入后无法进行 git pull

linux - 将 tar 命令的输出重定向到 shell 脚本中的变量