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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -