android: how to run ui test in java -
in android dev, google tell me how run ui test cli following:
adb shell uiautomator runtest launchsettings.jar -c com.uia.example.my.launchsettings
i hope can run ui test following:
public static void main(string[] args) { uitestrunner.run(uitestfile); }
my question is: how run android ui test in java?
i hope can debug ui test intellij idea or eclipse , encapsulate it.
the uiautomator test case doesn't need runners unlike junit test. can write test code (in android dev's example, launchsettings.java) , compile it, put device app. see example test code. http://developer.android.com/tools/testing/testing_ui.html#sample
Comments
Post a Comment