I open a cmd on windows system, and then input "adb shell am instrument -w com.demo.uia.test/android.support.test.runner.AndroidJUnitRunner
" to run android test.
I want to print log in the cmd while run the test, can anyone tell me how to write code to print log? I have tied system.out.println("xx")
and Log.i("xx","xx")
, but it's useless.
I want to show the log in cmd line, not in logcat. I solved the problem now, use sendStatus api.