1. 在一条注册用例中,在输入验证码的阶段,我用 selenium 启动一个 webdriver 打开浏览器进入公司后台获取验证码,但是拿到验证码,继续手机操作时就会报错:appium 报错 NoSuchDriverError: A session is either terminated or not started, 我查看具体日志发现:启动 web_driver = webdriver.Chrome() 后,session 的 id 从 dd2463c4-2c5a-464d-9537-6f3944fa39a5 变成了 8d8f168e-7f48-4534-8cd2-b64e9814b343 然后就报错了

[HTTP] <-- GET /session/dd2463c4-2c5a-464d-9537-6f3944fa39a5/element/3E130000-0000-0000-D020-000000000000/displayed 200 153 ms - 65
[HTTP]
[HTTP] --> POST /session/dd2463c4-2c5a-464d-9537-6f3944fa39a5/element/3E130000-0000-0000-D020-000000000000/click
[HTTP] {}
[XCUITestDriver@41ff (dd2463c4)] Driver proxy active, passing request on via HTTP proxy
[XCUITestDriver@41ff (dd2463c4)] Executing command 'proxyReqRes'
[XCUITestDriver@41ff (dd2463c4)] Matched '/session/dd2463c4-2c5a-464d-9537-6f3944fa39a5/element/3E130000-0000-0000-D020-000000000000/click' to command name 'click'
[XCUITestDriver@41ff (dd2463c4)] Proxying [POST /session/dd2463c4-2c5a-464d-9537-6f3944fa39a5/element/3E130000-0000-0000-D020-000000000000/click] to [POST http://127.0.0.1:8100/session/F30D260B-AD94-4D82-9B8A-6BDD086DC6F0/element/3E130000-0000-0000-D020-000000000000/click] with body: {}
[XCUITestDriver@41ff (dd2463c4)] Got response with status 200: {"value":null,"sessionId":"F30D260B-AD94-4D82-9B8A-6BDD086DC6F0"}
[XCUITestDriver@41ff (dd2463c4)] Replacing sessionId F30D260B-AD94-4D82-9B8A-6BDD086DC6F0 with dd2463c4-2c5a-464d-9537-6f3944fa39a5
[HTTP] <-- POST /session/dd2463c4-2c5a-464d-9537-6f3944fa39a5/element/3E130000-0000-0000-D020-000000000000/click 200 1063 ms - 65
[HTTP]
[HTTP] --> GET /session/8d8f168e-7f48-4534-8cd2-b64e9814b343/timeouts
[HTTP] {}
[AppiumDriver@c846] Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started

  1. 我不小心把我的 ios 手机升级到了 ios17,然后装 wda 后点击 app 就黑屏闪退,完全用不了,导致我跟同事换了台测试机

2.第二个问题就是使用 appium2 后发现前后置的日志输出不到 allure 上了,这个不知道有没有到老遇到过


↙↙↙阅读原文可查看相关链接,并与作者交流