51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3436|回复: 3
打印 上一主题 下一主题

关于appium-desktop的一直转圈加载不出来的问题,求解答!

[复制链接]
  • TA的每日心情
    无聊
    6 小时前
  • 签到天数: 528 天

    连续签到: 1 天

    [LV.9]测试副司令

    跳转到指定楼层
    1#
    发表于 2021-2-19 09:38:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    1测试积点
    我是在看了网上一些帖子的指导后进行的 appium-desktop测试经典windows app
    根据网上帖子的指导,我先打开了winappdriver
    然后打开appium-desktop;点击file;点击 New Session Window
    然后进入了这个设置界面,下面的参数app我用的是windows10自带的计算器

    然后点击start session;然后就进入了这个卡住转圈的界面

    还有一点就是它在进入转圈界面的同时其实它在旁边打开了计算器如图:

    然后就是无尽的转圈圈。。。。。。求大家集思广益帮帮我这个初中生
    下面附上WinAppDriver的运行日志

    1. C:\Program Files (x86)\Windows Application Driver>WinAppDriver.exe 127.0.0.1 4723/wd/hub
    2. Windows Application Driver Beta listening for requests at: http://127.0.0.1:4723/wd/hub
    3. Press ENTER to exit.


    4. ==========================================
    5. POST /wd/hub/session HTTP/1.1
    6. Accept: application/json
    7. Connection: keep-alive
    8. Content-Length: 182
    9. Content-Type: application/json; charset=UTF-8
    10. Host: 127.0.0.1:4723
    11. User-Agent: admc/wd/1.11.1

    12. {"desiredCapabilities":{"app":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App","deviceName":"WindowsPC","platformName":"Windows","newCommandTimeout":0,"connectHardwareKeyboard":true}}
    13. SessionManager - Creating session for Microsoft.WindowsCalculator_8wekyb3d8bbwe!App
    14. SessionManager - WinAppDriver succeeded loading MitaBroker
    15. SessionManager - Application launched
    16. SessionManager - Session successfully created: 77673AAA-15D3-46AE-A57D-37388B56284C
    17. HTTP/1.1 200 OK
    18. Content-Length: 127
    19. Content-Type: application/json

    20. {"sessionId":"77673AAA-15D3-46AE-A57D-37388B56284C","status":0,"value":{"app":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"}}


    21. ==========================================
    22. POST /wd/hub/session/77673AAA-15D3-46AE-A57D-37388B56284C/context HTTP/1.1
    23. Accept: application/json
    24. Connection: keep-alive
    25. Content-Length: 21
    26. Content-Type: application/json; charset=UTF-8
    27. Host: 127.0.0.1:4723
    28. User-Agent: admc/wd/1.11.1

    29. {"name":"NATIVE_APP"}
    30. ### WinAppDriver::CommandHandler::Session::HandleCommandAsMidPoint - Command context is not recognized
    31. HTTP/1.1 404 Not Found
    32. Content-Length: 144
    33. Content-Type: application/json

    34. {"status":9,"value":{"error":"unknown command","message":"Command not recognized: POST: /session/77673AAA-15D3-46AE-A57D-37388B56284C/context"}}


    35. ==========================================
    36. GET /wd/hub/session/77673AAA-15D3-46AE-A57D-37388B56284C/source HTTP/1.1
    37. Accept: application/json
    38. Connection: keep-alive
    39. Host: 127.0.0.1:4723
    40. User-Agent: admc/wd/1.11.1


    41. HTTP/1.1 501 Not Implemented
    42. Content-Length: 82
    43. Content-Type: text/plain; charset=utf-8

    44. Command not implemented: GET: /session/77673AAA-15D3-46AE-A57D-37388B56284C/source


    45. ==========================================
    46. GET /wd/hub/session/77673AAA-15D3-46AE-A57D-37388B56284C/screenshot HTTP/1.1
    47. Accept: application/json
    48. Connection: keep-alive
    49. Host: 127.0.0.1:4723
    50. User-Agent: admc/wd/1.11.1


    51. HTTP/1.1 200 OK
    52. Content-Length: 804826
    53. Content-Type: application/json

    54. 2Th/HxQ9TqMwCcWZ/XEoeZDG+QWEOGmfFzcIkJuwg8ZrPMAPFxQD52KaeRpHnAtADmWAPNKcJwzmGAAA//RJREFUgacSUwoQSNGxwaJsyzQd03It2zZMXPLpK5NnB0HQ6rRxSZ9OELY6QTsIk5Sj/5rBE9vAJFMuMeAqA7JNqJBz0QH0AB1FCnL+P/gs6CHYK1zoKc8IwC1igPEhADxlLgcD9DBDIVBUhefiaSq3yUfpuo+PGsgL1YLsRD3wVh06flBWDuvaQIUqmoIiJEMD/W4ZbeiOj0+OjIwZOlS3JicaukKNRWqs8dPaydXh/dbjKPHSec66MjVmJxAHBCJH2zZLJbQUJ3XAhz1JmDrgUvup22mI5kfsbuWiK5KaC5sQkoWL0uJ2Yc9psk5kQpvX7bjuhz8OxMESqBnTMlWFZ/gjJHSp1XpmZ [...]


    55. ==========================================
    56. GET /wd/hub/session/77673AAA-15D3-46AE-A57D-37388B56284C/window/current/size HTTP/1.1
    57. Accept: application/json
    58. Connection: keep-alive
    59. Host: 127.0.0.1:4723
    60. User-Agent: admc/wd/1.11.1


    61. HTTP/1.1 200 OK
    62. Content-Length: 98
    63. Content-Type: application/json

    64. {"sessionId":"77673AAA-15D3-46AE-A57D-37388B56284C","status":0,"value":{"height":541,"width":336}}
    复制代码


    附件: 您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

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

    连续签到: 1 天

    [LV.Master]测试大本营

    2#
    发表于 2021-2-20 11:02:54 | 只看该作者
    可以测试下,看是否连接成功
    回复

    使用道具 举报

  • TA的每日心情
    开心
    2024-11-8 10:04
  • 签到天数: 473 天

    连续签到: 2 天

    [LV.9]测试副司令

    3#
    发表于 2021-2-20 14:43:07 | 只看该作者
    是不是设置的APP名称不对呀
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    2024-10-22 14:23
  • 签到天数: 1007 天

    连续签到: 1 天

    [LV.10]测试总司令

    4#
    发表于 2021-2-20 15:27:35 | 只看该作者
    参考这篇帖子看下呢  https://bbs.csdn.net/topics/399059203
    回复

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-18 16:39 , Processed in 0.062349 second(s), 22 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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