android - Robotium in -no-window Emulator throws Click can not be completed -


i'm using robtium 4.1

when run robotium test on emulator visible can click on button using:

    final button startbutton = (button) solo.getcurrentactivity().findviewbyid(             com.coop.r.id.btn_start);     solo.clickonview(startquizbutton); 

doing same thing in emulator launched invisible -no-window option exception :

[info] android.device parameter set emulator [info] emulator-5554_avd_for_galaxy_tab_10_1_unknown_sdk : running instrumentation tests in com.company.abc.app.test [info] emulator-5554_avd_for_galaxy_tab_10_1_unknown_sdk : run started: com.company.abc.app.test, 1 tests: [info] emulator-5554_avd_for_galaxy_tab_10_1_unknown_sdk : failure:com.company.abc.app.singlechoicetest#testapptype [info] emulator-5554_avd_for_galaxy_tab_10_1_unknown_sdk : junit.framework.assertionfailederror: click can not completed! @ com.jayway.android.robotium.solo.clicker.clickonscreen(clicker.java:85) @ com.jayway.android.robotium.solo.clicker.clickonscreen(clicker.java:157) @ com.jayway.android.robotium.solo.clicker.clickonscreen(clicker.java:131) @ com.jayway.android.robotium.solo.solo.clickonview(solo.java:879) @ com.company.abc.app.baseappmodulerobotiumtest.checkintroductionactivity(baseappmodulerobotiumtest.java:155) @ com.company.abc.app.baseappmodulerobotiumtest.testapptype(baseappmodulerobotiumtest.java:174)

i read "why text , button clicks wrong?" , checked again, still same problem me :/

i looked in sources on grepcode, catches securityexception. why in -no-window mode gets thrown ?

any on ?

best regards

i bet emulator run locked screen. every click in robotium executed click on screen (more precisely method obtain class motionevent performed). cannot click on screen, if there application process on screen.

you have find way, how unlock screen before test execution.

maybe this can you. can run vnc server on emulator, connect , check, if related locked screen, nevertheless i'm 99% sure that's issue.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -