android - Running Robotium on a server -


i'm trying test android app on linux server robotium.

lt.socialheat.android.tests.socialheattest: failure in testeventtomap: junit.framework.assertionfailederror: view id: '2131034182' not found!     @ com.jayway.android.robotium.solo.solo.getview(solo.java:1929)     @ com.jayway.android.robotium.solo.solo.getview(solo.java:1909)     @ lt.socialheat.android.tests.socialheattest.testeventtomap(socialheattest.java:45)     @ java.lang.reflect.method.invokenative(native method)     @ android.test.instrumentationtestcase.runmethod(instrumentationtestcase.java:214)     @ android.test.instrumentationtestcase.runtest(instrumentationtestcase.java:199)     @ android.test.activityinstrumentationtestcase2.runtest(activityinstrumentationtestcase2.java:192)     @ android.test.androidtestrunner.runtest(androidtestrunner.java:190)     @ android.test.androidtestrunner.runtest(androidtestrunner.java:175)     @ android.test.instrumentationtestrunner.onstart(instrumentationtestrunner.java:555)     @ android.app.instrumentation$instrumentationthread.run(instrumentation.java:1661) 

simple view not found exception, tests run fine on local emulator, or actual device. server, being server, doesn't have monitor or kind of gui , did error while creating avd using software rendering instead of gles. possible run robotium tests on server without gui , how 1 accomplish feat?

edit:

emulator params:
android-17, intel abi
emulator -avd test -no-skin -no-audio -no-window

i've had working robotium environment on ec2 instance before, can assure feat indeed possible.

you'll need following things:

  • run vnc session (vnc4server, fluxbox) , run emulator instance there. @ least rid of 0 display dilemma you've mentioned.
  • add -noaudio flag when starting emulator. it's strange bug, emulator freezes starts on headless instance.
  • once emulator has finished loading (check via adb status), remember starts lockscreen displayed. unlock performing adb shell input keyevent 82

i've documented own adventure in getting done here, feel free check out. robotium ec2 guide


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -