Appium遇到的問題


1.An unknown server-side error occurred while processing the command. Original error: activity and pkg are required to start an application


2.An unknown server-side error occurred while processing the command. Original error:
Cannot start the 'com.baidu.searchbox' application.
Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting.
Original error: Cannot start the 'com.baidu.searchbox' application.
Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting.
Original error: Activity name '.com.baidu.searchbox/.MainActivity' used to start the app doesn't exist or cannot be launched!
Make sure it exists and is a launchable activity

解決方法:https://testerhome.com/topics/16454?locale=zh-CN
通過 adb shell monkey -p com.baidu.searchbox -v -v -v 1 找到你想要app的啟動activity



{
"platformName": "Android",
"deviceName": "810EBM32U8GC",
"platformVersion": "5.1",
"app": "com.baidu.searchbox",
"appActivity": "com.baidu.searchbox.SplashActivity"
}

{
"deviceName": "892QAETNVKYFN",
"platformName": "Android",
"platformVersion": "8.1.0",
"appPackage": "com.qihoo.srouter.n300",
"appActivity": "com.qihoo.srouter.n300/com.ifenglian.superapp.ui.firewall.SAMainActivity "
}


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM