Appium Android拨号板测试在以前的版本上不起作用
我有一个简单的测试,使用Appium和android emulator和4.4,运行良好 我用以前的android版本(4.2.1)在真实设备上尝试了同样的方法 应用程序的启动程序活动(您可以从apk info应用程序获取) 这是Appium错误Appium Android拨号板测试在以前的版本上不起作用,android,selenium-webdriver,appium,Android,Selenium Webdriver,Appium,我有一个简单的测试,使用Appium和android emulator和4.4,运行良好 我用以前的android版本(4.2.1)在真实设备上尝试了同样的方法 应用程序的启动程序活动(您可以从apk info应用程序获取) 这是Appium错误 error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity info:
error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity
info: [debug] Stopping logcat capture
error: Failed to start an Appium session, err was: Error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity
我认为新版本上的活动已更改,是否有人可以帮助我识别4.2.1的软件包和活动?使用最新的appium版本1.4.16.1,您可以跳过APP_软件包、APP_活动功能设置。Appium将从APK文件中获取它
顺便说一下,
capabilities.setCapability(MobileCapabilityType.APP_包,“com.android.contacts.activities.DialtactsActivity”)代码>这应该是MobileCapabilityType.APP\u活动
。NotMobileCapabilityType.APP\u PACKAGE
无法给你答案,但我可以给你一个提示,将来也会对你有所帮助。使用ANDROID_HOME/tools文件夹中的monitor.bat启动应用程序。然后使用控制台筛选看起来像来自com.android.dialer的行以查找活动。@masiles尝试使用应用程序信息应用程序,这将有助于查找程序包和活动。我尝试了您的修复,但出现以下错误:启动应用程序会话失败,错误为:错误:没有应用程序集;使用--app启动appium或在所需功能中传入“app”值,或将androidPackage设置为在设备上启动预先存在的应用
error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity
info: [debug] Stopping logcat capture
error: Failed to start an Appium session, err was: Error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity