【发布时间】:2014-02-28 23:55:42
【问题描述】:
现在我写了一个批处理脚本来运行如下命令:
adb -s emulator-5556 shell am instrument -e class com.example.test.locationListTest -w com.example.test/android.test.InstrumentationTestRun
然后在控制台我得到类似FAILURE!!! Tests run: 5 fail:4 或OK 的结果。
我使用if errorlevel 0 来确定上层命令,但是无论上层命令给我OK 还是FAILURE,它都会给我0。
我需要像这样在批处理脚本中执行此操作:
if(adb -s emulator-5556 shell ..... test.InstrumentationTestRun == SUCCESS )
do (.........)
else (.........)
【问题讨论】:
标签: batch-file command-line cmd robotium exit-code