当前位置:网站首页>About appium trample pit: encountered internal error running command: error: cannot verify the signature of (solved)

About appium trample pit: encountered internal error running command: error: cannot verify the signature of (solved)

2022-06-26 21:20:00 Full stack husky

Wanyeji
Faint thunder , Cloudy sky .
But I hope the wind and rain will come , I can keep you here .


Preface
Author's brief introduction : Husky who yearns for power , You can call me Siberian Husky , One devoted to TFS - The whole stack Empowered bloggers
CSDN Blog expert certification 、 Nova plan Season 3 full stack track top_1 、 Huawei cloud sharing expert 、 Alibaba cloud expert Blogger
If there is something wrong with the knowledge of the article , Please correct me. ! Learn with you , Progress together
The motto of life : Being superior to some other man , Is not high , The true nobility is to be superior to one's former self .
If you feel the blogger's article is good , Please pay attention. 、 give the thumbs-up 、 Collect three companies to support bloggers


Column series ( Click unlock ) Learning route guidance Knowledge orientation
Python Full stack white paper Zero foundation beginner level chapter Easy to get started in an easy to understand way , Let you fall in love with Python The charm of .
Advanced Grammar Mainly around multi-threaded programming 、 Regular expression learning 、 Including project exercises close to actual combat .
Office automation Realize the automatic operation of daily office software , Save time 、 Improve office efficiency .
Automation test practice From the perspective of actual combat , One step ahead , Rapid transformation test development engineer .
Database development practice Updating
Introduction and practice of reptile Updating
Data analysis Updating
Introduction to the front +flask Full stack Updating
django+vue Full stack Updating
expand - Introduction to artificial intelligence Updating
The road to network security Stepping on a pit Record the pit encountered during learning and drilling , It is convenient for those who come from behind to catch up
Net security literacy Three days fishing , No deep understanding of the principle , It will only make you a script boy .
vulhub The loopholes in the shooting range reappear Make it easy to reproduce vulnerabilities , Let security researchers focus more on the vulnerability principle itself .
shell Programming Don't involve linux Basics , The final case will be in the direction of safety reinforcement . [ To be finished ]
WEB Vulnerability attack and defense 2021 year 9 month 3 Stop updating on , Move to safe communities such as prophet community and small secret circles
Collection of penetration tools 2021 year 9 month 3 Stop updating on , Move to safe communities such as prophet community and small secret circles
A little Engineer Test artifact - Charles Software test data packet capture analysis artifact
Test artifact - Fiddler Learn to fiddle , Learn not to stand upside down and eat , Rarefied !
Test artifact - Jmeter Not just a performance test artifact , It can also be used to build a lightweight interface automation testing framework .
RobotFrameWorkPython Automatic test tool realized , This chapter only introduces UI Automation part .
Java Realization UI automation Document written in 2016 year ,Java Realized UI automation , It still has reference significance .
MonkeyRunner There are not many application scenarios for this tool at present , The document has been deleted , Only for the sake of good typesetting .


If you click in, you must first carefully check whether your error reporting details are consistent with those of the blogger , The “WebDriverException” Many exception types , Please carefully check whether the error information in this article is consistent with yours .

Same error reporting exception , There is another scenario to solve .

https://blog.csdn.net/weixin_42250835/article/details/125469369

Exceptions are as follows

selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.27.0.apk'. Original error: Could not find 'apksigner.jar' in ["/usr/local/Caskroom/android-sdk/platform-tools/apksigner.jar","/usr/local/Caskroom/android-sdk/emulator/apksigner.jar","/usr/local/Caskroom/android-sdk/cmdline-tools/latest/bin/apksigner.jar","/usr/local/Caskroom/android-sdk/tools/apksigner.jar","/usr/local/Caskroom/android-sdk/tools/bin/apksigner.jar","/usr/local/Caskroom/android-sdk/apksigner.jar"]. Do you have Android Build Tools installed at '/usr/local/Caskroom/android-sdk'?

selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.27.0.apk'. Original error: Could not find 'apksigner.jar' in ["/usr/local/Caskroom/android-sdk/platform-tools/apksigner.jar","/usr/local/Caskroom/android-sdk/emulator/apksigner.jar","/usr/local/Caskroom/android-sdk/cmdline-tools/latest/bin/apksigner.jar","/usr/local/Caskroom/android-sdk/tools/apksigner.jar","/usr/local/Caskroom/android-sdk/tools/bin/apksigner.jar","/usr/local/Caskroom/android-sdk/apksigner.jar"]. Do you have Android Build Tools installed at '/usr/local/Caskroom/android-sdk'?
Stacktrace:
UnknownError: An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.27.0.apk'. Original error: Could not find 'apksigner.jar' in ["/usr/local/Caskroom/android-sdk/platform-tools/apksigner.jar","/usr/local/Caskroom/android-sdk/emulator/apksigner.jar","/usr/local/Caskroom/android-sdk/cmdline-tools/latest/bin/apksigner.jar","/usr/local/Caskroom/android-sdk/tools/apksigner.jar","/usr/local/Caskroom/android-sdk/tools/bin/apksigner.jar","/usr/local/Caskroom/android-sdk/apksigner.jar"]. Do you have Android Build Tools installed at '/usr/local/Caskroom/android-sdk'?
    at getResponseForW3CError (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
    at asyncHandler (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:380:37)

The screenshot of error reporting is as follows :



The solution is as follows

Not analyzed the , While observing the log , I found a hint , Here's the picture :



Add this parameter to the start parameter of the script



The operation results are as follows :



OK, Perfect solution !



原网站

版权声明
本文为[Full stack husky]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206262108182739.html