Android 在appium中运行移动自动化脚本时出错
在appium中运行自动化脚本时出错 我正在Windows桌面系统上运行移动自动化脚本,并设置了以下软件 软件设置: 1.安卓工作室 2.附属物 3.连接到系统的移动/平板电脑 4.Selenium/Appium自动化驱动程序代码 错误Android 在appium中运行移动自动化脚本时出错,android,selenium-webdriver,appium,ui-automation,appium-android,Android,Selenium Webdriver,Appium,Ui Automation,Appium Android,在appium中运行自动化脚本时出错 我正在Windows桌面系统上运行移动自动化脚本,并设置了以下软件 软件设置: 1.安卓工作室 2.附属物 3.连接到系统的移动/平板电脑 4.Selenium/Appium自动化驱动程序代码 错误 apksigner stderr: ERROR: Registry editing has been disabled by your administrator. Exception in thread "main" java.nio.file.Acces
apksigner stderr: ERROR: Registry editing has been disabled by your administrator.
Exception in thread "main" java.nio.file.AccessDeniedException: C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
Cannot use apksigner tool for signing. Defaulting to sign.jar. Original error: Command 'apksigner.bat sign --key 'C:\\Program Files\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-adb\\keys\\testkey.pk8' --cert 'C:\\Program Files\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-adb\\keys\\testkey.x509.pem' 'C:\\Program Files\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk'' exited with code 1; StdErr: ERROR: Registry editing has been disabled by your administrator.
[warn] [35m[ADB][39m Exception in thread "main" java.nio.file.AccessDeniedException: C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
Unable to remove port forward 'Error executing adbExec. Original error: 'Command 'C\:\\Users\\Sumit.Chouhtel\\AppData\\Local\\Android\\sdk\\platform-tools\\adb.exe -P 5037 -s RFXTBIC00014974 forward --remove tcp\:8200' exited with code 1'; Stderr: 'adb.exe: error: listener 'tcp:8200' not found'; Code: '1''
[debug] [35m[BaseDriver][39m Event 'newSessionStarted' logged at 1568214375516 (20:36:15 GMT+0530 (India Standard Time))
尝试使用以下步骤启用注册表编辑(假设您有Windows 10)
gpedit.msc
实现这一点的其他方法我得到了以下解决方案:
安装Appium桌面应用程序时,需要单击“仅限我使用”选项。(如果我们选择“适用于所有用户”选项,则appium运行中将出现错误)。在
apksigner stderr中有什么不清楚的:错误:您的管理员已禁用注册表编辑。
?感谢您回复rohit,但我如何解决此错误。当您更新帖子时,请尽量保持别人为你做的格式化。谢谢你的回复!!我有以下解决方案:安装Appium桌面应用程序时,需要单击选项作为“仅限我使用”。(如果我们选择“适用于所有用户”选项,则appium运行中将出现错误)。问候斯瓦蒂·戴夫