Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Could not connect to server; are you sure it's running? In appium

Tags:

appium

I am getting this error. How to solve this.

like image 479
Vidya Avatar asked Jan 06 '18 13:01

Vidya


3 Answers

Just tick the below checkbox "Allow Unauthorized Certificates" for appium versions 1.6.*enter image description here

and make sure you are under "Automatic Server" tab

enter image description here

like image 182
Som Avatar answered Sep 18 '22 09:09

Som


Go to automatic server option and start session . and give the right path of apk file. it is work for me (appium server 1.7)

like image 26
Dhirendra singh Avatar answered Sep 18 '22 09:09

Dhirendra singh


After searching and applying lots of solutions finally i did following settings for Successful Android appium app testing on windows machine.

Software:

As of now they have released appium-server and appium-inspector as two seperate softwares. I'm using latest version of repositories.

  • Appium server 1.22.0
  • Appium Inspector 2021.9.2

Appium Server Settings

Make sure you have the same settings shown in the images below.

appium simple tab

appium advanced settings

appium environment variables

Appium Inspector settings

appium inspector settings

Steps to start appium:

  • Start appium server first
  • Then Start appium Inspector (make sure you add desired capabilities manually otherwise below error msg will arrive if you pasted Json representation manually)

Failed to create session. An unknown server-side error occurred while processing the command. Original error: You must include a platformName capability.

After adding Representation it will look like below

{
  "platformName": "android",
  "deviceName": "emulator-5554",
  "appPackage": "com.coswarden",
  "appActivity": "ActivityHome"
}

Hope this will solve your error.

like image 28
Suyog Avatar answered Sep 22 '22 09:09

Suyog