TransWikia.com

Android application not launching with Appium

Software Quality Assurance & Testing Asked by albertgeorge253 on October 25, 2021

I have downloaded the latest Appium Desktop to inspect the different elements for automating an app. I was able to launch the calculator app on my Android phone but was unable to launch an app that I have installed from the APK.

These are the variables that I have used to launch the apps on my phone :

  "platformName":
  "deviceName": 
  "appPackage":
  "appActivity": 

3 Answers

Make sure you have setup everything as explained in the official Appium website. Link to the page.

Answered by masood ghz on October 25, 2021

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("automationName", "uiautomator2");
capabilities.setCapability("deviceName", deviceName);       
capabilities.setCapability("udid", udid);       
capabilities.setCapability("platformName", platformName);       
capabilities.setCapability("platformVersion", platformVersion);       
capabilities.setCapability("appPackage", "package");       
capabilities.setCapability("appActivity", appActivity); driver =       
Driver().setDriver(new AndroidDriver(new URL("http://127.0.0.1:" +      port + 
"/wd/hub"), capabilities));

This code should work !

Answered by Subhist Subedar on October 25, 2021

You could also share the code that you are using - like the setUp method - to be easier to detect what pieces are missing.

Just by looking at those variables, you're providing I could say that it would not hurt to pass also the platformVersion and the path to your local .apk file.

Answered by Raul Huluban on October 25, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP