小编MoM*_*oMo的帖子

如何在执行android仪器测试时在cmd控制台中打印日志

我在windows系统上打开一个cmd,然后输入" adb shell am instrument -w com.demo.uia.test/android.support.test.runner.AndroidJUnitRunner"运行android测试.

我想在运行测试时在cmd中打印日志,有谁能告诉我如何编写代码来打印日志?我已经绑system.out.println("xx")Log.i("xx","xx"),但它是无用的.

我想在cmd行中显示日志,而不是在logcat中.我现在解决了这个问题,使用sendStatus api.

printing testing logging android cmd

10
推荐指数
1
解决办法
1253
查看次数

标签 统计

android ×1

cmd ×1

logging ×1

printing ×1

testing ×1