Use Appium 1.3.0 with Genymotion

We are develop ours mobile apps and we want test them with Appium, because we think that its a good product. We are use the last version of Appium (1.3.0 i think, the beta version, that is because we need to test in IOS 8.0), the las version of java-client 2.0.0, JUnit 4.0 and the lastest version of Selenium.

How can i integrate Appium with Genymotion.

I tried, but the test never start in Genymotion, and Appium show me that messages (and looping show them):

error: Unable to start Emulator: PANIC: Could not open: GenyXperia
info: [debug] Trying to find GenyXperia emulator

info: [debug] Getting connected emulators

info: [debug] Getting connected devices…

info: [debug] executing: “/Users/jcrodriguez/Downloads/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb” devices

info: [debug] 1 device(s) connected

info: [debug] 0 emulator(s) connected

info: [debug] Trying to find GenyXperia emulator

info: [debug] Getting connected emulators

info: [debug] Getting connected devices…

info: [debug] executing: “/Users/jcrodriguez/Downloads/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb” devices

GenyXperia is my device name.

Just set capability “Device Name” as Android Emulator

I did that. This is my method where init the driver.

public void initAndroidDriver() throws MalformedURLException {

final File appDir = new File("/Users/jcrodriguez/Downloads");
final File app = new File(appDir, “app-debug.apk”);
final DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME,
“Android Emulator”);
capabilities.setCapability(MobileCapabilityType.APP, app.getAbsolutePath());
driver = new AndroidDriver(new URL(“http://127.0.0.1:4723/wd/hub”),
capabilities);
}

it’s ok that method? maybe the problem is here…

Do you launch Appium server with “–avd GenyXperia” option? This option it is not supported for Genymotion.
It works if you launch server without --avd option and there is only one Genymotion emulator started.

@rgonalo It works!!! thanks

I am facing same error. I have attached screenshot. I am unable execute test case into genymotion emulator
Please help me.