Страницы
▼
среда, 13 июня 2018 г.
Add KV data to JUnit test (console run)
adb shell am instrument -w -e class com.example.developer.appname.SomeTests#testName -e key1 param1 -e key2 param2 com.example.developer.appname.test/android.support.test.runner.AndroidJUnitRunner
Spaces and some other characters is not supported in key or value
in android test use InstrumentationRegistry.getArguments().get(key)
Spaces and some other characters is not supported in key or value
in android test use InstrumentationRegistry.getArguments().get(key)
Run anroid JUnit test with android JUnit runner from console
adb shell am instrument -w -e class com.example.developer.appname.SomeTests#testName com.example.developer.appname.test/android.support.test.runner.AndroidJUnitRunner