Run an instrument test from within app and wait for result
问题 I am developing a QA automation solution that can record/playback QA tests on Android. A key business requirement is to have no dependency on a connected PC while playing back the recorded test. To that end, I'm trying to run an Instrumentation test without a connected PC. (Specifically, an Appium UiAutomator2 test). My current approach is trying to run the test programmatically from my app. If I were running the test normally from a connected PC, I would use the command adb shell am