AKS中Selenium Grid测试报500错误,会话处于排队状态
问题描述
在AKS中部署了Selenium Grid,用于通过Azure发布流水线运行UI自动化测试。目前可通过Azure流水线执行Visual Studio测试,请求能到达Selenium Hub,但会话进入队列后测试失败,返回500错误。使用的版本标签为:seleniumGrid.imageTag=4.9.0-20230421。
日志信息
Kubernetes Selenium Hub日志
09:49:58.324 WARN [SeleniumSpanExporter$1.lambda$export$3] - {"traceId": "6770111d5fff118e7b070bf8c22be6c5","eventTime": 1683107398323021296,"eventName": "HTTP request execution complete","attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue","http.host": "10.224.0.18:4444","http.method": "POST","http.request_content_length": "48","http.scheme": "HTTP","http.status_code": 500,"http.target": "\u002fsession"}} 09:49:58.324 WARN [SeleniumSpanExporter$1.lambda$export$3] - {"traceId": "373c53f2d1624f8bad9e50714aacba94","eventTime": 1683107398323273998,"eventName": "HTTP request execution complete","attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue","http.host": "10.224.0.18:4444","http.method": "POST","http.request_content_length": "48","http.scheme": "HTTP","http.status_code": 500,"http.target": "\u002fsession"}} 09:49:58.323 WARN [SeleniumSpanExporter$1.lambda$export$3] - {"traceId": "2110","eventTime": 1683107398323928495,"eventName": "HTTP request execution complete","attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue","http.host": "10.224.0.18:4444","http.method": "POST","http.request_content_length": "48","http.scheme": "HTTP","http.status_code": 500,"http.target": "\u002fsession"}}
Selenium Node Chrome日志
Starting ChromeDriver 112.0.5615.49 (bd2a7bcb881c11e8cfe3078709382934e3916914-refs/branch-heads/5615@{#936}) on port 19149 Only local connections are allowed. ChromeDriver was started successfully. 09:20:07.468 INFO [LocalNode.newSession] - Session created by the Node. Id: 685fa1e13fd0ac0341f37e217af46569, Caps: Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 112.0.5615.165, chrome: {chromedriverVersion: 112.0.5615.49 (bd2a7bcb881c..., userDataDir: /tmp/.com.google.Chrome.oYw29I}, goog:chromeOptions: {debuggerAddress: localhost:40765}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: LINUX, proxy: Proxy(), se:cdp: http://localhost:40765, se:cdpVersion: 112.0.5615.165, se:vncEnabled: true, se:vncLocalAddress: ws://10.224.0.35:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} 09:20:17.251 INFO [ProxyNodeWebsockets.createWsEndPoint] - Establishing connection to ws://10.224.0.35:7900 09:25:30.467 INFO [LocalNode.stopTimedOutSession] - Session id 685fa1e13fd0ac0341f37e217af46569 timed out, stopping... 09:25:30.563 INFO [SessionSlot.stop] - Stopping session 685fa1e13fd0ac0341f37e217af46569
内容的提问来源于stack exchange,提问作者Ashok Developer
相关产品推荐
相关产品推荐

