biddyweb / nativedriver

Automatically exported from code.google.com/p/nativedriver
Apache License 2.0
0 stars 0 forks source link

How do I run Native driver on the simulator which is on remote system? #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I tried
androidNativeDriver = new 
AndroidNativeDriverBuilder().withServer("http://<remote ip>:54129").build();

this is not launching the app in remote host simulator.

Any workaround?

Here is the setup

Remote host:
This system has android ask and the simulator has instrumented app apk 
installed. I have also executed following commands in this host
Example:
adb forward tcp:54129 tcp:54129
adb shell am instrument -w <app 
package>/com.google.android.testing.nativedriver.server.ServerInstrumentation

Driver Host:
This has a test class, which gets the handle to driver using
androidNativeDriver = new 
AndroidNativeDriverBuilder().withServer("http://<remote ip>:54129").build();

But using this approach I am unable to launch the app on remote host. Any 
pointers?

Original issue reported on code.google.com by lakshmin...@gmail.com on 13 Jan 2012 at 12:33