Which Version of calabash-driver and calabash-android are you using?
Pls note that only calabash-android version 3.x are supported.
Pls share also the log output of the driver server console.
regards
Dominik
Hi Tej,
i looked into the project and here my comments:
<uses-permission android:name="android.permission.INTERNET" />
Hi Tej,
the information you provided is sadly not enough to provide good feedback.
If sharing the example makes troubles, do you have an github account? I would suggest that you share there on your account the project. this makes it also easier fir me.
Dominik
In your test https://github.com/tejasv02/calabash-sample/blob/master/greenhouse-android-test/src/main/java/sh/calaba/calabashdriver/Pickerjavatest.java you are using the serial number of the emulator and if you change this to the serial number of your device it will work. In my case this looks like this:
this.capabilities =
CalabashCapabilities.android("greenhouse-android", "4.0.3", "en_EN", "2222948604012003",
"emulator", "com.sai.samples.views", "com.sai.samples.views.PickerViewSample");
adb -s emulator-5554 shell am start -a android.intent.action.MAIN -n sh.calaba.android.test/sh.calaba.instrumentationbackend.WakeUp
List<String> adbCommands=new ArrayList<String>();
String wakeUpCommand =
"shell am start -a android.intent.action.MAIN -n sh.calaba.android.test/sh.calaba.instrumentationbackend.WakeUp";
adbCommands.add(wakeUpCommand);
capabilities.setAdditionalAdbCommands(adbCommands);
- 10:40:52 DEBUG sh.calaba.utils.DefaultAdbConnection (line:100) - Waiting for process...
- 10:40:52 DEBUG sh.calaba.utils.DefaultAdbConnection (line:108) - process exit value: 0
- 10:40:52 DEBUG sh.calaba.driver.server.CalabashProxy (line:186) - executing adb with parameter: shell am start -a android.intent.action.MAIN -n sh.calaba.android.test/sh.calaba.instrumentationbackend.WakeUp
- 10:40:52 DEBUG sh.calaba.utils.DefaultAdbConnection (line:73) - Process 'Executing adb Command' is about to start: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe -s HT115RX16049 shell am start -a android.intent.action.MAIN -n sh.calaba.android.test/sh.calaba.instrumentationbackend.WakeUp
- 10:40:52 DEBUG sh.calaba.utils.DefaultAdbConnection (line:100) - Waiting for process...
- 10:40:52 DEBUG sh.calaba.utils.DefaultAdbConnection (line:108) - process exit value: 0
- 10:40:52 DEBUG sh.calaba.utils.DefaultAdbConnection (line:73) - Process 'about to start CalabashServer' is about to start: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe -s HT115RX16049 shell am instrument -e target_package com.playfish.origin.casual -e main_activity com.playfish.origin.casual.activity.OriginLauncher -e class sh.calaba.instrumentationbackend.InstrumentationBackend sh.calaba.android.test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner
- 10:40:52 DEBUG sh.calaba.utils.DefaultAdbConnection (line:73) - Process 'wait for calabash-server on mobile device' is about to start: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe -s HT115RX16049 shell netstat
- 10:40:53 DEBUG sh.calaba.utils.DefaultAdbConnection (line:100) - Waiting for process...
- 10:40:53 DEBUG sh.calaba.utils.DefaultAdbConnection (line:108) - process exit value: 0
- 10:40:55 DEBUG sh.calaba.utils.DefaultAdbConnection (line:73) - Process 'wait for calabash-server on mobile device' is about to start: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe -s HT115RX16049 shell netstat
--
--
You received this message because you are subscribed to the Google Groups "calabash-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to calabash-andro...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.