Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
126 views
in Technique[技术] by (71.8m points)

android - Getting Error Of Connectivity In Appium Server

info: [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m [90m{"desiredCapabilities":{"app":"D:My_ALOHAAppiumTestProjectappsdemo1.apk","platform":"VISTA","platformVersion":"4.4.3","platformName":"Android","deviceName":"AppiumDemo123","browserName":"","app-package":"com.livestrong.calorietracker","app-activity":"com.livestrong.calorietracker.activities.WelcomeActivity","version":"4.4.2"}}[39m info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : platform, app-package, app-activity, version info: [debug] No appActivity desired capability or server param. Parsing from apk. info: [debug] No appPackage desired capability or server param. Parsing from apk. info: [debug] Using local app from desired caps: D:My_ALOHAAppiumTestProjectappsdemo1.apk info: [debug] Creating new appium session 72fe50ca-03c4-4b3d-b3a4-683a47984b62 info: Starting android appium info: [debug] Using fast reset? true info: [debug] Preparing device for session info: [debug] Checking whether app is actually present info: [debug] Checking whether adb is present info: [debug] Using adb from D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe info: Retrieving device info: [debug] Trying to find a connected android device info: [debug] Getting connected devices... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" kill-server info: [debug] Getting connected devices... error: Error killing ADB server, going to see if it's online anyway info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" kill-server info: [debug] Getting connected devices... error: Error killing ADB server, going to see if it's online anyway info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" kill-server info: [debug] Getting connected devices... error: Error killing ADB server, going to see if it's online anyway info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" kill-server info: [debug] Getting connected devices... error: Error killing ADB server, going to see if it's online anyway info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" devices info: [debug] Could not find devices, restarting adb server... error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:Androidandroid-sdk-windows (192.168.8.159)platform-toolsadb.exe" devices info: [debug] Could not find devices, restarting adb server...

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Your appActivity and appPackage capabilities are missing. Please add this to your capabilities class:

capabilities.setCapability("appPackage", packageName);
capabilities.setCapability("appActivity", activityName);

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...