Appium server is not running during runtime


I have used the below code snippet to launch Whats App in my android phone and also started Appium server before I run the program. My program is running with out any  errors but test is not passed and Whats app is not launched.

DesiredCapabilities capability = new DesiredCapabilities();
capability.setCapability(“deviceName”, “Moto G (2nd Generation)”);
capability.setCapability(“platformName”, “Android”);
capability.setCapability(“platformVersion”, “5.0.2”);
File file = new File(“C:\\Users\\Somanath\\Desktop\\Practise\\Appium_Started\\App\\com.whatsapp-v2.12.347-450783-Android-2.1.apk”);
capability.setCapability(“app”, file.getAbsolutePath());
driver = new AndroidDriver(new URL(“”), capability);

Below are my observations
Appium Server is not responding while executing the program

Please assist me on this

Default Asked on November 7, 2015 in Appium.
Add Comment
  • 1 Answer(s)

    You will have to give “appPackage” and “appActivity” in capabilites with your app’s Package Name and Activity.

    Train Answered on December 9, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.