51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1455|回复: 2
打印 上一主题 下一主题

链接ios手机Appium启动start session弹窗错误提示

[复制链接]
  • TA的每日心情
    无聊
    昨天 09:47
  • 签到天数: 528 天

    连续签到: 1 天

    [LV.9]测试副司令

    跳转到指定楼层
    1#
    发表于 2021-11-16 10:25:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    1测试积点
    链接ios手机appium启动start session提示An unknown server-side error occurred while processing the command. Original error: Could not load a driver for automationName 'XCUITest' and platformName 'ios'. Please verify your Appium installation。
    谁知道这是为啥?
    appium日志中显示:
    1. [BaseDriver] Event 'newSessionRequested' logged at 1636964052381 (16:14:12 GMT+0800 (中国标准时间))
    2. [Appium] /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/index.js:1
    3. [Appium] import * as dependencies from './lib/check-dependencies';
    4. [Appium] ^^^^^^
    5. [Appium]
    6. [Appium] SyntaxError: Cannot use import statement outside a module
    7. [Appium]     at Module._compile (internal/modules/cjs/loader.js:815:22)
    8. [Appium]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:892:10)
    9. [Appium]     at Module.load (internal/modules/cjs/loader.js:735:32)
    10. [Appium]     at Module._load (internal/modules/cjs/loader.js:648:12)
    11. [Appium]     at Module._load (electron/js2c/asar.js:717:26)
    12. [Appium]     at Function.Module._load (electron/js2c/asar.js:717:26)
    13. [Appium]     at Module.require (internal/modules/cjs/loader.js:775:19)
    14. [Appium]     at require (internal/modules/cjs/helpers.js:68:18)
    15. [Appium]     at Object. (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:5:1)
    16. [Appium]     at Module._compile (internal/modules/cjs/loader.js:880:30)
    17. [Appium]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:892:10)
    18. [Appium]     at Module.load (internal/modules/cjs/loader.js:735:32)
    19. [Appium]     at Module._load (internal/modules/cjs/loader.js:648:12)
    20. [Appium]     at Module._load (electron/js2c/asar.js:717:26)
    21. [Appium]     at Function.Module._load (electron/js2c/asar.js:717:26)
    22. [Appium]     at Module.require (internal/modules/cjs/loader.js:775:19)
    23. [Appium]     at require (internal/modules/cjs/helpers.js:68:18)
    24. [Appium]     at Object. (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/index.js:5:1)
    25. [Appium]     at Module._compile (internal/modules/cjs/loader.js:880:30)
    26. [Appium]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:892:10)
    27. [Appium]     at Module.load (internal/modules/cjs/loader.js:735:32)
    28. [Appium]     at Module._load (internal/modules/cjs/loader.js:648:12)
    29. [Appium]     at Module._load (electron/js2c/asar.js:717:26)
    30. [Appium]     at Function.Module._load (electron/js2c/asar.js:717:26)
    31. [Appium]     at Module.require (internal/modules/cjs/loader.js:775:19)
    32. [Appium]     at require (internal/modules/cjs/helpers.js:68:18)
    33. [Appium]     at AppiumDriver.getDriverAndVersionForCaps (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/lib/appium.js:221:24)
    34. [Appium]     at AppiumDriver.createSession (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/lib/appium.js:311:66)
    35. [BaseDriver] Event 'newSessionStarted' logged at 1636964052584 (16:14:12 GMT+0800 (中国标准时间))
    36. [MJSONWP] Encountered internal error running command: Error: Could not load a driver for automationName 'XCUITest' and platformName 'ios'. Please verify your Appium installation
    37. [MJSONWP]     at AppiumDriver.getDriverAndVersionForCaps (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/lib/appium.js:237:11)
    38. [MJSONWP]     at AppiumDriver.createSession (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/lib/appium.js:311:66)
    39. [MJSONWP]     at commandExecutor (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/driver.js:334:9)
    40. [MJSONWP]     at AppiumDriver.executeCommand (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/driver.js:348:15)
    41. [MJSONWP]     at AppiumDriver.executeCommand (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/lib/appium.js:520:26)
    42. [MJSONWP]     at asyncHandler (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:297:34)
    43. [MJSONWP]     at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:436:15
    44. [MJSONWP]     at Layer.handle [as handle_request] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
    45. [MJSONWP]     at next (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/route.js:137:13)
    46. [MJSONWP]     at Route.dispatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/route.js:112:3)
    47. [MJSONWP]     at Layer.handle [as handle_request] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
    48. [MJSONWP]     at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/index.js:281:22
    49. [MJSONWP]     at Function.process_params (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/index.js:335:12)
    50. [MJSONWP]     at next (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/index.js:275:10)
    51. [MJSONWP]     at logger (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/morgan/index.js:144:5)
    52. [MJSONWP]     at Layer.handle [as handle_request] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
    53. [MJSONWP]     at trim_prefix (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/index.js:317:13)
    54. [MJSONWP]     at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/index.js:284:7
    55. [MJSONWP]     at Function.process_params (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/index.js:335:12)
    56. [MJSONWP]     at next (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/index.js:275:10)
    57. [MJSONWP]     at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/body-parser/lib/read.js:130:5
    58. [MJSONWP]     at invokeCallback (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/raw-body/index.js:224:16)
    59. [MJSONWP]     at done (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/raw-body/index.js:213:7)
    60. [MJSONWP]     at IncomingMessage.onEnd (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/raw-body/index.js:273:7)
    61. [MJSONWP]     at IncomingMessage.emit (events.js:208:15)
    62. [MJSONWP]     at endReadableNT (_stream_readable.js:1168:12)
    63. [MJSONWP]     at processTicksAndRejections (internal/process/task_queues.js:77:11)
    64. [MJSONWP] Destroying socket connection
    65. [HTTP] <-- POST /wd/hub/session 500 218 ms - 253
    66. [HTTP]
    67. [HTTP] --> DELETE /wd/hub/session
    68. [HTTP] {}
    69. [HTTP] No route found. Setting content type to 'text/plain'
    70. [HTTP] <-- DELETE /wd/hub/session 404 7 ms - 57
    复制代码


    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    9 小时前
  • 签到天数: 1803 天

    连续签到: 2 天

    [LV.Master]测试大本营

    2#
    发表于 2021-11-17 10:25:16 | 只看该作者
    回复

    使用道具 举报

  • TA的每日心情
    慵懒
    8 小时前
  • 签到天数: 1518 天

    连续签到: 2 天

    [LV.Master]测试大本营

    3#
    发表于 2021-11-17 10:36:49 | 只看该作者
    环境没配置正确
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-11-19 18:30 , Processed in 0.065773 second(s), 22 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表