I was doing my automation testing without any problem with API level 23 but a few days ago I updated my android phone to version 7.0 after that I would not able to do my testing with that Android version…
The problem which I am facing is that in my APPIUM GUI under Platform version API level 23(6.0) is coming… as my phone updated to 7.0 then how I can bring this new value to that appium GUI platform version drop down?
IN Android SDK manager also I installed all the packages related with API level 24 and 25.
Commands are same for windows System as well. But here are some prerequisites you need to follow to execute above commands. I will recommend using Node.js to install command line appium tool.
1. Download Node.js msi installer for your windows machine(32/64 bit).
2. Install Node.js in your windows machine.
3. Set up the node Path in your Env.path variables.
4. Type Node -v in your command line tool.
5. Type npm -v in cmd.
Follow this link for Node.js and npm installation.
If every thing goes fine you will see respective version number installed on your machine.
Now you are ready to install appium command line tool using npm (Node Package Manager).
Use Below Commands to install.
npm install -g appium
this will install latest version of appium which is 1.6.3 currently.
If you are interested in some specific version, you can try below command
@ravikr42@Aleksei I installed latest appium from command line and i also installed latest Java client…
but still i am facing the below issue in APPIUM server logs
[debug] [MJSONWP] Bad parameters: BadParametersError: Parameters were incorrect. We wanted {“required”:[“desiredCapabilities”],“optional”:[“requiredCapabilities”,“capabilities”,“sessionId”,“id”]} and you sent [“capabilities”]
[HTTP] <-- POST /wd/hub/session 400 6 ms - 171
I think i am using the package and activity name correctly( i just removed the name)
File app= new File(“C:\Users\sanjay\workspace\automation\bin\automation1\app-debug.apk”);
DesiredCapabilities caps= new DesiredCapabilities();
caps.setCapability(“deviceName”,“ce061606a9264a1005”);
caps.setCapability(“platformName”,“Android”);
caps.setCapability(“platformVersion”,“7.0”);
caps.setCapability(“app”,app.getAbsolutePath());
caps.setCapability(“appPackage”,“com…”);
caps.setCapability(“appActivity”,“com…activity.HomeActivity”); //caps.setCapability(“newCommandTimeout”, 0);
AndroidDriver<MobileElement> driver = new AndroidDriver<MobileElement>(new URL("http://0.0.0.0:4723/wd/hub"),caps);